SOURCES: rpm.macros - browser plugins v2 macros
glen
glen at pld-linux.org
Sat Dec 23 03:07:06 CET 2006
Author: glen Date: Sat Dec 23 02:07:06 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- browser plugins v2 macros
---- Files affected:
SOURCES:
rpm.macros (1.355 -> 1.356)
---- Diffs:
================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.355 SOURCES/rpm.macros:1.356
--- SOURCES/rpm.macros:1.355 Fri Dec 22 23:20:26 2006
+++ SOURCES/rpm.macros Sat Dec 23 03:07:01 2006
@@ -1320,4 +1320,27 @@
) \
%{nil}
+# browser plugins v2
+# Author: Elan Ruusamäe <glen at pld-linux.org>
+#
+# Usage:
+# %browser_plugins_add_browser <name> -p <plugindir>
+#
+# <name> (required) -- name of the browser. usually %{name}.
+# -p <plugindir> (required) -- in what directory browser searches for its plugins.
+#
+# Example:
+# %browser_plugins_add_browser %{name} -p %{_firefoxdir}/plugins
+
+%_browserpluginsconfdir /etc/browser-plugins
+%update_browser_plugins /usr/sbin/update-browser-plugins || :
+
+%browser_plugins_add_browser(p:b:) \
+ install -d $RPM_BUILD_ROOT%{_browserpluginsconfdir}/{blacklist,browsers}.d \
+ ln -s %{-p*} $RPM_BUILD_ROOT%{_browserpluginsconfdir}/browsers.d/%1.%{_target_base_arch} \
+ blacklist_file=$RPM_BUILD_ROOT%{_browserpluginsconfdir}/blacklist.d/%1.%{_target_base_arch}.blacklist \
+ echo '# This file format is shell globs at base dir of plugindir' > $blacklist_file \
+ %{-b:cat >> $blacklist_file %{-b*}} \
+%{nil}
+
# vim:ts=4 sw=4 noet syn=spec
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/rpm.macros?r1=1.355&r2=1.356&f=u
More information about the pld-cvs-commit
mailing list