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