]> git.pld-linux.org Git - packages/browser-plugins.git/blob - browser-plugins.spec
- sorted browsers, updated opera archlist
[packages/browser-plugins.git] / browser-plugins.spec
1 # TODO
2 # - convert all plugin packages to store their plugins in this base
3 #   directory.
4 # known NPAPI compatible browsers from PLD Linux CVS:
5 # - galeon
6 # - kazehakase
7 # - konqueror
8 # - mozilla
9 # - mozilla-firefox
10 # - mozilla-firefox-bin
11 # - netscape (trigger on netscape-common)
12 # - opera (ix86, ppc, sparc* only)
13 # - seamonkey
14 # - skipstone
15 Summary:        Base package for web browser plugins
16 Summary(pl):    Podstawowy pakiet dla wtyczek przegl±darek WWW
17 Name:           browser-plugins2
18 Version:        2.0
19 Release:        0.8
20 License:        GPL
21 Group:          Base
22 Source0:        browser-plugins.README
23 Source1:        browser-plugins-update.sh
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _sysconfdir     /etc/browser-plugins
28 # temporarily for testing
29 %define         update_browser_plugins /usr/sbin/update-browser-plugins
30
31 %description
32 This package provides base directory for browser plugins complying to
33 Netscape Plugin API (NPAPI).
34
35 Browsers known to support NPAPI:
36 - Netscape Communicator/Navigator
37 - Mozilla/Mozilla Firefox/Seamonkey
38 - Opera
39 - Konqueror
40
41 %description -l pl
42 Ten pakiet dostarcza podstawowy katalog dla wtyczek przegl±darek
43 zgodnych z Netscape Plugin API (NPAPI).
44
45 Przegl±darki obs³uguj±ce NPAPI to:
46 - Netscape Communicator/Navigator
47 - Mozilla/Mozilla Firefox/Seamonkey
48 - Opera
49 - Konqueror
50
51 %prep
52 %setup -qcT
53 cp -a %{SOURCE0} README
54 cp -a %{SOURCE1} update-browser-plugins
55
56 cat > blacklist.local <<'EOF'
57 # list your local overrides here
58 # the format is shell globs at base dir of plugindir
59 EOF
60
61 %install
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}
65 for browser in opera firefox mozilla mozilla-firefox mozilla-firefox-bin; do
66         for arch in i386 x86_64; do
67                 cp -a blacklist.local $RPM_BUILD_ROOT%{_sysconfdir}/blacklist.d/local.$browser.$arch.blacklist
68         done
69 done
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %if 0
75 %post
76 %update_browser_plugins
77
78 %preun
79 if [ "$1" = 0 ]; then
80         %update_browser_plugins uninstall
81 fi
82 %endif
83
84 %files
85 %defattr(644,root,root,755)
86 %dir %{_sysconfdir}
87 %dir %{_sysconfdir}/browsers.d
88 %dir %{_sysconfdir}/blacklist.d
89 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/blacklist.d/*.blacklist
90 %attr(755,root,root) %{_sbindir}/update-browser-plugins
This page took 0.047955 seconds and 4 git commands to generate.