source: spec/trunk/SPECS/flam3.spec@ 1803

Last change on this file since 1803 was 1775, checked in by tellie, 5 years ago

spec: flam3: Release version 3.1.1-1

File size: 2.8 KB
Line 
1Name: flam3
2Version: 3.1.1
3Release: 1%{?dist}
4Summary: Programs to generate and render cosmic recursive fractal flames
5
6License: GPLv2+
7URL: http://www.flam3.com/
8%if !0%{?os2_version}
9Source0: http://flam3.googlecode.com/files/%{name}-%{version}.tar.gz
10Patch0: flam3-libpng15.patch
11%else
12%scm_source github https://github.com/scottdraves/flam3 master
13%endif
14BuildRequires: gcc
15BuildRequires: libxml2-devel
16BuildRequires: libpng-devel
17BuildRequires: libjpeg-devel
18%if !0%{?os2_version}
19BuildRequires: chrpath
20%endif
21BuildRequires: make
22
23%description
24Flam3, or Fractal Flames, are algorithmically generated images and animations.
25This is free software to render fractal flames as described on
26http://flam3.com. Flam3-animate makes animations, and flam3-render makes still
27images. Flam3-genome creates and manipulates genomes (parameter sets).
28
29
30%package devel
31Summary: C headers to generate and render cosmic recursive fractal flames
32Requires: pkgconfig
33Requires: libxml2-devel
34Requires: libpng-devel
35Requires: libjpeg-devel
36Requires: flam3 = %{version}-%{release}
37
38%description devel
39Flam3, or Fractal Flames, are algorithmically generated images and animations.
40This is free software to render fractal flames as described on
41http://flam3.com. Flam3-animate makes animations, and flam3-render makes still
42images. Flam3-genome creates and manipulates genomes (parameter sets). This
43package 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
52autoreconf -fvi
53%endif
54
55%build
56export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
57export LIBS="-lcx"
58
59%configure --prefix=%{_prefix} --includedir=%{_includedir}/%{name} --enable-shared
60make %{?_smp_mflags}
61
62%install
63rm -rf %{buildroot}
64make install DESTDIR=%{buildroot} INSTALL="install -p"
65%if !0%{?os2_version}
66rm %{buildroot}/%{_libdir}/lib%{name}.la %{buildroot}/%{_libdir}/lib%{name}.a
67chrpath --delete %{buildroot}%{_bindir}/flam3-*
68%else
69rm %{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
Note: See TracBrowser for help on using the repository browser.