2 # - invoke nspluginwrapper install if one found installed in system
3 # - convert all plugin packages to store their plugins in this base
5 # known NPAPI compatible browsers from PLD Linux CVS:
11 # - mozilla-firefox-bin
12 # - netscape (trigger on netscape-common)
13 # - opera (ix86, ppc, sparc* only)
16 Summary: Base package for web browser plugins
17 Summary(pl.UTF-8): Podstawowy pakiet dla wtyczek przeglądarek WWW
23 BuildRequires: rpmbuild(macros) >= 1.356
24 Source0: %{name}.README
25 Source1: %{name}-update.sh
26 Requires: filesystem >= 2.0-1.2
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _sysconfdir %{_browserpluginsconfdir}
34 This package provides base directory for browser plugins complying to
35 Netscape Plugin API (NPAPI).
37 Browsers known to support NPAPI:
38 - Netscape Communicator/Navigator
39 - Mozilla/Mozilla Firefox/Seamonkey
43 %description -l pl.UTF-8
44 Ten pakiet dostarcza podstawowy katalog dla wtyczek przeglądarek
45 zgodnych z Netscape Plugin API (NPAPI).
47 Przeglądarki obsługujące NPAPI to:
48 - Netscape Communicator/Navigator
49 - Mozilla/Mozilla Firefox/Seamonkey
55 cp -a %{SOURCE0} README
56 cp -a %{SOURCE1} update-browser-plugins
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{blacklist,browsers}.d,%{_sbindir}}
61 install update-browser-plugins $RPM_BUILD_ROOT%{_sbindir}
64 rm -rf $RPM_BUILD_ROOT
67 %update_browser_plugins
69 # we don't need postin script as all browsers depend on this package and
70 # therefore this package should be last one to go from system.
73 %defattr(644,root,root,755)
75 %dir %{_sysconfdir}/browsers.d
76 %dir %{_sysconfdir}/blacklist.d
77 %attr(755,root,root) %{_sbindir}/update-browser-plugins