SPECS: gxine.spec - switched to browser-plugins
qboosh
qboosh at pld-linux.org
Wed Dec 27 04:53:55 CET 2006
Author: qboosh Date: Wed Dec 27 03:53:55 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- switched to browser-plugins
---- Files affected:
SPECS:
gxine.spec (1.24 -> 1.25)
---- Diffs:
================================================================
Index: SPECS/gxine.spec
diff -u SPECS/gxine.spec:1.24 SPECS/gxine.spec:1.25
--- SPECS/gxine.spec:1.24 Wed Dec 27 04:48:57 2006
+++ SPECS/gxine.spec Wed Dec 27 04:53:48 2006
@@ -1,5 +1,4 @@
# $Revision$, $Date$
-# TODO: switch to browser-plugins
#
# Conditional build:
%bcond_without lirc # without LIRC support
@@ -26,14 +25,13 @@
BuildRequires: nspr-devel
BuildRequires: pango-devel >= 1.12
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.357
BuildRequires: xine-lib-devel >= 1:1.0.1
BuildRequires: xorg-lib-libXaw-devel
BuildRequires: xorg-lib-libXinerama-devel
Requires: xine-lib >= 1:1.0.1
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
@@ -57,17 +55,20 @@
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): 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
+gxine jako wtyczka przeglądarki.
%prep
%setup -q
@@ -83,7 +84,7 @@
%configure \
%{!?with_lirc:--disable-lirc} \
--disable-static \
- --with-plugindir=%{mozilladir} \
+ --with-plugindir=%{_browserpluginsdir} \
--with-spidermonkey=/usr/include/js
%{__make}
@@ -95,13 +96,21 @@
DESTDIR=$RPM_BUILD_ROOT \
Applicationsdir=%{_desktopdir}
-rm -f $RPM_BUILD_ROOT%{mozilladir}/*.la
+rm -f $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
@@ -115,9 +124,9 @@
%{_mandir}/man1/*
%lang(de) %{_mandir}/de/man1/*
-%files -n mozilla-plugin-gxine
+%files -n browser-plugin-gxine
%defattr(644,root,root,755)
-%attr(755,root,root) %{mozilladir}/gxineplugin.so
+%attr(755,root,root) %{_browserpluginsdir}/gxineplugin.so
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -125,6 +134,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.25 2006/12/27 03:53:48 qboosh
+- switched to browser-plugins
+
Revision 1.24 2006/12/27 03:48:57 qboosh
- updated deps
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/gxine.spec?r1=1.24&r2=1.25&f=u
More information about the pld-cvs-commit
mailing list