]>
Commit | Line | Data |
---|---|---|
0c03dc22 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
5 | Summary: Programs to generate and render cosmic recursive fractal flames | |
6 | Name: flam3 | |
7 | Version: 3.0.1 | |
8 | Release: 1 | |
9 | License: GPL v3+ | |
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) | |
23 | ||
24 | %description | |
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). | |
30 | ||
31 | %package devel | |
32 | Summary: C headers to generate and render cosmic recursive fractal flames | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
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. | |
43 | ||
44 | %package static | |
45 | Summary: Static flam3 library | |
46 | Summary(pl.UTF-8): Statyczna biblioteka flam3 | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | This package contains static version of flam3. | |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Ten pakiet zawiera statycznÄ… wersjÄ™ biblioteki flam3. | |
55 | ||
56 | %prep | |
57 | %setup -q -n %{name}-%{version}/src | |
58 | ||
8f1fd20e | 59 | # drop redundant opt flags |
60 | %{__sed} -i 's,-g -O3,,' Makefile.am | |
0c03dc22 | 61 | |
62 | %build | |
63 | %{__libtoolize} | |
64 | %{__aclocal} -I m4 | |
65 | %{__autoconf} | |
66 | %{__autoheader} | |
67 | %{__automake} | |
68 | %configure \ | |
69 | --enable-shared \ | |
70 | %{!?with_static_libs:--disable-static} | |
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc README.txt | |
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 | |
96 | %{_datadir}/flam3 | |
97 | %{_mandir}/man1/flam3*.1* | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %{_includedir}/*.h | |
102 | %{_libdir}/libflam3.so | |
103 | %{_pkgconfigdir}/flam3.pc | |
104 | ||
105 | %if %{with static_libs} | |
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libflam3.a | |
109 | %endif |