]> git.pld-linux.org Git - packages/gxine.git/blobdiff - gxine.spec
- now at least js 1.8.5 (js185 package) is required
[packages/gxine.git] / gxine.spec
index a6514e2a4dfb1c4dcbaabfa9a3de079a32038730..34992168c4ca0a25155c3b398f87839315051021 100644 (file)
@@ -1,35 +1,48 @@
-# TODO: switch to browser-plugins
 #
 # Conditional build:
 %bcond_without lirc    # without LIRC support
 #
 Summary:       GTK+ based GUI for xine-libraries
-Summary(de):   GTK+ basierende grafische Oberfläche für die xine-Bibliotheken
-Summary(pl):   Oparty na GTK+ graficzny interfejs do bibliotek XINE
+Summary(de.UTF-8):     GTK+ basierende grafische Oberfläche für die xine-Bibliotheken
+Summary(pl.UTF-8):     Oparty na GTK+ graficzny interfejs do bibliotek XINE
 Name:          gxine
-Version:       0.5.8
+Version:       0.5.907
 Release:       1
-License:       GPL
+License:       GPL v2+
 Group:         X11/Applications/Multimedia
-Source0:       http://dl.sourceforge.net/xine/%{name}-%{version}.tar.bz2
-# Source0-md5: e6bc2be9c6b3a13a101d462b2034b035
+Source0:       http://downloads.sourceforge.net/xine/%{name}-%{version}.tar.bz2
+# Source0-md5: 6675dba9d51f45efe4edfa65ee38b6cb
 Patch0:                %{name}-desktop.patch
 Patch1:                %{name}-plugindir.patch
-URL:           http://xine.sourceforge.net/
-BuildRequires: autoconf >= 2.50
-BuildRequires: automake
-BuildRequires: gtk+2-devel >= 1:2.6.0
-BuildRequires: js-devel
+Patch2:                %{name}-link.patch
+Patch3:                glib.patch
+URL:           http://www.xine-project.org/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.9
+BuildRequires: dbus-glib-devel >= 0.35
+BuildRequires: glib2-devel >= 1:2.10.0
+BuildRequires: gtk+2-devel >= 2:2.8.0
+BuildRequires: js-devel >= 2:1.8.5
 BuildRequires: libtool
+BuildRequires: libxcb-devel >= 1.0
 %{?with_lirc:BuildRequires:    lirc-devel}
+BuildRequires: nspr-devel
+BuildRequires: pango-devel >= 1:1.12.0
 BuildRequires: pkgconfig
-BuildRequires: xine-lib-devel >= 1:1.0
+BuildRequires: rpmbuild(macros) >= 1.357
+BuildRequires: udev-glib-devel
+BuildRequires: xine-lib-devel >= 2:1.1.8
 BuildRequires: xorg-lib-libXaw-devel
-Requires:      xine-lib >= 1:1.0
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXinerama-devel
+BuildRequires: xorg-lib-libXrandr-devel
+BuildRequires: xorg-lib-libXtst-devel
+Requires:      glib2 >= 1:2.10.0
+Requires:      gtk+2 >= 2:2.8.0
+Requires:      pango >= 1:1.12.0
+Requires:      xine-lib >= 2:1.1.8
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                mozilladir      /usr/%{_lib}/mozilla/plugins
-
 %description
 xine is a fully-featured free audio/video player for unix-like systems
 which uses libxine for audio/video decoding and playback. For more
@@ -37,80 +50,107 @@ informations on what formats are supported, please refer to the
 libxine documentation. gxine is a GTK+ based GUI for this
 xine-libraries alternat to xine-ui.
 
-%description -l de
-xine ist ein freies Audio- und Video-Abspielprogramm für unixartige
+%description -l de.UTF-8
+xine ist ein freies Audio- und Video-Abspielprogramm für unixartige
 Systeme mit umfassenden Funktionen. Zur Audio- und Videodekodierung
 und Wiedergabe werden die xine-Bibliotheken aus libxine verwendet.
-Weitere Informationen über die unterstützten Formate entnehmen Sie in
+Weitere Informationen über die unterstützten Formate entnehmen Sie in
 der Dokumentation zu libxine. gxine ist eine GTK+ basierende grafische
-Oberfläche für diese xine-Bibliotheken, alternativ zur xine-ui
-
-%description -l pl
-xine to w pe³ni funkcjonalny wolnodostêpny odtwarzacz filmów dla
-systemów uniksowych, korzystaj±cy z libxine do dekodowania i
-odtwarzania d¼wiêku i obrazu. Wiêcej informacji o obs³ugiwanych
-formatach mo¿na znale¼æ w dokumentacji libxine. gxine to graficzny
-interfejs u¿ytkownika do tych bibliotek, oparty na GTK+, alternatywny
+Oberfläche für diese xine-Bibliotheken, alternativ zur xine-ui
+
+%description -l pl.UTF-8
+xine to w pełni funkcjonalny wolnodostępny odtwarzacz filmów dla
+systemów uniksowych, korzystający z libxine do dekodowania i
+odtwarzania dźwięku i obrazu. Więcej informacji o obsługiwanych
+formatach można znaleźć w dokumentacji libxine. gxine to graficzny
+interfejs użytkownika do tych bibliotek, oparty na GTK+, alternatywny
 dla xine-ui.
 
-%package -n mozilla-plugin-gxine
-Summary:       gxine as Mozilla plugin
-Summary(pl):   gxine jako wtyczka Mozilli
+%package -n browser-plugin-gxine
+Summary:       gxine as browser plugin
+Summary(pl.UTF-8):     gxine jako wtyczka przeglądarki
 Group:         X11/Applications/Multimedia
+Requires(post,postun): browser-plugins >= 2.0
 Requires:      %{name} = %{version}-%{release}
+Requires:      browser-plugins(%{_target_base_arch})
+Obsoletes:     mozilla-plugin-gxine
 
-%description -n mozilla-plugin-gxine
-gxine as Mozilla plugin.
+%description -n browser-plugin-gxine
+gxine as browser plugin.
 
-%description -n mozilla-plugin-gxine -l pl
-gxine jako wtyczka Mozilli.
+%description -n browser-plugin-gxine -l pl.UTF-8
+gxine jako wtyczka przeglądarki.
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
+%{__gettextize}
 %{__libtoolize}
 %{__aclocal} -I m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
 %configure \
+       GSSCMD=/usr/bin/gnome-screensaver-command \
+       XSSCMD=/usr/bin/xscreensaver \
        %{!?with_lirc:--disable-lirc} \
-       --disable-static \
-       --with-plugindir=%{mozilladir} \
+       --with-gudev \
+       --without-hal \
+       --with-plugindir=%{_browserpluginsdir} \
        --with-spidermonkey=/usr/include/js
 
-%{__make}
+%{__make} \
+       V=1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT \
-       Applicationsdir=%{_desktopdir}
+       MKDIR_P="mkdir -p" \
+       DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{mozilladir}/*.la
+%{__rm} $RPM_BUILD_ROOT%{_browserpluginsdir}/*.la
 
 %find_lang %{name} --all-name
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post -n browser-plugin-gxine
+%update_browser_plugins
+
+%postun -n browser-plugin-gxine
+if [ "$1" = "0" ]; then
+       %update_browser_plugins
+fi
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README TODO
-%attr(755,root,root) %{_bindir}/gxine*
+%doc AUTHORS BUGS ChangeLog README TODO
+%lang(cs) %doc README.cs
+%lang(de) %doc README.de
+%attr(755,root,root) %{_bindir}/gxine
+%attr(755,root,root) %{_bindir}/gxine_client
 %{_datadir}/gxine
 %dir %{_sysconfdir}/gxine
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gxine/*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gxine/gtkrc
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gxine/startup
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gxine/*.xml
 %{_desktopdir}/gxine.desktop
-%{_iconsdir}/hicolor/*/*/*.png
+%{_iconsdir}/hicolor/*/apps/gxine.png
 %{_pixmapsdir}/gxine.png
-%{_mandir}/man1/*
-%lang(de) %{_mandir}/de/man1/*
-
-%files -n mozilla-plugin-gxine
+%{_mandir}/man1/gxine.1*
+%{_mandir}/man1/gxine_client.1*
+%lang(de) %{_mandir}/de/man1/gxine.1*
+%lang(de) %{_mandir}/de/man1/gxine_client.1*
+%lang(es) %{_mandir}/es/man1/gxine.1*
+%lang(es) %{_mandir}/es/man1/gxine_client.1*
+
+%files -n browser-plugin-gxine
 %defattr(644,root,root,755)
-%attr(755,root,root) %{mozilladir}/gxineplugin.so
+%attr(755,root,root) %{_browserpluginsdir}/gxineplugin.so
This page took 0.098868 seconds and 4 git commands to generate.