SPECS: browser-plugins.spec - browser plugins v2 unleashed

glen glen at pld-linux.org
Sat Dec 23 03:40:51 CET 2006


Author: glen                         Date: Sat Dec 23 02:40:51 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- browser plugins v2 unleashed

---- Files affected:
SPECS:
   browser-plugins.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SPECS/browser-plugins.spec
diff -u SPECS/browser-plugins.spec:1.21 SPECS/browser-plugins.spec:1.22
--- SPECS/browser-plugins.spec:1.21	Wed Nov  1 12:54:25 2006
+++ SPECS/browser-plugins.spec	Sat Dec 23 03:40:46 2006
@@ -15,20 +15,19 @@
 # - skipstone
 Summary:	Base package for web browser plugins
 Summary(pl):	Podstawowy pakiet dla wtyczek przeglądarek WWW
-# TODO: to be renamed to actual package name when package is finished
-Name:		browser-plugins2
+Name:		browser-plugins
 Version:	2.0
-Release:	0.11
+Release:	1
 License:	GPL
 Group:		Base
-Source0:	browser-plugins.README
-Source1:	browser-plugins-update.sh
+BuildRequires:	rpmbuild(macros) >= 1.356
+Source0:	%{name}.README
+Source1:	%{name}-update.sh
+Requires:	filesystem >= 2.0-1.2
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_sysconfdir	/etc/browser-plugins
-# TODO: to be moved to rpm-build-macros
-%define		update_browser_plugins /usr/sbin/update-browser-plugins
+%define		_sysconfdir	%{_browserpluginsconfdir}
 
 %description
 This package provides base directory for browser plugins complying to
@@ -55,41 +54,25 @@
 cp -a %{SOURCE0} README
 cp -a %{SOURCE1} update-browser-plugins
 
-cat > blacklist <<'EOF'
-# The format is shell globs at base dir of plugindir
-EOF
-
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{blacklist,browsers}.d,%{_sbindir}}
 install update-browser-plugins $RPM_BUILD_ROOT%{_sbindir}
 
-# TODO: to be moved to browser packages
-for browser in opera firefox mozilla mozilla-firefox mozilla-firefox-bin; do
-	for arch in i386 x86_64; do
-		cp -a blacklist $RPM_BUILD_ROOT%{_sysconfdir}/blacklist.d/$browser.$arch.blacklist
-	done
-done
-cat <<'EOF'>> $RPM_BUILD_ROOT%{_sysconfdir}/blacklist.d/opera.i386.blacklist
-# opera has no use of .xpt files.
-*.xpt
-EOF
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if 0
-# TODO: to be enabled if tested enough
 %post
 %update_browser_plugins
-%endif
+
+# we don't need postin script as all browsers depend on this package and
+# therefore this package should be last one to go from system.
 
 %files
 %defattr(644,root,root,755)
 %dir %{_sysconfdir}
 %dir %{_sysconfdir}/browsers.d
 %dir %{_sysconfdir}/blacklist.d
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/blacklist.d/*.blacklist
 %attr(755,root,root) %{_sbindir}/update-browser-plugins
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -98,6 +81,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2006/12/23 02:40:46  glen
+- browser plugins v2 unleashed
+
 Revision 1.21  2006/11/01 11:54:25  glen
 - there's no uninstall, plugins get to dead symlinks after uninstall which update script deletes
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/browser-plugins.spec?r1=1.21&r2=1.22&f=u



More information about the pld-cvs-commit mailing list