summaryrefslogtreecommitdiff
path: root/python-noise.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-noise.spec')
-rw-r--r--python-noise.spec140
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