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.UTF-8): Podstawowy pakiet dla wtyczek przeglądarek WWW
22 BuildRequires: rpmbuild(macros) >= 1.356
23 Source0: %{name}.README
24 Source1: %{name}-update.sh
25 Requires: filesystem >= 2.0-1.2
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _sysconfdir %{_browserpluginsconfdir}
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
42 %description -l pl.UTF-8
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
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{blacklist,browsers}.d,%{_sbindir}}
60 install update-browser-plugins $RPM_BUILD_ROOT%{_sbindir}
63 rm -rf $RPM_BUILD_ROOT
66 %update_browser_plugins
68 # we don't need postin script as all browsers depend on this package and
69 # therefore this package should be last one to go from system.
72 %defattr(644,root,root,755)
74 %dir %{_sysconfdir}/browsers.d
75 %dir %{_sysconfdir}/blacklist.d
76 %attr(755,root,root) %{_sbindir}/update-browser-plugins