- drop pkill, its too evil this way (kills all processes from system which match...
[packages/mozilla-firefox-bin.git] / mozilla-firefox-bin.spec
CommitLineData
84e0e533
ER
1# TODO
2# /usr/lib/mozilla-firefox-bin/.autoreg
3# /usr/lib/mozilla-firefox-bin/LICENSE
4# /usr/lib/mozilla-firefox-bin/README.txt
5# /usr/lib/mozilla-firefox-bin/Throbber-small.gif
6# /usr/lib/mozilla-firefox-bin/blocklist.xml
84e0e533
ER
7# /usr/lib/mozilla-firefox-bin/crashreporter
8# /usr/lib/mozilla-firefox-bin/crashreporter-override.ini
9# /usr/lib/mozilla-firefox-bin/crashreporter.ini
84e0e533
ER
10# /usr/lib/mozilla-firefox-bin/update.locale
11# /usr/lib/mozilla-firefox-bin/updater
12# /usr/lib/mozilla-firefox-bin/updater.ini
0ee9c31a 13%define realname firefox
14Summary: Mozilla Firefox web browser
42b6dbdb 15Summary(pl.UTF-8): Mozilla Firefox - przeglądarka WWW
0ee9c31a 16Name: mozilla-firefox-bin
508f314e 17Version: 3.6.8
9f7f0cd1 18Release: 0.3
0ee9c31a 19License: MPL/LGPL
20Group: X11/Applications/Networking
d090773b 21Source0: http://releases.mozilla.org/pub/mozilla.org/%{realname}/releases/%{version}/linux-i686/en-US/%{realname}-%{version}.tar.bz2
508f314e 22# Source0-md5: 689232baf90592cf237817c34ac29bb2
0ee9c31a 23Source1: %{name}.desktop
14d807c9 24Source2: %{name}.sh
72435308 25Patch0: %{name}-agent.patch
26Patch1: %{name}-ti-agent.patch
0ee9c31a 27URL: http://www.mozilla.org/projects/firefox/
84e0e533 28BuildRequires: rpmbuild(macros) >= 1.453
795e56bb 29BuildRequires: zip
84e0e533 30Requires: browser-plugins >= 2.0
48ac9971 31Requires: myspell-common
48ac9971 32Requires: sqlite3 >= 3.6.22-2
84e0e533 33Provides: wwwbrowser
0ee9c31a 34Obsoletes: mozilla-firebird
35Conflicts: mozilla-firefox
83a1e3f4 36ExclusiveArch: i686 athlon
0ee9c31a 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39%define _firefoxdir %{_libdir}/%{name}
cb99552d 40
22ff9bcb 41%define nss_caps libfreebl3.so libnss3.so libnssckbi.so libsmime3.so ibsoftokn3.so libssl3.so libnssutil3.so libnssdbm3.so
97c40bb5 42%define nspr_caps libnspr4.so libplc4.so libplds4.so
22ff9bcb 43%define moz_caps libgkgfx.so libgtkembedmoz.so libgtkxtbin.so libjsj.so libmozjs.so libnullplugin.so libxpcom_compat.so libxpcom_core.so libxpcom.so libxpistub.so libxul.so libsqlite3.so
48ac9971 44%define sqlite_caps libsqlite3.so
ac3e1eda 45
cb99552d 46# list of files (regexps) which don't generate Provides
f757977d 47%define _noautoprovfiles %{_libdir}/%{name}/components
cb99552d 48# list of script capabilities (regexps) not to be used in Provides
ac3e1eda 49%define _noautoprov %{moz_caps} %{nss_caps} %{nspr_caps}
48ac9971 50%define _noautoreq %{_noautoprov} %{sqlite_caps}
0ee9c31a 51
0ad73835
ER
52# no debuginfo available
53%define _enable_debug_packages 0
54
0ee9c31a 55%description
56Mozilla Firefox is an open-source web browser, designed for standards
57compliance, performance and portability.
58
dc043ca8
JR
59%description -l pl.UTF-8
60Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
61myślą o zgodności ze standardami, wydajnością i przenośnością.
0ee9c31a 62
63%prep
64%setup -q -n %{realname}
72435308 65%if "%{pld_release}" == "th"
66%patch0 -p0
67%endif
72435308 68%if "%{pld_release}" == "ti"
69%patch1 -p0
70%endif
71
0ee9c31a 72%install
73rm -rf $RPM_BUILD_ROOT
74install -d \
16b5e263
ER
75 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{name}} \
76 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \
0ee9c31a 77
22ff9bcb 78cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
16b5e263
ER
79sed 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/%{name}
80ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/firefox-bin
84e0e533 81cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
48ac9971 82cp -a icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
84e0e533
ER
83
84%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
0ee9c31a 85
48ac9971
ER
86# use system dict
87rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
88ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
89
90# use system sqlite
91rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libsqlite3.so
92ln -s /%{_lib}/libsqlite3.so.0 $RPM_BUILD_ROOT%{_libdir}/%{name}/libsqlite3.so
93
16b5e263
ER
94# never package these
95# nss
96rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
97# nspr
98rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
99# mozldap
100rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
101
102# remove unecessary stuff
103rm $RPM_BUILD_ROOT%{_libdir}/%{name}/README.txt
104rm $RPM_BUILD_ROOT%{_libdir}/%{name}/components/components.list
105rm $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
106
0ee9c31a 107%clean
108rm -rf $RPM_BUILD_ROOT
109
48ac9971
ER
110%pretrans
111if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
112 mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
113fi
114exit 0
115
84e0e533
ER
116%post
117%update_browser_plugins
118
119%postun
120if [ "$1" = 0 ]; then
121 %update_browser_plugins
122fi
123
0ee9c31a 124%files
125%defattr(644,root,root,755)
16b5e263 126%attr(755,root,root) %{_bindir}/%{name}
2afe0ea7 127%attr(755,root,root) %{_bindir}/firefox-bin
84e0e533
ER
128
129# browser plugins v2
130%{_browserpluginsconfdir}/browsers.d/%{name}.*
131%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
132
f757977d 133%dir %{_libdir}/%{name}
88e4d241 134%{_libdir}/%{name}/application.ini
e90422b4 135%{_libdir}/%{name}/platform.ini
f757977d 136%{_libdir}/%{name}/res
18e7dc6a 137%dir %{_libdir}/%{name}/extensions
9f7f0cd1
ER
138# the signature of the default theme
139%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
140
f757977d
ER
141%dir %{_libdir}/%{name}/components
142%attr(755,root,root) %{_libdir}/%{name}/components/*.so
143%{_libdir}/%{name}/components/*.js
144%{_libdir}/%{name}/components/*.xpt
145%{_libdir}/%{name}/chrome
146%{_libdir}/%{name}/defaults
147%{_libdir}/%{name}/greprefs
148%{_libdir}/%{name}/icons
0ad73835
ER
149%dir %{_libdir}/%{name}/plugins
150%attr(755,root,root) %{_libdir}/%{name}/plugins/libnullplugin.so
f757977d
ER
151%{_libdir}/%{name}/searchplugins
152%{_libdir}/%{name}/dictionaries
153%{_libdir}/%{name}/browserconfig.properties
f757977d
ER
154%attr(755,root,root) %{_libdir}/%{name}/*.so
155%attr(755,root,root) %{_libdir}/%{name}/*.sh
156%attr(755,root,root) %{_libdir}/%{name}/m*
157%attr(755,root,root) %{_libdir}/%{name}/f*
16b5e263
ER
158%{_pixmapsdir}/%{name}.png
159%{_desktopdir}/%{name}.desktop
This page took 0.076373 seconds and 4 git commands to generate.