Name: flam3 Version: 3.1.1 Release: 1%{?dist} Summary: Programs to generate and render cosmic recursive fractal flames License: GPLv2+ URL: http://www.flam3.com/ %if !0%{?os2_version} Source0: http://flam3.googlecode.com/files/%{name}-%{version}.tar.gz Patch0: flam3-libpng15.patch %else %scm_source github https://github.com/scottdraves/flam3 master %endif BuildRequires: gcc BuildRequires: libxml2-devel BuildRequires: libpng-devel BuildRequires: libjpeg-devel %if !0%{?os2_version} BuildRequires: chrpath %endif BuildRequires: make %description Flam3, or Fractal Flames, are algorithmically generated images and animations. This is free software to render fractal flames as described on http://flam3.com. Flam3-animate makes animations, and flam3-render makes still images. Flam3-genome creates and manipulates genomes (parameter sets). %package devel Summary: C headers to generate and render cosmic recursive fractal flames Requires: pkgconfig Requires: libxml2-devel Requires: libpng-devel Requires: libjpeg-devel Requires: flam3 = %{version}-%{release} %description devel Flam3, or Fractal Flames, are algorithmically generated images and animations. This is free software to render fractal flames as described on http://flam3.com. Flam3-animate makes animations, and flam3-render makes still images. Flam3-genome creates and manipulates genomes (parameter sets). This package contains a header file for C, a library, and a pkgconfig file. %prep %if !0%{?os2_version} %setup -qn %{name}-%{version}/src %patch0 -p0 -b .libpng15 %else %scm_setup autoreconf -fvi %endif %build export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" export LIBS="-lcx" %configure --prefix=%{_prefix} --includedir=%{_includedir}/%{name} --enable-shared make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} INSTALL="install -p" %if !0%{?os2_version} rm %{buildroot}/%{_libdir}/lib%{name}.la %{buildroot}/%{_libdir}/lib%{name}.a chrpath --delete %{buildroot}%{_bindir}/flam3-* %else rm %{buildroot}/%{_libdir}/lib%{name}.la %endif %if !0%{?os2_version} %ldconfig_scriptlets %endif %files %doc COPYING.txt README.txt %if !0%{?os2_version} %{_bindir}/flam3-animate %{_bindir}/flam3-convert %{_bindir}/flam3-genome %{_bindir}/flam3-render %{_datadir}/flam3 %{_libdir}/libflam3.so.* %else %{_bindir}/flam3-animate.exe %{_bindir}/flam3-convert.exe %{_bindir}/flam3-genome.exe %{_bindir}/flam3-render.exe %{_datadir}/flam3 %{_libdir}/*flam3*.dll %{_mandir}/man1/flam3* %endif %files devel %doc COPYING.txt README.txt %{_includedir}/%{name}/ %if !0%{?os2_version} %{_libdir}/libflam3.so %else %{_libdir}/*.a %{_libdir}/pkgconfig/flam3.pc %endif %changelog * Sun May 23 2021 Elbert Pol - 3.1.1.-1 - Update to latest version - First RPM build for OS2