SPECS: xulrunner.spec - added browser-plugins support (not tested ...

wrobell wrobell at pld-linux.org
Fri Mar 23 19:44:39 CET 2007


Author: wrobell                      Date: Fri Mar 23 18:44:39 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added browser-plugins support (not tested yet)

---- Files affected:
SPECS:
   xulrunner.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/xulrunner.spec
diff -u SPECS/xulrunner.spec:1.18 SPECS/xulrunner.spec:1.19
--- SPECS/xulrunner.spec:1.18	Fri Mar 23 16:36:02 2007
+++ SPECS/xulrunner.spec	Fri Mar 23 19:44:34 2007
@@ -54,6 +54,7 @@
 BuildRequires:	zlib-devel >= 1.2.3
 Requires(post):	mktemp >= 1.5-18
 Requires:	%{name}-libs = %{epoch}:%{version}-%{release}
+Requires:	browser-plugins >= 2.0
 Requires:	nspr >= 1:4.6.3
 Requires:	nss >= 1:3.11.3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -244,6 +245,8 @@
 %{__make} -C build/unix install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
+
 # we use system pkgs
 rm $RPM_BUILD_ROOT%{_pkgconfigdir}/xulrunner-{nspr,nss}.pc
 
@@ -271,12 +274,17 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p %{_sbindir}/%{name}-chrome+xpcom-generate
+%post 
+%{_sbindir}/%{name}-chrome+xpcom-generate
+%update_browser_plugins
 
 %postun
 if [ "$1" = "1" ]; then
 	%{_sbindir}/%{name}-chrome+xpcom-generate
 fi
+if [ "$1" = 0 ]; then
+	%update_browser_plugins
+fi
 
 %post	libs -p /sbin/ldconfig
 %postun	libs -p /sbin/ldconfig
@@ -290,11 +298,15 @@
 %dir %{_libdir}/%{name}/components
 %dir %{_libdir}/%{name}/defaults
 %dir %{_libdir}/%{name}/greprefs
+%dir %{_libdir}/%{name}/plugins
 %dir %{_libdir}/%{name}/res
 %dir %{_datadir}/%{name}
 
 %attr(755,root,root) %{_libdir}/%{name}/regxpcom
 
+%{_browserpluginsconfdir}/browsers.d/%{name}.*
+%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
+
 %attr(755,root,root) %{_libdir}/%{name}/components/libauth.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libautoconfig.so
 %attr(755,root,root) %{_libdir}/%{name}/components/libcookie.so
@@ -460,6 +472,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2007/03/23 18:44:34  wrobell
+- added browser-plugins support (not tested yet)
+
 Revision 1.18  2007/03/23 15:36:02  megabajt
 - merged update to 1.8.1.3 from AC-branch (snapshot from FIREFOX_2_0_0_3_RELEASE branch)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/xulrunner.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list