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 # TODO: to be renamed to actual package name when package is finished
18 Name: browser-plugins2
23 Source0: browser-plugins.README
24 Source1: browser-plugins-update.sh
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _sysconfdir /etc/browser-plugins
29 # TODO: to be moved to rpm-build-macros
30 %define update_browser_plugins /usr/sbin/update-browser-plugins
33 This package provides base directory for browser plugins complying to
34 Netscape Plugin API (NPAPI).
36 Browsers known to support NPAPI:
37 - Netscape Communicator/Navigator
38 - Mozilla/Mozilla Firefox/Seamonkey
43 Ten pakiet dostarcza podstawowy katalog dla wtyczek przegl±darek
44 zgodnych z Netscape Plugin API (NPAPI).
46 Przegl±darki obs³uguj±ce NPAPI to:
47 - Netscape Communicator/Navigator
48 - Mozilla/Mozilla Firefox/Seamonkey
54 cp -a %{SOURCE0} README
55 cp -a %{SOURCE1} update-browser-plugins
57 cat > blacklist.local <<'EOF'
58 # list your local overrides here
59 # the format is shell globs at base dir of plugindir
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{blacklist,browsers}.d,%{_sbindir}}
65 install update-browser-plugins $RPM_BUILD_ROOT%{_sbindir}
67 # TODO: to be moved to browser packages
68 for browser in opera firefox mozilla mozilla-firefox mozilla-firefox-bin; do
69 for arch in i386 x86_64; do
70 cp -a blacklist.local $RPM_BUILD_ROOT%{_sysconfdir}/blacklist.d/local.$browser.$arch.blacklist
75 rm -rf $RPM_BUILD_ROOT
78 # TODO: to be enabled if tested enough
80 %update_browser_plugins
84 %update_browser_plugins uninstall
89 %defattr(644,root,root,755)
91 %dir %{_sysconfdir}/browsers.d
92 %dir %{_sysconfdir}/blacklist.d
93 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/blacklist.d/*.blacklist
94 %attr(755,root,root) %{_sbindir}/update-browser-plugins