]>
Commit | Line | Data |
---|---|---|
1ab47dd5 MB |
1 | # |
2 | # Conditional build: | |
ea8ec1f4 | 3 | %bcond_without apidocs # disable gtk-doc |
577d52d6 | 4 | %bcond_with pulseaudio # use pulseaudio instead of alsa |
85d2c7a1 | 5 | %bcond_with vivified # build (internal) Vivified Flash Debugger |
1ab47dd5 | 6 | # |
fbf97df1 | 7 | Summary: Flash animations rendering library |
0fe3e5ed | 8 | Summary(pl.UTF-8): Biblioteka renderująca animacje flash |
7196a610 | 9 | Name: swfdec |
fba84cd4 AM |
10 | %define majver 0.9 |
11 | Version: %{majver}.2 | |
12 | Release: 1 | |
6af89359 | 13 | License: LGPL v2.1+ |
7196a610 | 14 | Group: Libraries |
fba84cd4 AM |
15 | Source0: http://swfdec.freedesktop.org/download/swfdec/%{majver}/%{name}-%{version}.tar.gz |
16 | # Source0-md5: 7be5e39236e2d6efa61a18e83e5ab73d | |
65cdc140 | 17 | URL: http://swfdec.freedesktop.org/wiki/ |
577d52d6 | 18 | %{!?with_pulseaudio:BuildRequires: alsa-lib-devel >= 1.0} |
1ab47dd5 MB |
19 | BuildRequires: autoconf >= 2.58 |
20 | BuildRequires: automake >= 1:1.6 | |
c6d1f4e6 | 21 | BuildRequires: cairo-devel >= 1.6.0 |
5f0cfe85 | 22 | BuildRequires: docbook-dtd412-xml |
507e24d0 JB |
23 | BuildRequires: glib2-devel >= 1:2.16 |
24 | BuildRequires: gstreamer0.10-devel >= 0.10.11 | |
25 | BuildRequires: gstreamer0.10-plugins-base-devel >= 0.10.17 | |
85d2c7a1 | 26 | %{?with_vivified:BuildRequires: gtk+2-devel >= 2:2.11.6} |
7ff1af44 | 27 | BuildRequires: gtk+2-devel >= 2:2.8.0 |
1ab47dd5 | 28 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.6} |
0dc9f8d2 | 29 | BuildRequires: liboil-devel >= 0.3.9 |
b784cee1 | 30 | BuildRequires: libsoup-devel >= 2.2.100 |
7ff1af44 | 31 | BuildRequires: libtool |
85d2c7a1 | 32 | %{?with_vivified:BuildRequires: ming-devel >= 0.4.0-0.beta5} |
507e24d0 | 33 | BuildRequires: pango-devel >= 1:1.16 |
dabd0c40 | 34 | BuildRequires: pkgconfig |
577d52d6 | 35 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
594d55a1 | 36 | BuildRequires: rpmbuild(macros) >= 1.357 |
df6b79e1 | 37 | BuildRequires: zlib-devel >= 1.1.4 |
507e24d0 JB |
38 | Requires: cairo >= 1.6.0 |
39 | Requires: glib2 >= 1:2.16 | |
40 | Requires: gstreamer0.10 >= 0.10.11 | |
41 | Requires: gstreamer0.10-plugins-base >= 0.10.17 | |
42 | Requires: liboil >= 0.3.9 | |
43 | Requires: pango >= 1:1.16 | |
89c2802c | 44 | Obsoletes: gimp-plugin-swfdec |
82104355 | 45 | Obsoletes: libswfdec0 |
43ffca52 JB |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
7196a610 | 48 | %description |
49 | Libswfdec is a library for rendering Flash animations. Currently it | |
50 | handles most Flash 3 animations and some Flash 4. No interactivity is | |
51 | supported yet. | |
52 | ||
0fe3e5ed | 53 | %description -l pl.UTF-8 |
7196a610 | 54 | Biblioteka libswfdec przeznaczona jest do odtwarzania animacji flash. |
0fe3e5ed ER |
55 | Obecnie potrafi wyświetlić większość animacji Flash 3 i część Flash 4. |
56 | Interaktywność nie jest jeszcze obsługiwana. | |
7196a610 | 57 | |
58 | %package devel | |
59 | Summary: Header file required to build programs using swfdec library | |
0fe3e5ed | 60 | Summary(pl.UTF-8): Pliki nagłówkowe wymagane przez programy używające swfdec |
ea8ec1f4 | 61 | Group: Development/Libraries |
28ca7510 | 62 | Requires: %{name} = %{version}-%{release} |
507e24d0 JB |
63 | Requires: cairo-devel >= 1.6.0 |
64 | Requires: glib2-devel >= 1:2.16 | |
65 | Requires: gstreamer0.10-devel >= 0.10.11 | |
66 | Requires: gstreamer0.10-plugins-base-devel >= 0.10.17 | |
0dc9f8d2 | 67 | Requires: liboil-devel >= 0.3.9 |
507e24d0 | 68 | Requires: pango-devel >= 1:1.16 |
82104355 | 69 | Obsoletes: libswfdec0-devel |
7196a610 | 70 | |
71 | %description devel | |
72 | Header files required to build programs using swfdec library. | |
73 | ||
0fe3e5ed ER |
74 | %description devel -l pl.UTF-8 |
75 | Pliki nagłówkowe niezbędne do kompilacji programów korzystających z | |
7196a610 | 76 | biblioteki swfdec. |
77 | ||
78 | %package static | |
08db5d55 | 79 | Summary: Static swfdec library |
0fe3e5ed | 80 | Summary(pl.UTF-8): Statyczna biblioteka swfdec |
ea8ec1f4 | 81 | Group: Development/Libraries |
28ca7510 | 82 | Requires: %{name}-devel = %{version}-%{release} |
7196a610 | 83 | |
84 | %description static | |
85 | Static swfdec library. | |
86 | ||
0fe3e5ed | 87 | %description static -l pl.UTF-8 |
7196a610 | 88 | Statyczna biblioteka swfdec. |
89 | ||
ea8ec1f4 JB |
90 | %package gtk |
91 | Summary: swfdec-gtk library | |
92 | Summary(pl.UTF-8): Biblioteka swfdec-gtk | |
93 | Group: X11/Libraries | |
94 | Requires: %{name} = %{version}-%{release} | |
507e24d0 JB |
95 | Requires: alsa-lib >= 1.0 |
96 | Requires: gtk+2 >= 2:2.8.0 | |
97 | Requires: libsoup >= 2.2.100 | |
ea8ec1f4 JB |
98 | |
99 | %description gtk | |
100 | swfdec-gtk library. | |
101 | ||
102 | %description gtk -l pl.UTF-8 | |
103 | Biblioteka swfdec-gtk. | |
104 | ||
105 | %package gtk-devel | |
106 | Summary: Header files for swfdec-gtk library | |
107 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki swfdec-gtk | |
108 | Group: X11/Development/Libraries | |
109 | Requires: %{name}-devel = %{version}-%{release} | |
110 | Requires: %{name}-gtk = %{version}-%{release} | |
111 | Requires: alsa-lib-devel >= 1.0 | |
ea8ec1f4 | 112 | Requires: gtk+2-devel >= 2:2.8.0 |
78f660d8 | 113 | Requires: libsoup-devel >= 2.2.100 |
ea8ec1f4 JB |
114 | |
115 | %description gtk-devel | |
116 | Header files for swfdec-gtk library. | |
117 | ||
118 | %description gtk-devel -l pl.UTF-8 | |
119 | Pliki nagłówkowe biblioteki swfdec-gtk. | |
120 | ||
121 | %package gtk-static | |
122 | Summary: Static swfdec-gtk library | |
123 | Summary(pl.UTF-8): Statyczna biblioteka swfdec-gtk | |
124 | Group: X11/Development/Libraries | |
125 | Requires: %{name}-gtk-devel = %{version}-%{release} | |
126 | ||
127 | %description gtk-static | |
128 | Static swfdec-gtk library. | |
129 | ||
130 | %description gtk-static -l pl.UTF-8 | |
131 | Statyczna biblioteka swfdec-gtk. | |
132 | ||
133 | %package apidocs | |
134 | Summary: swfdec API documetation | |
135 | Summary(pl.UTF-8): Dokumentacja API swfdec | |
136 | Group: Documentation | |
137 | Requires: gtk-doc-common | |
138 | ||
139 | %description apidocs | |
140 | swfdec API documetation. | |
141 | ||
142 | %description apidocs -l pl.UTF-8 | |
143 | Dokumentacja API swfdec. | |
144 | ||
7196a610 | 145 | %prep |
146 | %setup -q | |
7196a610 | 147 | |
148 | %build | |
1ab47dd5 MB |
149 | %{__libtoolize} |
150 | %{__aclocal} -I m4 | |
151 | %{__autoconf} | |
152 | %{__autoheader} | |
153 | %{__automake} | |
a38942fe | 154 | %configure \ |
1ab47dd5 | 155 | --enable-gstreamer \ |
1ab47dd5 | 156 | --enable-gtk \ |
577d52d6 | 157 | --enable-gtk-doc%{!?with_apidocs:=no} \ |
85d2c7a1 | 158 | %{?with_vivified:--enable-vivified} \ |
577d52d6 | 159 | %{?with_pulseaudio:--with-audio=pulse} \ |
a38942fe | 160 | --with-html-dir=%{_gtkdocdir} |
d80b7314 | 161 | %{__make} -j1 |
7196a610 | 162 | |
163 | %install | |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
d80b7314 | 166 | %{__make} -j1 install \ |
65cdc140 | 167 | DESTDIR=$RPM_BUILD_ROOT |
7196a610 | 168 | |
ea8ec1f4 | 169 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
9889d83b | 170 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
1ab47dd5 | 171 | |
7196a610 | 172 | %clean |
173 | rm -rf $RPM_BUILD_ROOT | |
174 | ||
df6b79e1 JB |
175 | %post -p /sbin/ldconfig |
176 | %postun -p /sbin/ldconfig | |
177 | ||
ea8ec1f4 JB |
178 | %post gtk -p /sbin/ldconfig |
179 | %postun gtk -p /sbin/ldconfig | |
180 | ||
7196a610 | 181 | %files |
182 | %defattr(644,root,root,755) | |
65cdc140 | 183 | %doc AUTHORS ChangeLog NEWS README |
fba84cd4 AM |
184 | %attr(755,root,root) %{_libdir}/libswfdec-%{majver}.so.*.*.* |
185 | %attr(755,root,root) %ghost %{_libdir}/libswfdec-%{majver}.so.2 | |
a38942fe | 186 | |
7196a610 | 187 | %files devel |
188 | %defattr(644,root,root,755) | |
fba84cd4 AM |
189 | %attr(755,root,root) %{_libdir}/libswfdec-%{majver}.so |
190 | %dir %{_includedir}/swfdec-%{majver} | |
191 | %{_includedir}/swfdec-%{majver}/swfdec | |
192 | %{_pkgconfigdir}/swfdec-%{majver}.pc | |
7196a610 | 193 | |
194 | %files static | |
195 | %defattr(644,root,root,755) | |
fba84cd4 | 196 | %attr(755,root,root) %{_libdir}/libswfdec-%{majver}.a |
ea8ec1f4 JB |
197 | |
198 | %files gtk | |
199 | %defattr(644,root,root,755) | |
fba84cd4 AM |
200 | %attr(755,root,root) %{_libdir}/libswfdec-gtk-%{majver}.so.*.*.* |
201 | %attr(755,root,root) %ghost %{_libdir}/libswfdec-gtk-%{majver}.so.2 | |
ea8ec1f4 JB |
202 | |
203 | %files gtk-devel | |
204 | %defattr(644,root,root,755) | |
fba84cd4 AM |
205 | %attr(755,root,root) %{_libdir}/libswfdec-gtk-%{majver}.so |
206 | %{_includedir}/swfdec-%{majver}/swfdec-gtk | |
207 | %{_pkgconfigdir}/swfdec-gtk-%{majver}.pc | |
ea8ec1f4 JB |
208 | |
209 | %files gtk-static | |
210 | %defattr(644,root,root,755) | |
fba84cd4 | 211 | %attr(755,root,root) %{_libdir}/libswfdec-gtk-%{majver}.a |
85d2c7a1 | 212 | |
ea8ec1f4 JB |
213 | %if %{with apidocs} |
214 | %files apidocs | |
215 | %defattr(644,root,root,755) | |
216 | %{_gtkdocdir}/swfdec | |
217 | %endif |