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 <<'EOF'
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}
66 # TODO: to be moved to browser packages
67 for browser in opera firefox mozilla mozilla-firefox mozilla-firefox-bin; do
68 for arch in i386 x86_64; do
69 cp -a blacklist $RPM_BUILD_ROOT%{_sysconfdir}/blacklist.d/$browser.$arch.blacklist
72 cat <<'EOF'>> $RPM_BUILD_ROOT%{_sysconfdir}/blacklist.d/opera.i386.blacklist
73 # opera has no use of .xpt files.
78 rm -rf $RPM_BUILD_ROOT
81 # TODO: to be enabled if tested enough
83 %update_browser_plugins
87 %defattr(644,root,root,755)
89 %dir %{_sysconfdir}/browsers.d
90 %dir %{_sysconfdir}/blacklist.d
91 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/blacklist.d/*.blacklist
92 %attr(755,root,root) %{_sbindir}/update-browser-plugins