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