]> git.pld-linux.org Git - packages/browser-plugins.git/blob - browser-plugins.spec
- temp rename to allow old package being used
[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.7
19 License:        GPL
20 Group:          Base
21 Source0:        %{name}.README
22 Source1:        %{name}-update.sh
23 # temporarily for testing
24 Provides:       %{name}(%{_target_base_arch}) = %{version}-%{release}
25 #BuildArch:     noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %define         _sysconfdir     /etc/%{name}
29 # temporarily for testing
30 %define         update_browser_plugins /usr/sbin/update-browser-plugins
31
32 %description
33 This package provides base directory for browser plugins complying to
34 Netscape Plugin API (NPAPI).
35
36 Browsers known to support NPAPI:
37 - Netscape Communicator/Navigator
38 - Mozilla/Mozilla Firefox/Seamonkey
39 - Opera
40 - Konqueror
41
42 %description -l pl
43 Ten pakiet dostarcza podstawowy katalog dla wtyczek przegl±darek
44 zgodnych z Netscape Plugin API (NPAPI).
45
46 Przegl±darki obs³uguj±ce NPAPI to:
47 - Netscape Communicator/Navigator
48 - Mozilla/Mozilla Firefox/Seamonkey
49 - Opera
50 - Konqueror
51
52 %prep
53 %setup -qcT
54 cp -a %{SOURCE0} README
55 cp -a %{SOURCE1} update-%{name}
56
57 cat > blacklist.local <<'EOF'
58 # list your local overrides here
59 # the format is shell globs at base dir of plugindir
60 EOF
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{blacklist,browsers}.d,%{_sbindir}}
65 install update-%{name} $RPM_BUILD_ROOT%{_sbindir}
66 for browser in opera firefox mozilla mozilla-firefox; do
67         for arch in i386 x86_64; do
68                 cp -a blacklist.local $RPM_BUILD_ROOT%{_sysconfdir}/blacklist.d/local.$browser.$arch.blacklist
69         done
70 done
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post
76 %update_browser_plugins
77
78 %preun
79 if [ "$1" = 0 ]; then
80         %update_browser_plugins uninstall
81 fi
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.086811 seconds and 4 git commands to generate.