SPECS: browser-plugins.spec - started browser-plugins 2.0

glen glen at pld-linux.org
Thu Sep 14 18:19:00 CEST 2006


Author: glen                         Date: Thu Sep 14 16:19:00 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- started browser-plugins 2.0

---- Files affected:
SPECS:
   browser-plugins.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/browser-plugins.spec
diff -u SPECS/browser-plugins.spec:1.12 SPECS/browser-plugins.spec:1.13
--- SPECS/browser-plugins.spec:1.12	Sun May 14 15:16:19 2006
+++ SPECS/browser-plugins.spec	Thu Sep 14 18:18:54 2006
@@ -15,15 +15,21 @@
 Summary:	Base package for web browser plugins
 Summary(pl):	Podstawowy pakiet dla wtyczek przeglądarek WWW
 Name:		browser-plugins
-Version:	1.0
-Release:	5
+Version:	2.0
+Release:	0.7
 License:	GPL
 Group:		Base
-Provides:	%{name}(%{_target_cpu}) = %{version}-%{release}
+Source0:	%{name}.README
+Source1:	%{name}-update.sh
+# temporarily for testing
 Provides:	%{name}(%{_target_base_arch}) = %{version}-%{release}
-URL:		http://www.mozilla.org/projects/plugins/
+#BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_sysconfdir	/etc/%{name}
+# temporarily for testing
+%define		update_browser_plugins /usr/sbin/update-browser-plugins
+
 %description
 This package provides base directory for browser plugins complying to
 Netscape Plugin API (NPAPI).
@@ -45,17 +51,43 @@
 - Konqueror
 
 %prep
+%setup -qcT
+cp -a %{SOURCE0} README
+cp -a %{SOURCE1} update-%{name}
+
+cat > blacklist.local <<'EOF'
+# list your local overrides here
+# the format is shell globs at base dir of plugindir
+EOF
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/browser-plugins
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{blacklist,browsers}.d,%{_sbindir}}
+install update-%{name} $RPM_BUILD_ROOT%{_sbindir}
+for browser in opera firefox mozilla mozilla-firefox; do
+	for arch in i386 x86_64; do
+		cp -a blacklist.local $RPM_BUILD_ROOT%{_sysconfdir}/blacklist.d/local.$browser.$arch.blacklist
+	done
+done
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_browser_plugins
+
+%preun
+if [ "$1" = 0 ]; then
+	%update_browser_plugins uninstall
+fi
+
 %files
 %defattr(644,root,root,755)
-%{_libdir}/browser-plugins
+%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"`)
 %changelog
@@ -63,39 +95,6 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.12  2006/05/14 13:16:19  blues
-- rel.5 - provide also _target_cpu - allow to mix just build plugins and
-  old ones. STBR to AC ?
-
-Revision 1.11  2006/05/04 21:07:41  glen
-- use _target_base_arch so that athlon and i686 packages can be mixed, rel 4
-
-Revision 1.10  2006/04/16 19:01:09  glen
-- add Seamonkey, rel 3 ;)
-
-Revision 1.9  2005/09/06 17:24:35  glen
-- also exists netscape.spec
-
-Revision 1.8  2005/08/23 18:55:18  glen
-- i belive browser is a thing (fix last commit msg)
-
-Revision 1.7  2005/08/23 18:54:24  glen
-- listing browsers (please complete the list if you find something missing)
-
-Revision 1.6  2005/08/23 18:14:05  glen
-- include VR in virtual prov, rel 2
-
-Revision 1.5  2005/08/23 18:07:14  glen
-- provide virtual to identify built archdecture
-
-Revision 1.4  2005/08/23 18:05:28  glen
-- arch dependant due %{_libdir} usage
-
-Revision 1.3  2005/06/23 13:05:39  glen
-- rel 1
-
-Revision 1.2  2005/06/22 17:36:33  qboosh
-- pl
+Revision 1.13  2006/09/14 16:18:54  glen
+- started browser-plugins 2.0
 
-Revision 1.1  2005/06/20 17:13:15  glen
-- new
================================================================

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



More information about the pld-cvs-commit mailing list