2 # - convert all plugin packages to store their plugins in this base
4 # - Add addons and themes support for gecko based browsers
5 # Known NPAPI compatible browsers from PLD Linux CVS:
11 # - mozilla-firefox-bin
12 # - netscape (update script on netscape-common package)
13 # - opera (ix86, x86_64, ppc only)
18 Summary: Base package for web browser plugins
19 Summary(pl.UTF-8): Podstawowy pakiet dla wtyczek przeglądarek WWW
25 BuildRequires: rpmbuild(macros) >= 1.356
26 Source0: %{name}.README
27 Source1: %{name}-update.sh
28 Requires: filesystem >= 3.0-13
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _sysconfdir %{_browserpluginsconfdir}
36 This package provides base directory for browser plugins complying to
37 Netscape Plugin API (NPAPI).
39 Browsers known to support NPAPI:
40 - Netscape Communicator/Navigator
41 - Mozilla/Mozilla Firefox/Seamonkey
45 %description -l pl.UTF-8
46 Ten pakiet dostarcza podstawowy katalog dla wtyczek przeglądarek
47 zgodnych z Netscape Plugin API (NPAPI).
49 Przeglądarki obsługujące NPAPI to:
50 - Netscape Communicator/Navigator
51 - Mozilla/Mozilla Firefox/Seamonkey
57 cp -a %{SOURCE0} README
58 cp -a %{SOURCE1} update-browser-plugins
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{blacklist,browsers}.d,%{_sbindir}}
63 install update-browser-plugins $RPM_BUILD_ROOT%{_sbindir}
66 rm -rf $RPM_BUILD_ROOT
69 %update_browser_plugins
71 # we don't need postin script as all browsers depend on this package and
72 # therefore this package should be last one to go from system.
75 %defattr(644,root,root,755)
77 %dir %{_sysconfdir}/browsers.d
78 %dir %{_sysconfdir}/blacklist.d
79 %attr(755,root,root) %{_sbindir}/update-browser-plugins