3 %bcond_without lirc # without LIRC support
5 Summary: GTK+ based GUI for xine-libraries
6 Summary(de): GTK+ basierende grafische Oberfläche für die xine-Bibliotheken
7 Summary(pl): Oparty na GTK+ graficzny interfejs do bibliotek XINE
12 Group: X11/Applications/Multimedia
13 Source0: http://dl.sourceforge.net/xine/%{name}-%{version}.tar.bz2
14 # Source0-md5: 0df37a7a38ea0d63129d2590971caabb
15 Patch0: %{name}-desktop.patch
16 Patch1: %{name}-plugindir.patch
17 URL: http://xine.sourceforge.net/
18 BuildRequires: autoconf >= 2.59
19 BuildRequires: automake >= 1:1.9
20 BuildRequires: gtk+2-devel >= 1:2.6.0
21 BuildRequires: js-devel
22 BuildRequires: libtool
23 %{?with_lirc:BuildRequires: lirc-devel}
24 BuildRequires: nspr-devel
25 BuildRequires: pango-devel >= 1.12
26 BuildRequires: pkgconfig
27 BuildRequires: rpmbuild(macros) >= 1.357
28 BuildRequires: xine-lib-devel >= 2:1.0.1
29 BuildRequires: xorg-lib-libXaw-devel
30 BuildRequires: xorg-lib-libXinerama-devel
31 Requires: xine-lib >= 2:1.0.1
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 xine is a fully-featured free audio/video player for unix-like systems
36 which uses libxine for audio/video decoding and playback. For more
37 informations on what formats are supported, please refer to the
38 libxine documentation. gxine is a GTK+ based GUI for this
39 xine-libraries alternat to xine-ui.
42 xine ist ein freies Audio- und Video-Abspielprogramm für unixartige
43 Systeme mit umfassenden Funktionen. Zur Audio- und Videodekodierung
44 und Wiedergabe werden die xine-Bibliotheken aus libxine verwendet.
45 Weitere Informationen über die unterstützten Formate entnehmen Sie in
46 der Dokumentation zu libxine. gxine ist eine GTK+ basierende grafische
47 Oberfläche für diese xine-Bibliotheken, alternativ zur xine-ui
50 xine to w pe³ni funkcjonalny wolnodostêpny odtwarzacz filmów dla
51 systemów uniksowych, korzystaj±cy z libxine do dekodowania i
52 odtwarzania d¼wiêku i obrazu. Wiêcej informacji o obs³ugiwanych
53 formatach mo¿na znale¼æ w dokumentacji libxine. gxine to graficzny
54 interfejs u¿ytkownika do tych bibliotek, oparty na GTK+, alternatywny
57 %package -n browser-plugin-gxine
58 Summary: gxine as browser plugin
59 Summary(pl): gxine jako wtyczka przegl±darki
60 Group: X11/Applications/Multimedia
61 Requires(post,postun): browser-plugins >= 2.0
62 Requires: %{name} = %{version}-%{release}
63 Requires: browser-plugins(%{_target_base_arch})
64 Obsoletes: mozilla-plugin-gxine
66 %description -n browser-plugin-gxine
67 gxine as browser plugin.
69 %description -n browser-plugin-gxine -l pl
70 gxine jako wtyczka przegl±darki.
84 %{!?with_lirc:--disable-lirc} \
86 --with-plugindir=%{_browserpluginsdir} \
87 --with-spidermonkey=/usr/include/js
92 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT \
96 Applicationsdir=%{_desktopdir}
98 rm -f $RPM_BUILD_ROOT%{_browserpluginsdir}/*.la
100 %find_lang %{name} --all-name
103 rm -rf $RPM_BUILD_ROOT
105 %post -n browser-plugin-gxine
106 %update_browser_plugins
108 %postun -n browser-plugin-gxine
109 if [ "$1" = "0" ]; then
110 %update_browser_plugins
113 %files -f %{name}.lang
114 %defattr(644,root,root,755)
115 %doc AUTHORS ChangeLog README TODO
116 %attr(755,root,root) %{_bindir}/gxine*
118 %dir %{_sysconfdir}/gxine
119 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gxine/*
120 %{_desktopdir}/gxine.desktop
121 %{_iconsdir}/hicolor/*/*/*.png
122 %{_pixmapsdir}/gxine.png
124 %lang(de) %{_mandir}/de/man1/*
126 %files -n browser-plugin-gxine
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_browserpluginsdir}/gxineplugin.so