SPECS: template-browser-plugin.spec - browser plugins v2

glen glen at pld-linux.org
Sun Mar 18 13:56:23 CET 2007


Author: glen                         Date: Sun Mar 18 12:56:23 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- browser plugins v2

---- Files affected:
SPECS:
   template-browser-plugin.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: SPECS/template-browser-plugin.spec
diff -u SPECS/template-browser-plugin.spec:1.14 SPECS/template-browser-plugin.spec:1.15
--- SPECS/template-browser-plugin.spec:1.14	Mon Feb 12 23:09:17 2007
+++ SPECS/template-browser-plugin.spec	Sun Mar 18 13:56:17 2007
@@ -1,93 +1,50 @@
 # $Revision$, $Date$
-#
-# NOTE: using symlinks will not have rpm file conflicts verification,
-# but that's okay since most of the plugins are cross browser, so you
-# won't be having any regular files in browser specific plugin dir.
-#
 Summary:	NAME Browser plugin
 Summary(pl.UTF-8):	Wtyczka NAME dla przeglądarek WWW
 Name:		template-browser-plugin
-Version:	0.1
-Release:	0.1
+Version:	2.0
+Release:	1
 License:	GPL
 Group:		X11/Applications/Multimedia
-BuildRequires:	rpmbuild(macros) >= 1.236
-Requires:	browser-plugins(%{_target_base_arch})
+BuildRequires:	rpmbuild(macros) >= 1.357
+Requires:	browser-plugins >= 2.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# directory where you store the plugin
-%define		_plugindir	%{_libdir}/browser-plugins
-
-# TODO: galeon and skipstone.
-# use macro, otherwise extra LF inserted along with the ifarch
-%define	browsers mozilla, mozilla-firefox, konqueror, opera, seamonkey
-
 %description
 NAME browser plugin.
 
-Supported browsers: %{browsers}.
-
 %description -l pl.UTF-8
 Wtyczka NAME dla przeglądarek WWW.
 
-Obsługiwane przeglądarki: %{browsers}.
-
 %prep
 %setup -q -c -T
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_plugindir}
+install -d $RPM_BUILD_ROOT%{_browserpluginsdir}
 
-cat >> $RPM_BUILD_ROOT%{_plugindir}/%{name}.so <<EOF
+cat >> $RPM_BUILD_ROOT%{_browserpluginsdir}/%{name}.so <<EOF
 # dummy plugin
 EOF
-cat >> $RPM_BUILD_ROOT%{_plugindir}/%{name}.xpi <<EOF
+cat >> $RPM_BUILD_ROOT%{_browserpluginsdir}/%{name}.xpi <<EOF
 # Second plugin file.
 EOF
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%triggerin -- mozilla-firefox
-%nsplugin_install -d %{_libdir}/mozilla-firefox/plugins %{name}.so %{name}.xpi
-
-%triggerun -- mozilla-firefox
-%nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins %{name}.so %{name}.xpi
-
-%triggerin -- mozilla
-%nsplugin_install -d %{_libdir}/mozilla/plugins %{name}.so %{name}.xpi
-
-%triggerun -- mozilla
-%nsplugin_uninstall -d %{_libdir}/mozilla/plugins %{name}.so %{name}.xpi
+%post
+%update_browser_plugins
 
-%triggerin -- opera
-%nsplugin_install -d %{_libdir}/opera/plugins %{name}.so %{name}.xpi
-
-%triggerun -- opera
-%nsplugin_uninstall -d %{_libdir}/opera/plugins %{name}.so %{name}.xpi
-
-%triggerin -- konqueror
-%nsplugin_install -d %{_libdir}/kde3/plugins/konqueror %{name}.so %{name}.xpi
-
-%triggerun -- konqueror
-%nsplugin_uninstall -d %{_libdir}/kde3/plugins/konqueror %{name}.so %{name}.xpi
-
-%triggerin -- seamonkey
-%nsplugin_install -d %{_libdir}/seamonkey/plugins %{name}.so %{name}.xpi
-
-%triggerun -- seamonkey
-%nsplugin_uninstall -d %{_libdir}/seamonkey/plugins %{name}.so %{name}.xpi
-
-# as rpm removes the old obsoleted package files after the triggers
-# are ran, add another trigger to make the links there.
-%triggerpostun -- mozilla-firefox-plugin-macromedia-flash
-%nsplugin_install -f -d %{_libdir}/mozilla-firefox/plugins libflashplayer.so flashplayer.xpt
+%postun
+if [ "$1" = 0 ]; then
+	%update_browser_plugins
+fi
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_plugindir}/*.so
-%{_plugindir}/*.xpi
+%attr(755,root,root) %{_browserpluginsdir}/*.so
+%{_browserpluginsdir}/*.xpi
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -95,6 +52,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2007/03/18 12:56:17  glen
+- browser plugins v2
+
 Revision 1.14  2007/02/12 22:09:17  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/template-browser-plugin.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list