Name: libnoise Version: 1.0.0 Release: 9%{?dist} Summary: A general-purpose library that generates three-dimensional coherent noise License: LGPL-2.1-or-later URL: http://libnoise.sourceforge.net/ Source0: http://download.sourceforge.net/libnoise/libnoisesrc-%{version}.zip Patch: libnoise-make.patch BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: doxygen BuildRequires: dos2unix %description libnoise is a portable C++ library that is used to generate coherent noise, a type of smoothly-changing noise. libnoise can generate Perlin noise, ridged multifractal noise, and other types of coherent-noise. Coherent noise is often used by graphics programmers to generate natural-looking textures, planetary terrain, and other things. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description doc The %{name}-doc package contains documentation for developing applications that use %{name}. %prep %setup -q -c -n noise dos2unix -k COPYING.txt noise/doc/html/doxygen.css # The contents of the upstream zip file are a file called COPYING.txt # and a directory called 'noise' with the source. We don't want to # pollute the buildroot, so everything goes in a subdirectory and we # cd into the noise directory to build and install. cd noise %patch -P 0 -p0 cp -p doc/htmldata/*png doc/html cp -p doc/htmldata/*css doc/html %build cd noise/src # The makefile seems somewhat broken. If 'make' is run in the root # directory first, libnoise.a isn't generated. make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" cd .. make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" %install cd noise # make install does not work. rm include/Makefile install -d -m0755 $RPM_BUILD_ROOT/%{_includedir}/noise cp -pR include/* $RPM_BUILD_ROOT/%{_includedir}/noise/ install -D -m0755 src/libnoise.so.0.3 $RPM_BUILD_ROOT/%{_libdir}/libnoise.so.0.3 find $RPM_BUILD_ROOT -name '*.la' -delete ln -sf libnoise.so.0.3 $RPM_BUILD_ROOT/%{_libdir}/libnoise.so.0.3.0 ln -sf libnoise.so.0.3 $RPM_BUILD_ROOT/%{_libdir}/libnoise.so ln -sf libnoise.so.0.3 $RPM_BUILD_ROOT/%{_libdir}/libnoise.so.0 %files %license COPYING.txt %{_libdir}/libnoise.so.* %files devel %{_includedir}/noise/ %{_libdir}/libnoise.so %files doc %doc noise/doc/html %changelog * Tue Oct 14 2025 Oleg Girko - 1.0.0-9 - Use Patch: directive instead of Patch0: one - Don't use deprecated BuildRoot: directive - Don't remove buildroot before installation - Move copying doc files and fixing their encoding to %%prep section - Create directories with install instead of mkdir - Use -delete option of find to delete .la files instead of xargs rm * Tue Oct 14 2025 Oleg Girko - 1.0.0-8 - Use %%license tag for license file * Tue Oct 14 2025 Oleg Girko - 1.0.0-7 - Require gcc-c++ explicitly for build - Remove deprecated Group: directive - Require main package with architecture suffix from devel subpackage - Use cp with -p option - Use dos2unix instead of sed to remove trailing CR in CSS file - Remove .la files more optimal way with xargs rm - Don't clean buildroot manually - Don't run ldconfig in post stripts - Don't use %%defattr in %%files list - Specify library name explicitly in %%files list instead of using wildcards * Thu Mar 20 2025 Oleg Girko - 1.0.0-6 - Use modern "%%patch -P N" syntax instead of deprecated "%%patchN" - Use SPDX-compliant license name * Thu May 27 2010 Robin Norwood - 1.0.0-5 - Clean out the build root first thing during install * Tue May 25 2010 Robin Norwood - 1.0.0-4 - Remove -bestest patch - Remove 'Public Domain' from license tag * Mon May 24 2010 Robin Norwood - 1.0.0-3 - More package review changes: - Split docs into -doc package - Fix download URL - Fix license tag * Sun May 23 2010 Robin Norwood - 1.0.0-2 - Suggestions from package review: - Fix license tag - Add libtool dep - Fix docs * Fri May 21 2010 Robin Norwood - 1.0.0-1 - Initial build