]>
Commit | Line | Data |
---|---|---|
689605e0 | 1 | # TODO: some plugins (like oa_jack,oa_pulse) to subpackages? (see dependencies in files) |
8dcd9d87 JB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without static_libs # don't build static libraries | |
77728282 | 5 | %bcond_without nmjedit # nmjedit program |
8dcd9d87 JB |
6 | %bcond_with esd # EsounD support |
7 | %bcond_with v4l1 # Video4Linux 1 support | |
8 | # | |
9 | Summary: Set of multimedia libraries builded with an application suite | |
10 | Summary(pl.UTF-8): Zbiór bibliotek multimedialnych wraz z aplikacjami | |
11 | Name: gmerlin | |
734cddcd | 12 | Version: 1.2.0 |
030f579d | 13 | Release: 8 |
8dcd9d87 JB |
14 | License: GPL v2+ |
15 | Group: Libraries | |
16 | Source0: http://downloads.sourceforge.net/gmerlin/%{name}-%{version}.tar.gz | |
734cddcd | 17 | # Source0-md5: 2f2a0880e738e71486f04c929ba067f4 |
8dcd9d87 JB |
18 | Patch0: %{name}-link.patch |
19 | Patch1: %{name}-icons.patch | |
20 | Patch2: %{name}-info.patch | |
734cddcd | 21 | Patch3: cdio.patch |
77728282 | 22 | Patch4: %{name}-am.patch |
8dcd9d87 JB |
23 | URL: http://gmerlin.sourceforge.net/ |
24 | BuildRequires: OpenGL-devel | |
25 | BuildRequires: alsa-lib-devel >= 1.0.0 | |
26 | BuildRequires: autoconf >= 2.50 | |
27 | BuildRequires: automake | |
28 | %{?with_esd:BuildRequires: esound-devel >= 0.2.19} | |
29 | BuildRequires: fontconfig-devel >= 2.2.3 | |
5297cd4f JB |
30 | # pkgconfig(freetype2) >= 9.7.3 |
31 | BuildRequires: freetype-devel >= 1:2.1.9 | |
734cddcd | 32 | BuildRequires: gavl-devel >= 1.4.0 |
3d04bf02 | 33 | BuildRequires: gettext-tools |
8dcd9d87 JB |
34 | # inotify interface |
35 | BuildRequires: glibc-devel >= 6:2.4 | |
36 | BuildRequires: gtk+2-devel >= 2:2.8.0 | |
37 | BuildRequires: jack-audio-connection-kit-devel >= 0.109.2 | |
38 | BuildRequires: libcddb-devel >= 1.0.2 | |
39 | BuildRequires: libcdio-devel >= 0.76 | |
47c5882e | 40 | BuildRequires: libcdio-paranoia-devel |
77728282 | 41 | BuildRequires: libexif-devel |
8dcd9d87 JB |
42 | BuildRequires: libjpeg-devel |
43 | BuildRequires: libmusicbrainz-devel >= 2.0.2 | |
44 | BuildRequires: libpng-devel | |
77728282 | 45 | BuildRequires: libquicktime-devel >= 1.2.4 |
8dcd9d87 JB |
46 | BuildRequires: libtiff-devel |
47 | BuildRequires: libtool | |
48 | BuildRequires: libv4l-devel >= 0.5.7 | |
49 | BuildRequires: libvisual-devel >= 0.4.0 | |
50 | BuildRequires: libxml2-devel >= 2.4.0 | |
51 | BuildRequires: pkgconfig | |
52 | BuildRequires: pulseaudio-devel | |
53 | BuildRequires: sed >= 4.0 | |
77728282 | 54 | %{?with_nmjedit:BuildRequires: sqlite3-devel} |
8dcd9d87 JB |
55 | BuildRequires: texinfo |
56 | BuildRequires: xorg-lib-libXext-devel | |
57 | BuildRequires: xorg-lib-libXfixes-devel | |
58 | BuildRequires: xorg-lib-libXinerama-devel | |
59 | BuildRequires: xorg-lib-libXtst-devel | |
60 | BuildRequires: xorg-lib-libXv-devel | |
61 | BuildRequires: xorg-lib-libX11-devel >= 1.0.0 | |
62 | Requires: fontconfig-libs >= 2.2.3 | |
5297cd4f | 63 | Requires: freetype >= 1:2.1.9 |
77728282 | 64 | Requires: gavl >= 1.4.0 |
8dcd9d87 | 65 | Requires: gtk+2 >= 2:2.8.0 |
77728282 JB |
66 | Requires: libcddb >= 1.0.2 |
67 | Requires: libcdio >= 0.76 | |
68 | Requires: libmusicbrainz >= 2.0.2 | |
69 | Requires: libquicktime >= 1.2.4 | |
70 | Requires: libv4l >= 0.5.7 | |
8dcd9d87 JB |
71 | Requires: libvisual >= 0.4.0 |
72 | Requires: libxml2 >= 2.4.0 | |
73 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
74 | ||
75 | %description | |
76 | Gmerlin is a set of multimedia libraries bundled with an application | |
77 | suite. | |
78 | ||
79 | This package contains the core libraries, some plugins and most | |
80 | applications. | |
81 | ||
82 | %description -l pl.UTF-8 | |
83 | Gmerlin to zbiór bibliotek multimedialnych wraz z aplikacjami. | |
84 | ||
85 | Ten pakiet zawiera główne biblioteki, trochę wtyczek i więszkość | |
86 | aplikacji. | |
87 | ||
88 | %package devel | |
89 | Summary: Header files for gmerlin libraries | |
90 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek gmerlin | |
91 | Group: Development/Libraries | |
92 | Requires: %{name} = %{version}-%{release} | |
93 | Requires: OpenGL-devel | |
94 | Requires: fontconfig-devel >= 2.2.3 | |
5297cd4f | 95 | Requires: freetype-devel >= 1:2.1.9 |
77728282 | 96 | Requires: gavl-devel >= 1.4.0 |
8dcd9d87 JB |
97 | Requires: gtk+2-devel >= 2:2.8.0 |
98 | Requires: libvisual-devel >= 0.4.0 | |
99 | Requires: libxml2-devel >= 2.4.0 | |
100 | Requires: xorg-lib-libXfixes-devel | |
101 | Requires: xorg-lib-libXinerama-devel | |
102 | Requires: xorg-lib-libXtst-devel | |
103 | Requires: xorg-lib-libXv-devel | |
104 | ||
105 | %description devel | |
106 | Header files for gmerlin libraries. | |
107 | ||
108 | %description devel -l pl.UTF-8 | |
109 | Pliki nagłówkowe bibliotek gmerlin. | |
110 | ||
111 | %package static | |
112 | Summary: Static gmerlin libraries | |
113 | Summary(pl.UTF-8): Statyczne biblioteki gmerlin | |
114 | Group: Development/Libraries | |
115 | Requires: %{name}-devel = %{version}-%{release} | |
116 | ||
117 | %description static | |
118 | Static gmerlin libraries. | |
119 | ||
120 | %description static -l pl.UTF-8 | |
121 | Statyczne biblioteki gmerlin. | |
122 | ||
123 | %prep | |
124 | %setup -q | |
125 | %patch0 -p1 | |
126 | %patch1 -p1 | |
127 | %patch2 -p1 | |
734cddcd | 128 | %patch3 -p1 |
77728282 | 129 | %patch4 -p1 |
8dcd9d87 JB |
130 | |
131 | # evil, sets CFLAGS basing on /proc/cpuinfo, overrides our optflags | |
132 | # (--with-cpuflags=none disables using /proc/cpuinfo, but not overriding) | |
133 | sed -i -e '19,$d;18aAC_DEFUN([LQT_OPT_CFLAGS],[OPT_CFLAGS="$CFLAGS"])' m4/lqt_opt_cflags.m4 | |
134 | ||
135 | %build | |
136 | %{__gettextize} | |
137 | %{__libtoolize} | |
138 | %{__aclocal} -I m4 | |
139 | %{__autoconf} | |
140 | %{__autoheader} | |
141 | %{__automake} | |
142 | %configure \ | |
143 | %{!?with_esd:--disable-esd} \ | |
144 | %{!?with_v4l1:--disable-v4l} \ | |
77728282 | 145 | %{?with_nmjedit:--enable-nmjedit} \ |
8dcd9d87 JB |
146 | %{?with_static_libs:--enable-static} \ |
147 | --with-cpuflags=none | |
148 | %{__make} | |
149 | ||
150 | %install | |
151 | rm -rf $RPM_BUILD_ROOT | |
152 | ||
153 | %{__make} -j1 install \ | |
154 | DESTDIR=$RPM_BUILD_ROOT | |
155 | ||
156 | # dlopened plugins | |
157 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gmerlin/plugins/*.{la,a} | |
158 | # lib*.la kept - incomplete private dependencies in *.pc | |
159 | ||
160 | %find_lang %{name} | |
161 | ||
162 | %clean | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
165 | %post -p /sbin/postshell | |
166 | -/sbin/ldconfig | |
167 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
168 | ||
169 | %postun -p /sbin/postshell | |
170 | -/sbin/ldconfig | |
171 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
172 | ||
173 | %files -f %{name}.lang | |
174 | %defattr(644,root,root,755) | |
175 | %doc AUTHORS README | |
176 | %if %{with v4l1} | |
177 | %attr(755,root,root) %{_bindir}/camelot | |
178 | %endif | |
734cddcd JR |
179 | %attr(755,root,root) %{_bindir}/album2m3u |
180 | %attr(755,root,root) %{_bindir}/album2pls | |
8dcd9d87 | 181 | %attr(755,root,root) %{_bindir}/gmerlin |
77728282 JB |
182 | %if %{with nmjedit} |
183 | %attr(755,root,root) %{_bindir}/gmerlin-nmjedit | |
184 | %endif | |
734cddcd | 185 | %attr(755,root,root) %{_bindir}/gmerlin-record |
8dcd9d87 JB |
186 | %attr(755,root,root) %{_bindir}/gmerlin-video-thumbnailer |
187 | %attr(755,root,root) %{_bindir}/gmerlin_alsamixer | |
188 | %attr(755,root,root) %{_bindir}/gmerlin_imgconvert | |
189 | %attr(755,root,root) %{_bindir}/gmerlin_imgdiff | |
190 | %attr(755,root,root) %{_bindir}/gmerlin_kbd | |
191 | %attr(755,root,root) %{_bindir}/gmerlin_kbd_config | |
192 | %attr(755,root,root) %{_bindir}/gmerlin_launcher | |
193 | %attr(755,root,root) %{_bindir}/gmerlin_play | |
194 | %attr(755,root,root) %{_bindir}/gmerlin_plugincfg | |
195 | %attr(755,root,root) %{_bindir}/gmerlin_psnr | |
196 | %attr(755,root,root) %{_bindir}/gmerlin_recorder | |
197 | %attr(755,root,root) %{_bindir}/gmerlin_remote | |
198 | %attr(755,root,root) %{_bindir}/gmerlin_ssim | |
199 | %attr(755,root,root) %{_bindir}/gmerlin_transcoder | |
200 | %attr(755,root,root) %{_bindir}/gmerlin_transcoder_remote | |
201 | %attr(755,root,root) %{_bindir}/gmerlin_vanalyze | |
202 | %attr(755,root,root) %{_bindir}/gmerlin_visualize | |
203 | %attr(755,root,root) %{_bindir}/gmerlin_visualizer | |
204 | %attr(755,root,root) %{_bindir}/gmerlin_visualizer_slave | |
205 | %attr(755,root,root) %{_bindir}/gmerlin_vpsnr | |
206 | %attr(755,root,root) %{_libdir}/libgmerlin.so.*.*.* | |
207 | %attr(755,root,root) %ghost %{_libdir}/libgmerlin.so.0 | |
208 | %attr(755,root,root) %{_libdir}/libgmerlin_gtk.so.*.*.* | |
209 | %attr(755,root,root) %ghost %{_libdir}/libgmerlin_gtk.so.0 | |
210 | %dir %{_libdir}/gmerlin | |
211 | %dir %{_libdir}/gmerlin/plugins | |
689605e0 JB |
212 | # R: libquicktime |
213 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/e_lqt.so | |
214 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/e_pp_cdrdao.so | |
215 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/e_pp_vcdimager.so | |
216 | # R: libpng | |
217 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/e_spumux.so | |
218 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/e_subtext.so | |
219 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/e_wav.so | |
220 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fa_sampleformat.so | |
221 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fa_volume.so | |
222 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_bitshift.so | |
223 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_blur.so | |
224 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_colorbalance.so | |
225 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_colormatrix_rgb.so | |
226 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_colormatrix_yuv.so | |
227 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_cropscale.so | |
228 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_decimate.so | |
229 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_deinterlace.so | |
230 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_equalizer.so | |
231 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_flip.so | |
232 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_framerate.so | |
233 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_interlace.so | |
234 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_invert_rgb.so | |
235 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_oldcolor.so | |
236 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_pixelformat.so | |
237 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_swapfields.so | |
238 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_tcdisplay.so | |
239 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_tctweak.so | |
240 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_textlogo.so | |
241 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_tlp.so | |
242 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_transform.so | |
243 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/fv_zoom.so | |
244 | # R: alsa-lib | |
245 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_alsa.so | |
246 | # R: libcdio, libcdio-paranoia | |
247 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_cdaudio.so | |
248 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_edl.so | |
249 | # R: esound-libs | |
250 | %{?with_esd:%attr(755,root,root) %{_libdir}/gmerlin/plugins/i_esd.so} | |
251 | # R: jack-audio-connection-kit-libs | |
252 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_jack.so | |
253 | # R: libquicktime | |
254 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_lqt.so | |
255 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_mikmod.so | |
256 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_oss.so | |
257 | # R: pulseaudio-libs | |
258 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_pulse.so | |
259 | %{?with_v4l1:%attr(755,root,root) %{_libdir}/gmerlin/plugins/i_v4l.so} | |
260 | # R: libv4l | |
261 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_v4l2.so | |
262 | # R: libXinerama libXv | |
263 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/i_x11.so | |
264 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/ir_bmp.so | |
265 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/ir_gavl.so | |
266 | # R: libjpeg | |
267 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/ir_jpeg.so | |
268 | # R: libpng | |
269 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/ir_png.so | |
270 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/ir_pnm.so | |
271 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/ir_tga.so | |
272 | # R: libtiff | |
273 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/ir_tiff.so | |
274 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/iw_bmp.so | |
275 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/iw_gavl.so | |
276 | # R: libjpeg | |
277 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/iw_jpeg.so | |
278 | # R: libpng | |
279 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/iw_png.so | |
280 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/iw_pnm.so | |
281 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/iw_tga.so | |
282 | # R: libtiff | |
283 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/iw_tiff.so | |
284 | # R: alsa-lib | |
285 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/oa_alsa.so | |
286 | # R: esound-libs | |
287 | %{?with_esd:%attr(755,root,root) %{_libdir}/gmerlin/plugins/oa_esd.so} | |
288 | # R: jack-audio-connection-kit-libs | |
289 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/oa_jack.so | |
290 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/oa_oss.so | |
291 | # R: pulseaudio-libs | |
292 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/oa_pulse.so | |
293 | # R: libv4l | |
294 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/ov_v4l2.so | |
295 | # R: libXinerama libXv | |
296 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/ov_x11.so | |
297 | %attr(755,root,root) %{_libdir}/gmerlin/plugins/vis_scope.so | |
8dcd9d87 JB |
298 | %{_datadir}/gmerlin |
299 | %doc %dir %{_docdir}/gmerlin | |
300 | %doc %{_docdir}/gmerlin/img | |
301 | %doc %{_docdir}/gmerlin/userguide | |
302 | %{_infodir}/gmerlin.info* | |
303 | %{_mandir}/man1/gmerlin.1* | |
734cddcd | 304 | %{_mandir}/man1/gmerlin-record.1* |
8dcd9d87 JB |
305 | %{_mandir}/man1/gmerlin_play.1* |
306 | %{_mandir}/man1/gmerlin_remote.1* | |
307 | %{_mandir}/man1/gmerlin_transcoder.1* | |
308 | %{_mandir}/man1/gmerlin_transcoder_remote.1* | |
309 | %{_desktopdir}/gmerlin-alsamixer.desktop | |
310 | %{_desktopdir}/gmerlin-kbd.desktop | |
311 | %{_desktopdir}/gmerlin-player.desktop | |
312 | %{_desktopdir}/gmerlin-plugincfg.desktop | |
313 | %{_desktopdir}/gmerlin-recorder.desktop | |
314 | %{_desktopdir}/gmerlin-transcoder.desktop | |
315 | %{_desktopdir}/gmerlin-visualizer.desktop | |
316 | %{_iconsdir}/hicolor/48x48/apps/gmerlin-alsamixer.png | |
317 | %{_iconsdir}/hicolor/48x48/apps/gmerlin-camelot.png | |
318 | %{_iconsdir}/hicolor/48x48/apps/gmerlin-kbd.png | |
319 | %{_iconsdir}/hicolor/48x48/apps/gmerlin-player.png | |
320 | %{_iconsdir}/hicolor/48x48/apps/gmerlin-plugincfg.png | |
321 | %{_iconsdir}/hicolor/48x48/apps/gmerlin-recorder.png | |
322 | %{_iconsdir}/hicolor/48x48/apps/gmerlin-transcoder.png | |
323 | %{_iconsdir}/hicolor/48x48/apps/gmerlin-visualizer.png | |
324 | ||
325 | %files devel | |
326 | %defattr(644,root,root,755) | |
327 | %attr(755,root,root) %{_libdir}/libgmerlin.so | |
328 | %attr(755,root,root) %{_libdir}/libgmerlin_gtk.so | |
689605e0 | 329 | # many Requires.private or Libs.private missing in *.pc |
8dcd9d87 JB |
330 | %{_libdir}/libgmerlin.la |
331 | %{_libdir}/libgmerlin_gtk.la | |
332 | %{_includedir}/gmerlin | |
333 | %{_pkgconfigdir}/gmerlin.pc | |
334 | %{_pkgconfigdir}/gmerlin-gtk.pc | |
335 | %doc %{_docdir}/gmerlin/apiref | |
336 | ||
337 | %if %{with static_libs} | |
338 | %files static | |
339 | %defattr(644,root,root,755) | |
340 | %{_libdir}/libgmerlin.a | |
341 | %{_libdir}/libgmerlin_gtk.a | |
342 | %endif |