3 %bcond_without lirc # without LIRC support
5 Summary: GTK+ based GUI for xine-libraries
6 Summary(de.UTF-8): GTK+ basierende grafische Oberfläche für die xine-Bibliotheken
7 Summary(pl.UTF-8): 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: b210d1f6e3eab3ff496c1db9e09dbcd0
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: dbus-glib-devel >= 0.35
21 BuildRequires: gtk+2-devel >= 1:2.6.0
22 BuildRequires: js-devel
23 BuildRequires: libtool
24 %{?with_lirc:BuildRequires: lirc-devel}
25 BuildRequires: nspr-devel
26 BuildRequires: pango-devel >= 1.12.0
27 BuildRequires: pkgconfig
28 BuildRequires: rpmbuild(macros) >= 1.357
29 BuildRequires: xine-lib-devel >= 2:1.0.1
30 BuildRequires: xorg-lib-libXaw-devel
31 BuildRequires: xorg-lib-libXinerama-devel
32 Requires: xine-lib >= 2:1.0.1
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 xine is a fully-featured free audio/video player for unix-like systems
37 which uses libxine for audio/video decoding and playback. For more
38 informations on what formats are supported, please refer to the
39 libxine documentation. gxine is a GTK+ based GUI for this
40 xine-libraries alternat to xine-ui.
42 %description -l de.UTF-8
43 xine ist ein freies Audio- und Video-Abspielprogramm für unixartige
44 Systeme mit umfassenden Funktionen. Zur Audio- und Videodekodierung
45 und Wiedergabe werden die xine-Bibliotheken aus libxine verwendet.
46 Weitere Informationen über die unterstützten Formate entnehmen Sie in
47 der Dokumentation zu libxine. gxine ist eine GTK+ basierende grafische
48 Oberfläche für diese xine-Bibliotheken, alternativ zur xine-ui
50 %description -l pl.UTF-8
51 xine to w pełni funkcjonalny wolnodostępny odtwarzacz filmów dla
52 systemów uniksowych, korzystający z libxine do dekodowania i
53 odtwarzania dźwięku i obrazu. Więcej informacji o obsługiwanych
54 formatach można znaleźć w dokumentacji libxine. gxine to graficzny
55 interfejs użytkownika do tych bibliotek, oparty na GTK+, alternatywny
58 %package -n browser-plugin-gxine
59 Summary: gxine as browser plugin
60 Summary(pl.UTF-8): gxine jako wtyczka przeglądarki
61 Group: X11/Applications/Multimedia
62 Requires(post,postun): browser-plugins >= 2.0
63 Requires: %{name} = %{version}-%{release}
64 Requires: browser-plugins(%{_target_base_arch})
65 Obsoletes: mozilla-plugin-gxine
67 %description -n browser-plugin-gxine
68 gxine as browser plugin.
70 %description -n browser-plugin-gxine -l pl.UTF-8
71 gxine jako wtyczka przeglądarki.
85 GSSCMD=/usr/bin/gnome-screensaver-command \
86 %{!?with_lirc:--disable-lirc} \
88 --with-plugindir=%{_browserpluginsdir} \
89 --with-spidermonkey=/usr/include/js
94 rm -rf $RPM_BUILD_ROOT
97 DESTDIR=$RPM_BUILD_ROOT \
98 Applicationsdir=%{_desktopdir}
100 rm -f $RPM_BUILD_ROOT%{_browserpluginsdir}/*.la
102 %find_lang %{name} --all-name
105 rm -rf $RPM_BUILD_ROOT
107 %post -n browser-plugin-gxine
108 %update_browser_plugins
110 %postun -n browser-plugin-gxine
111 if [ "$1" = "0" ]; then
112 %update_browser_plugins
115 %files -f %{name}.lang
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog README TODO
118 %attr(755,root,root) %{_bindir}/gxine*
120 %dir %{_sysconfdir}/gxine
121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gxine/*
122 %{_desktopdir}/gxine.desktop
123 %{_iconsdir}/hicolor/*/*/*.png
124 %{_pixmapsdir}/gxine.png
126 %lang(de) %{_mandir}/de/man1/*
128 %files -n browser-plugin-gxine
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_browserpluginsdir}/gxineplugin.so