diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 07:25:46 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 07:25:46 +0000 |
| commit | 1471871d4e26c7c74d244e144f290f41c8ed9c9d (patch) | |
| tree | c89909e47691372b1e061d845e327637ff6829b5 /python-noise.spec | |
| parent | 09bddfc31f25d1a67c8b623c1000333e558d2c16 (diff) | |
automatic import of python-noise
Diffstat (limited to 'python-noise.spec')
| -rw-r--r-- | python-noise.spec | 140 |
1 files changed, 140 insertions, 0 deletions
diff --git a/python-noise.spec b/python-noise.spec new file mode 100644 index 0000000..e275c32 --- /dev/null +++ b/python-noise.spec @@ -0,0 +1,140 @@ +%global _empty_manifest_terminate_build 0 +Name: python-noise +Version: 1.2.2 +Release: 1 +Summary: Perlin noise for Python +License: UNKNOWN +URL: https://github.com/caseman/noise +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/18/29/bb830ee6d934311e17a7a4fa1368faf3e73fbb09c0d80fc44e41828df177/noise-1.2.2.tar.gz + + +%description +Perlin noise is ubiquitous in modern CGI. Used for procedural texturing, +animation, and enhancing realism, Perlin noise has been called the "salt" of +procedural content. Perlin noise is a type of gradient noise, smoothly +interpolating across a pseudo-random matrix of values. + +The noise library includes native-code implementations of Perlin "improved" +noise and Perlin simplex noise. It also includes a fast implementation of +Perlin noise in GLSL, for use in OpenGL shaders. The shader code and many of +the included examples require Pyglet (http://www.pyglet.org), the native-code +noise functions themselves do not, however. + +The Perlin improved noise functions can also generate fBm (fractal Brownian +motion) noise by combining multiple octaves of Perlin noise. Shader functions +for convenient generation of turbulent noise are also included. + +- 1.2.2 AppVeyor support for Windows builds (Thanks to Federico Tomassetti) + +- 1.2.1 Fixes MSVC compatibility (Thanks to Christoph Gohlke) + +- 1.2.0 adds 4D simplex noise, tiling for 2D simplex noise, + and parameterized lacunarity + +See CHANGES.txt for more details + +%package -n python3-noise +Summary: Perlin noise for Python +Provides: python-noise +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-noise +Perlin noise is ubiquitous in modern CGI. Used for procedural texturing, +animation, and enhancing realism, Perlin noise has been called the "salt" of +procedural content. Perlin noise is a type of gradient noise, smoothly +interpolating across a pseudo-random matrix of values. + +The noise library includes native-code implementations of Perlin "improved" +noise and Perlin simplex noise. It also includes a fast implementation of +Perlin noise in GLSL, for use in OpenGL shaders. The shader code and many of +the included examples require Pyglet (http://www.pyglet.org), the native-code +noise functions themselves do not, however. + +The Perlin improved noise functions can also generate fBm (fractal Brownian +motion) noise by combining multiple octaves of Perlin noise. Shader functions +for convenient generation of turbulent noise are also included. + +- 1.2.2 AppVeyor support for Windows builds (Thanks to Federico Tomassetti) + +- 1.2.1 Fixes MSVC compatibility (Thanks to Christoph Gohlke) + +- 1.2.0 adds 4D simplex noise, tiling for 2D simplex noise, + and parameterized lacunarity + +See CHANGES.txt for more details + +%package help +Summary: Development documents and examples for noise +Provides: python3-noise-doc +%description help +Perlin noise is ubiquitous in modern CGI. Used for procedural texturing, +animation, and enhancing realism, Perlin noise has been called the "salt" of +procedural content. Perlin noise is a type of gradient noise, smoothly +interpolating across a pseudo-random matrix of values. + +The noise library includes native-code implementations of Perlin "improved" +noise and Perlin simplex noise. It also includes a fast implementation of +Perlin noise in GLSL, for use in OpenGL shaders. The shader code and many of +the included examples require Pyglet (http://www.pyglet.org), the native-code +noise functions themselves do not, however. + +The Perlin improved noise functions can also generate fBm (fractal Brownian +motion) noise by combining multiple octaves of Perlin noise. Shader functions +for convenient generation of turbulent noise are also included. + +- 1.2.2 AppVeyor support for Windows builds (Thanks to Federico Tomassetti) + +- 1.2.1 Fixes MSVC compatibility (Thanks to Christoph Gohlke) + +- 1.2.0 adds 4D simplex noise, tiling for 2D simplex noise, + and parameterized lacunarity + +See CHANGES.txt for more details + +%prep +%autosetup -n noise-1.2.2 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-noise -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.2-1 +- Package Spec generated |
