| 1 | Name: flam3
|
|---|
| 2 | Version: 3.1.1
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Programs to generate and render cosmic recursive fractal flames
|
|---|
| 5 |
|
|---|
| 6 | License: GPLv2+
|
|---|
| 7 | URL: http://www.flam3.com/
|
|---|
| 8 | %if !0%{?os2_version}
|
|---|
| 9 | Source0: http://flam3.googlecode.com/files/%{name}-%{version}.tar.gz
|
|---|
| 10 | Patch0: flam3-libpng15.patch
|
|---|
| 11 | %else
|
|---|
| 12 | %scm_source github https://github.com/scottdraves/flam3 master
|
|---|
| 13 | %endif
|
|---|
| 14 | BuildRequires: gcc
|
|---|
| 15 | BuildRequires: libxml2-devel
|
|---|
| 16 | BuildRequires: libpng-devel
|
|---|
| 17 | BuildRequires: libjpeg-devel
|
|---|
| 18 | %if !0%{?os2_version}
|
|---|
| 19 | BuildRequires: chrpath
|
|---|
| 20 | %endif
|
|---|
| 21 | BuildRequires: make
|
|---|
| 22 |
|
|---|
| 23 | %description
|
|---|
| 24 | Flam3, or Fractal Flames, are algorithmically generated images and animations.
|
|---|
| 25 | This is free software to render fractal flames as described on
|
|---|
| 26 | http://flam3.com. Flam3-animate makes animations, and flam3-render makes still
|
|---|
| 27 | images. Flam3-genome creates and manipulates genomes (parameter sets).
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | %package devel
|
|---|
| 31 | Summary: C headers to generate and render cosmic recursive fractal flames
|
|---|
| 32 | Requires: pkgconfig
|
|---|
| 33 | Requires: libxml2-devel
|
|---|
| 34 | Requires: libpng-devel
|
|---|
| 35 | Requires: libjpeg-devel
|
|---|
| 36 | Requires: flam3 = %{version}-%{release}
|
|---|
| 37 |
|
|---|
| 38 | %description devel
|
|---|
| 39 | Flam3, or Fractal Flames, are algorithmically generated images and animations.
|
|---|
| 40 | This is free software to render fractal flames as described on
|
|---|
| 41 | http://flam3.com. Flam3-animate makes animations, and flam3-render makes still
|
|---|
| 42 | images. Flam3-genome creates and manipulates genomes (parameter sets). This
|
|---|
| 43 | package contains a header file for C, a library, and a pkgconfig file.
|
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 | %prep
|
|---|
| 47 | %if !0%{?os2_version}
|
|---|
| 48 | %setup -qn %{name}-%{version}/src
|
|---|
| 49 | %patch0 -p0 -b .libpng15
|
|---|
| 50 | %else
|
|---|
| 51 | %scm_setup
|
|---|
| 52 | autoreconf -fvi
|
|---|
| 53 | %endif
|
|---|
| 54 |
|
|---|
| 55 | %build
|
|---|
| 56 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 57 | export LIBS="-lcx"
|
|---|
| 58 |
|
|---|
| 59 | %configure --prefix=%{_prefix} --includedir=%{_includedir}/%{name} --enable-shared
|
|---|
| 60 | make %{?_smp_mflags}
|
|---|
| 61 |
|
|---|
| 62 | %install
|
|---|
| 63 | rm -rf %{buildroot}
|
|---|
| 64 | make install DESTDIR=%{buildroot} INSTALL="install -p"
|
|---|
| 65 | %if !0%{?os2_version}
|
|---|
| 66 | rm %{buildroot}/%{_libdir}/lib%{name}.la %{buildroot}/%{_libdir}/lib%{name}.a
|
|---|
| 67 | chrpath --delete %{buildroot}%{_bindir}/flam3-*
|
|---|
| 68 | %else
|
|---|
| 69 | rm %{buildroot}/%{_libdir}/lib%{name}.la
|
|---|
| 70 | %endif
|
|---|
| 71 |
|
|---|
| 72 | %if !0%{?os2_version}
|
|---|
| 73 | %ldconfig_scriptlets
|
|---|
| 74 | %endif
|
|---|
| 75 |
|
|---|
| 76 | %files
|
|---|
| 77 | %doc COPYING.txt README.txt
|
|---|
| 78 | %if !0%{?os2_version}
|
|---|
| 79 | %{_bindir}/flam3-animate
|
|---|
| 80 | %{_bindir}/flam3-convert
|
|---|
| 81 | %{_bindir}/flam3-genome
|
|---|
| 82 | %{_bindir}/flam3-render
|
|---|
| 83 | %{_datadir}/flam3
|
|---|
| 84 | %{_libdir}/libflam3.so.*
|
|---|
| 85 | %else
|
|---|
| 86 | %{_bindir}/flam3-animate.exe
|
|---|
| 87 | %{_bindir}/flam3-convert.exe
|
|---|
| 88 | %{_bindir}/flam3-genome.exe
|
|---|
| 89 | %{_bindir}/flam3-render.exe
|
|---|
| 90 | %{_datadir}/flam3
|
|---|
| 91 | %{_libdir}/*flam3*.dll
|
|---|
| 92 | %{_mandir}/man1/flam3*
|
|---|
| 93 | %endif
|
|---|
| 94 |
|
|---|
| 95 | %files devel
|
|---|
| 96 | %doc COPYING.txt README.txt
|
|---|
| 97 | %{_includedir}/%{name}/
|
|---|
| 98 | %if !0%{?os2_version}
|
|---|
| 99 | %{_libdir}/libflam3.so
|
|---|
| 100 | %else
|
|---|
| 101 | %{_libdir}/*.a
|
|---|
| 102 | %{_libdir}/pkgconfig/flam3.pc
|
|---|
| 103 | %endif
|
|---|
| 104 |
|
|---|
| 105 | %changelog
|
|---|
| 106 | * Sun May 23 2021 Elbert Pol <elbert.pol@gmail.com> - 3.1.1.-1
|
|---|
| 107 | - Update to latest version
|
|---|
| 108 | - First RPM build for OS2
|
|---|