- avoid shell childs when running in non-debug mode
[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
2f8b63bb 18Release: 0.4
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
2f8b63bb 27Patch2: nochilds.patch
0ee9c31a 28URL: http://www.mozilla.org/projects/firefox/
84e0e533 29BuildRequires: rpmbuild(macros) >= 1.453
795e56bb 30BuildRequires: zip
84e0e533 31Requires: browser-plugins >= 2.0
48ac9971 32Requires: myspell-common
48ac9971 33Requires: sqlite3 >= 3.6.22-2
84e0e533 34Provides: wwwbrowser
0ee9c31a 35Obsoletes: mozilla-firebird
36Conflicts: mozilla-firefox
83a1e3f4 37ExclusiveArch: i686 athlon
0ee9c31a 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%define _firefoxdir %{_libdir}/%{name}
cb99552d 41
22ff9bcb 42%define nss_caps libfreebl3.so libnss3.so libnssckbi.so libsmime3.so ibsoftokn3.so libssl3.so libnssutil3.so libnssdbm3.so
97c40bb5 43%define nspr_caps libnspr4.so libplc4.so libplds4.so
22ff9bcb 44%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 45%define sqlite_caps libsqlite3.so
ac3e1eda 46
cb99552d 47# list of files (regexps) which don't generate Provides
f757977d 48%define _noautoprovfiles %{_libdir}/%{name}/components
cb99552d 49# list of script capabilities (regexps) not to be used in Provides
ac3e1eda 50%define _noautoprov %{moz_caps} %{nss_caps} %{nspr_caps}
48ac9971 51%define _noautoreq %{_noautoprov} %{sqlite_caps}
0ee9c31a 52
0ad73835
ER
53# no debuginfo available
54%define _enable_debug_packages 0
55
0ee9c31a 56%description
57Mozilla Firefox is an open-source web browser, designed for standards
58compliance, performance and portability.
59
dc043ca8
JR
60%description -l pl.UTF-8
61Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
62myślą o zgodności ze standardami, wydajnością i przenośnością.
0ee9c31a 63
64%prep
2f8b63bb
ER
65%setup -qcT
66%{__tar} jxf %{SOURCE0} --strip-components=1
72435308 67%if "%{pld_release}" == "th"
68%patch0 -p0
69%endif
72435308 70%if "%{pld_release}" == "ti"
71%patch1 -p0
2f8b63bb 72%patch2 -p1
72435308 73%endif
74
0ee9c31a 75%install
76rm -rf $RPM_BUILD_ROOT
77install -d \
16b5e263
ER
78 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{name}} \
79 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \
0ee9c31a 80
22ff9bcb 81cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
16b5e263
ER
82sed 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/%{name}
83ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/firefox-bin
84e0e533 84cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
48ac9971 85cp -a icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
84e0e533
ER
86
87%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
0ee9c31a 88
48ac9971
ER
89# use system dict
90rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
91ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
92
93# use system sqlite
94rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libsqlite3.so
95ln -s /%{_lib}/libsqlite3.so.0 $RPM_BUILD_ROOT%{_libdir}/%{name}/libsqlite3.so
96
16b5e263
ER
97# never package these
98# nss
99rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
100# nspr
101rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
102# mozldap
103rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
104
105# remove unecessary stuff
106rm $RPM_BUILD_ROOT%{_libdir}/%{name}/README.txt
107rm $RPM_BUILD_ROOT%{_libdir}/%{name}/components/components.list
108rm $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
109
0ee9c31a 110%clean
111rm -rf $RPM_BUILD_ROOT
112
48ac9971
ER
113%pretrans
114if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
115 mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
116fi
117exit 0
118
84e0e533
ER
119%post
120%update_browser_plugins
121
122%postun
123if [ "$1" = 0 ]; then
124 %update_browser_plugins
125fi
126
0ee9c31a 127%files
128%defattr(644,root,root,755)
16b5e263 129%attr(755,root,root) %{_bindir}/%{name}
2afe0ea7 130%attr(755,root,root) %{_bindir}/firefox-bin
84e0e533
ER
131
132# browser plugins v2
133%{_browserpluginsconfdir}/browsers.d/%{name}.*
134%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
135
f757977d 136%dir %{_libdir}/%{name}
88e4d241 137%{_libdir}/%{name}/application.ini
e90422b4 138%{_libdir}/%{name}/platform.ini
f757977d 139%{_libdir}/%{name}/res
18e7dc6a 140%dir %{_libdir}/%{name}/extensions
9f7f0cd1
ER
141# the signature of the default theme
142%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
143
f757977d
ER
144%dir %{_libdir}/%{name}/components
145%attr(755,root,root) %{_libdir}/%{name}/components/*.so
146%{_libdir}/%{name}/components/*.js
147%{_libdir}/%{name}/components/*.xpt
148%{_libdir}/%{name}/chrome
149%{_libdir}/%{name}/defaults
150%{_libdir}/%{name}/greprefs
151%{_libdir}/%{name}/icons
0ad73835
ER
152%dir %{_libdir}/%{name}/plugins
153%attr(755,root,root) %{_libdir}/%{name}/plugins/libnullplugin.so
f757977d
ER
154%{_libdir}/%{name}/searchplugins
155%{_libdir}/%{name}/dictionaries
156%{_libdir}/%{name}/browserconfig.properties
f757977d
ER
157%attr(755,root,root) %{_libdir}/%{name}/*.so
158%attr(755,root,root) %{_libdir}/%{name}/*.sh
159%attr(755,root,root) %{_libdir}/%{name}/m*
160%attr(755,root,root) %{_libdir}/%{name}/f*
16b5e263
ER
161%{_pixmapsdir}/%{name}.png
162%{_desktopdir}/%{name}.desktop
This page took 0.087594 seconds and 4 git commands to generate.