SPECS: mozilla-plugin-mplayer.spec - merged from DEVEL: one packag...

glen glen at pld-linux.org
Fri Aug 12 00:14:47 CEST 2005


Author: glen                         Date: Thu Aug 11 22:14:47 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- merged from DEVEL: one package for all browsers using triggers
- added missing plugins to package

---- Files affected:
SPECS:
   mozilla-plugin-mplayer.spec (1.27 -> 1.28) 

---- Diffs:

================================================================
Index: SPECS/mozilla-plugin-mplayer.spec
diff -u SPECS/mozilla-plugin-mplayer.spec:1.27 SPECS/mozilla-plugin-mplayer.spec:1.28
--- SPECS/mozilla-plugin-mplayer.spec:1.27	Tue Jul 26 23:03:54 2005
+++ SPECS/mozilla-plugin-mplayer.spec	Fri Aug 12 00:14:41 2005
@@ -1,17 +1,11 @@
 # $Revision$, $Date$
 # TODO
-# - plugins shouldn't be only symlinks for one file?
-# - (where shoild be this file)? ______________/
-# - i (glen) propose to put all netscape-compatible plugins to
-#   %{_libdir}/nsplugins and all browser plugin packages symlink there. the
-#   %{_libdir}/nsplugins should itself go to FHS? as if *all* NS-compatible
-#   plugins go there, there's no one parent for them :), or nsplugins.spec could
-#   do too, if FHS won't do.
+# - cvs move SPECS/{mozilla-plugin-mplayer,mplayerplug-in}.spec,v
 Summary:	Embedded Video Player for Mozilla
 Summary(pl):	Osadzony odtwarzacz wideo dla Mozilli
-Name:		mozilla-plugin-mplayer
+Name:		mplayerplug-in
 Version:	3.01
-Release:	1
+Release:	1.1
 License:	GPL
 Group:		X11/Applications/Multimedia
 Source0:	http://dl.sourceforge.net/mplayerplug-in/mplayerplug-in-%{version}.tar.gz
@@ -23,61 +17,36 @@
 BuildRequires:	libstdc++-devel
 BuildRequires:	mozilla-devel
 BuildRequires:	pkgconfig
-Requires:	mplayer >= 1.0
+BuildRequires:	rpmbuild(macros) >= 1.224
+Requires:	mplayer >= 1:1.0
+Requires:	browser-plugins
+Obsoletes:	mozilla-plugin-mplayer
+Obsoletes:	mozilla-firefox-plugin-mplayer
+Obsoletes:	opera-plugin-mplayer
+Obsoletes:	konqueror-plugin-mplayer
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_plugindir	%{_libdir}/browser-plugins
+
+# use macro, otherwise extra LF isinserted along with the ifarch
+%ifarch %{ix86} ppc sparc sparc64
+%define	browsers mozilla, mozilla-firefox, opera, konqueror
+%else
+%define	browsers mozilla, mozilla-firefox, konqueror
+%endif
+
 %description
 mplayerplug-in is a browser plugin that uses mplayer to play videos
 from websites.
 
+Supported browsers: %{browsers}.
+
 %description -l pl
 mplayerplug-in jest wtyczką wykorzystującą mplayera do odtwarzania
 klipów filmowych ze stron WWW.
 
-%package -n mozilla-firefox-plugin-mplayer
-Summary:	Embedded Video Player for Mozilla Firefox
-Summary(pl):	Wbudowany odtwarzacz klipów filmowych dla Mozilli Firefox
-Group:		X11/Applications/Multimedia
-PreReq:		mozilla-firefox
-Requires:	mplayer >= 1.0
-
-%description -n mozilla-firefox-plugin-mplayer
-This package contains plugin for Mozilla Firefox browser.
-
-%description -n  mozilla-firefox-plugin-mplayer -l pl
-Ten pakiet zawiera wtyczkę do używania mplayera jako odtwarzacza
-klipów filmowych ze stron WWW w przeglądarce Mozilla Firefox.
-
-%package -n opera-plugin-mplayer
-Summary:        Embedded Video Player for Opera
-Summary(pl):    Wbudowany odtwarzacz klipów filmowych dla Opery
-Group:          X11/Applications/Multimedia
-PreReq:         opera
-Requires:       mplayer >= 1.0
-
-%description -n opera-plugin-mplayer
-This package contains plugin for Opera browser.
-
-%description -n  opera-plugin-mplayer -l pl
-Ten pakiet zawiera wtyczkę do używania mplayera jako odtwarzacza
-klipów filmowych ze stron WWW w przeglądarce Opera.
-
-%package -n konqueror-plugin-mplayer
-Summary:        Embedded Video Player for Konqueror
-Summary(pl):    Wbudowany odtwarzacz klipów filmowych dla Konquerora
-Group:          X11/Applications/Multimedia
-PreReq:         konqueror
-Requires:       mplayer >= 1.0
-
-%description -n konqueror-plugin-mplayer
-This package contains plugin for Konqueror browser.
-
-%description -n  konqueror-plugin-mplayer -l pl
-Ten pakiet zawiera wtyczkę do używania mplayera jako odtwarzacza
-klipów filmowych ze stron WWW w przeglądarce Konqueror.
-
 %prep
-%setup -q -n mplayerplug-in
+%setup -q -n %{name}
 
 %build
 %{__aclocal}
@@ -87,44 +56,62 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir}/{mozilla,mozilla-firefox,opera}/plugins,%{_sysconfdir}/mplayer} \
-	$RPM_BUILD_ROOT%{_libdir}/kde3/plugins/konqueror
+install -d $RPM_BUILD_ROOT{%{_plugindir},%{_sysconfdir}/mplayer}
 
-install *.so $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins
-install *.so $RPM_BUILD_ROOT%{_libdir}/mozilla-firefox/plugins
-install *.so $RPM_BUILD_ROOT%{_libdir}/opera/plugins
-install *.so $RPM_BUILD_ROOT%{_libdir}/kde3/plugins/konqueror
+install *.so $RPM_BUILD_ROOT%{_plugindir}
 install mplayerplug-in.conf $RPM_BUILD_ROOT%{_sysconfdir}
 install mplayerplug-in.types $RPM_BUILD_ROOT%{_sysconfdir}/mplayer
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerin -- mozilla-firefox
+%nsplugin_install -d %{_libdir}/mozilla-firefox/plugins %{name}.so %{name}-{gmp,qt,rm,wmp}.so
+
+%triggerun -- mozilla-firefox
+%nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins %{name}.so %{name}-{gmp,qt,rm,wmp}.so
+
+%triggerin -- mozilla
+%nsplugin_install -d %{_libdir}/mozilla/plugins %{name}.so %{name}-{gmp,qt,rm,wmp}.so
+
+%triggerun -- mozilla
+%nsplugin_uninstall -d %{_libdir}/mozilla/plugins %{name}.so %{name}-{gmp,qt,rm,wmp}.so
+
+%ifarch %{ix86} ppc sparc sparc64
+%triggerin -- opera
+%nsplugin_install -d %{_libdir}/opera/plugins %{name}.so %{name}-{gmp,qt,rm,wmp}.so
+
+%triggerun -- opera
+%nsplugin_uninstall -d %{_libdir}/opera/plugins %{name}.so %{name}-{gmp,qt,rm,wmp}.so
+%endif
+
+%triggerin -- konqueror
+%nsplugin_install -d %{_libdir}/kde3/plugins/konqueror %{name}.so %{name}-{gmp,qt,rm,wmp}.so
+
+%triggerun -- konqueror
+%nsplugin_uninstall -d %{_libdir}/kde3/plugins/konqueror %{name}.so %{name}-{gmp,qt,rm,wmp}.so
+
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog TODO README
-%attr(755,root,root) %{_libdir}/mozilla/plugins/*.so
+%attr(755,root,root) %{_plugindir}/%{name}.so
+%attr(755,root,root) %{_plugindir}/%{name}-gmp.so
+%attr(755,root,root) %{_plugindir}/%{name}-qt.so
+%attr(755,root,root) %{_plugindir}/%{name}-rm.so
+%attr(755,root,root) %{_plugindir}/%{name}-wmp.so
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mplayerplug-in.conf
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mplayer/mplayerplug-in.types
 
-%files -n mozilla-firefox-plugin-mplayer
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/mozilla-firefox/plugins/*.so
-
-%files -n opera-plugin-mplayer
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/opera/plugins/*.so
-
-%files -n konqueror-plugin-mplayer
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/kde3/plugins/konqueror/*.so
-
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.28  2005/08/11 22:14:41  glen
+- merged from DEVEL: one package for all browsers using triggers
+- added missing plugins to package
+
 Revision 1.27  2005/07/26 21:03:54  adamg
 - updated to 3.01
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/mozilla-plugin-mplayer.spec?r1=1.27&r2=1.28&f=u




More information about the pld-cvs-commit mailing list