3 %bcond_without static_libs # don't build static library
5 Summary: Programs to generate and render cosmic recursive fractal flames
10 Group: Applications/Multimedia
11 Source0: http://flam3.googlecode.com/files/%{name}-%{version}.tar.gz
12 # Source0-md5: 916e1cda65b4ce2c84b3b4edc7d9605a
13 URL: http://www.flam3.com/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: libjpeg-devel
17 BuildRequires: libpng-devel
18 BuildRequires: libtool
19 BuildRequires: libxml2-devel
20 BuildRequires: pkgconfig
21 BuildRequires: sed >= 4.0
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Flam3, or Fractal Flames, are algorithmically generated images and
26 animations. This is free software to render fractal flames as
27 described on http://flam3.com. Flam3-animate makes animations, and
28 flam3-render makes still images. Flam3-genome creates and manipulates
29 genomes (parameter sets).
32 Summary: C headers to generate and render cosmic recursive fractal flames
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
37 Flam3, or Fractal Flames, are algorithmically generated images and
38 animations. This is free software to render fractal flames as
39 described on http://flam3.com. Flam3-animate makes animations, and
40 flam3-render makes still images. Flam3-genome creates and manipulates
41 genomes (parameter sets). This package contains a header file for C, a
42 library, and a pkgconfig file.
45 Summary: Static flam3 library
46 Summary(pl.UTF-8): Statyczna biblioteka flam3
47 Group: Development/Libraries
48 Requires: %{name}-devel = %{version}-%{release}
51 This package contains static version of flam3.
53 %description static -l pl.UTF-8
54 Ten pakiet zawiera statycznÄ… wersjÄ™ biblioteki flam3.
57 %setup -q -n %{name}-%{version}/src
59 # drop redundant opt flags
60 %{__sed} -i 's,-g -O3,,' Makefile.am
70 %{!?with_static_libs:--disable-static}
74 rm -rf $RPM_BUILD_ROOT
77 DESTDIR=$RPM_BUILD_ROOT
79 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
82 rm -rf $RPM_BUILD_ROOT
84 %post -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
88 %defattr(644,root,root,755)
90 %attr(755,root,root) %{_bindir}/flam3-animate
91 %attr(755,root,root) %{_bindir}/flam3-convert
92 %attr(755,root,root) %{_bindir}/flam3-genome
93 %attr(755,root,root) %{_bindir}/flam3-render
94 %attr(755,root,root) %{_libdir}/libflam3.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libflam3.so.0
97 %{_mandir}/man1/flam3*.1*
100 %defattr(644,root,root,755)
102 %{_libdir}/libflam3.so
103 %{_pkgconfigdir}/flam3.pc
105 %if %{with static_libs}
107 %defattr(644,root,root,755)
108 %{_libdir}/libflam3.a