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