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