2 # - convert all plugin packages to store their plugins in this base
4 # known NPAPI compatible browsers from PLD CVS:
12 # - netscape (trigger on netscape-common)
14 Summary: Base package for web browser plugins
15 Summary(pl): Podstawowy pakiet dla wtyczek przegl±darek WWW
16 Name: browser-plugins2
21 Source0: browser-plugins.README
22 Source1: browser-plugins-update.sh
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _sysconfdir /etc/browser-plugins
27 # temporarily for testing
28 %define update_browser_plugins /usr/sbin/update-browser-plugins
31 This package provides base directory for browser plugins complying to
32 Netscape Plugin API (NPAPI).
34 Browsers known to support NPAPI:
35 - Netscape Communicator/Navigator
36 - Mozilla/Mozilla Firefox/Seamonkey
41 Ten pakiet dostarcza podstawowy katalog dla wtyczek przegl±darek
42 zgodnych z Netscape Plugin API (NPAPI).
44 Przegl±darki obs³uguj±ce NPAPI to:
45 - Netscape Communicator/Navigator
46 - Mozilla/Mozilla Firefox/Seamonkey
52 cp -a %{SOURCE0} README
53 cp -a %{SOURCE1} update-browser-plugins
55 cat > blacklist.local <<'EOF'
56 # list your local overrides here
57 # the format is shell globs at base dir of plugindir
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{blacklist,browsers}.d,%{_sbindir}}
63 install update-browser-plugins $RPM_BUILD_ROOT%{_sbindir}
64 for browser in opera firefox mozilla mozilla-firefox; do
65 for arch in i386 x86_64; do
66 cp -a blacklist.local $RPM_BUILD_ROOT%{_sysconfdir}/blacklist.d/local.$browser.$arch.blacklist
71 rm -rf $RPM_BUILD_ROOT
75 %update_browser_plugins
79 %update_browser_plugins uninstall
84 %defattr(644,root,root,755)
86 %dir %{_sysconfdir}/browsers.d
87 %dir %{_sysconfdir}/blacklist.d
88 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/blacklist.d/*.blacklist
89 %attr(755,root,root) %{_sbindir}/update-browser-plugins