- up to 3.6.12
[packages/mozilla-firefox-bin.git] / mozilla-firefox-bin.spec
CommitLineData
0ee9c31a 1%define realname firefox
2Summary: Mozilla Firefox web browser
42b6dbdb 3Summary(pl.UTF-8): Mozilla Firefox - przeglądarka WWW
0ee9c31a 4Name: mozilla-firefox-bin
f3899bc4 5Version: 3.6.12
843cc82e 6Release: 1
0ee9c31a 7License: MPL/LGPL
8Group: X11/Applications/Networking
d090773b 9Source0: http://releases.mozilla.org/pub/mozilla.org/%{realname}/releases/%{version}/linux-i686/en-US/%{realname}-%{version}.tar.bz2
f3899bc4 10# Source0-md5: d9c3db10ca1af52bdcbdadf2ca314772
0ee9c31a 11Source1: %{name}.desktop
14d807c9 12Source2: %{name}.sh
72435308 13Patch0: %{name}-agent.patch
14Patch1: %{name}-ti-agent.patch
2f8b63bb 15Patch2: nochilds.patch
0ee9c31a 16URL: http://www.mozilla.org/projects/firefox/
84e0e533 17BuildRequires: rpmbuild(macros) >= 1.453
795e56bb 18BuildRequires: zip
84e0e533 19Requires: browser-plugins >= 2.0
48ac9971 20Requires: myspell-common
48ac9971 21Requires: sqlite3 >= 3.6.22-2
84e0e533 22Provides: wwwbrowser
0ee9c31a 23Obsoletes: mozilla-firebird
24Conflicts: mozilla-firefox
83a1e3f4 25ExclusiveArch: i686 athlon
0ee9c31a 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%define _firefoxdir %{_libdir}/%{name}
cb99552d 29
22ff9bcb 30%define nss_caps libfreebl3.so libnss3.so libnssckbi.so libsmime3.so ibsoftokn3.so libssl3.so libnssutil3.so libnssdbm3.so
97c40bb5 31%define nspr_caps libnspr4.so libplc4.so libplds4.so
22ff9bcb 32%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 33%define sqlite_caps libsqlite3.so
ac3e1eda 34
cb99552d 35# list of files (regexps) which don't generate Provides
f757977d 36%define _noautoprovfiles %{_libdir}/%{name}/components
cb99552d 37# list of script capabilities (regexps) not to be used in Provides
ac3e1eda 38%define _noautoprov %{moz_caps} %{nss_caps} %{nspr_caps}
48ac9971 39%define _noautoreq %{_noautoprov} %{sqlite_caps}
0ee9c31a 40
0ad73835
ER
41# no debuginfo available
42%define _enable_debug_packages 0
43
0ee9c31a 44%description
45Mozilla Firefox is an open-source web browser, designed for standards
46compliance, performance and portability.
47
dc043ca8
JR
48%description -l pl.UTF-8
49Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
50myślą o zgodności ze standardami, wydajnością i przenośnością.
0ee9c31a 51
52%prep
2f8b63bb
ER
53%setup -qcT
54%{__tar} jxf %{SOURCE0} --strip-components=1
72435308 55%if "%{pld_release}" == "th"
56%patch0 -p0
57%endif
72435308 58%if "%{pld_release}" == "ti"
59%patch1 -p0
60%endif
804f66c3 61%patch2 -p1
72435308 62
0ee9c31a 63%install
64rm -rf $RPM_BUILD_ROOT
65install -d \
16b5e263
ER
66 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{name}} \
67 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}} \
0ee9c31a 68
22ff9bcb 69cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
16b5e263
ER
70sed 's,@LIBDIR@,%{_libdir},' %{SOURCE2} > $RPM_BUILD_ROOT%{_bindir}/%{name}
71ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/firefox-bin
84e0e533 72cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
48ac9971 73cp -a icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
84e0e533
ER
74
75%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
0ee9c31a 76
48ac9971
ER
77# use system dict
78rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
79ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
80
81# use system sqlite
82rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libsqlite3.so
83ln -s /%{_lib}/libsqlite3.so.0 $RPM_BUILD_ROOT%{_libdir}/%{name}/libsqlite3.so
84
16b5e263
ER
85# never package these
86# nss
87rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
88# nspr
89rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
90# mozldap
91rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
92
b8a1cad4
ER
93# remove update notifier, we prefer rpm packages for updating
94rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/updater
95rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/updater.ini
96rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/update.locale
97rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/Throbber-small.gif
98
16b5e263
ER
99# remove unecessary stuff
100rm $RPM_BUILD_ROOT%{_libdir}/%{name}/README.txt
73f41dce 101rm $RPM_BUILD_ROOT%{_libdir}/%{name}/LICENSE
16b5e263
ER
102rm $RPM_BUILD_ROOT%{_libdir}/%{name}/components/components.list
103rm $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
73f41dce 104rm $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
c6b1280f 105rm $RPM_BUILD_ROOT%{_libdir}/%{name}/.autoreg
16b5e263 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)
73f41dce 126%doc README.txt
16b5e263 127%attr(755,root,root) %{_bindir}/%{name}
2afe0ea7 128%attr(755,root,root) %{_bindir}/firefox-bin
84e0e533
ER
129
130# browser plugins v2
131%{_browserpluginsconfdir}/browsers.d/%{name}.*
132%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
133
f757977d 134%dir %{_libdir}/%{name}
88e4d241 135%{_libdir}/%{name}/application.ini
c6b1280f 136%{_libdir}/%{name}/blocklist.xml
b8a1cad4
ER
137%{_libdir}/%{name}/browserconfig.properties
138%{_libdir}/%{name}/platform.ini
139%attr(755,root,root) %{_libdir}/%{name}/firefox
140%attr(755,root,root) %{_libdir}/%{name}/firefox-bin
141%attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client
142%attr(755,root,root) %{_libdir}/%{name}/plugin-container
143
144%{_libdir}/%{name}/chrome
145%{_libdir}/%{name}/defaults
146%{_libdir}/%{name}/dictionaries
147%{_libdir}/%{name}/greprefs
148%{_libdir}/%{name}/icons
149%{_libdir}/%{name}/modules
f757977d 150%{_libdir}/%{name}/res
b8a1cad4
ER
151%{_libdir}/%{name}/searchplugins
152
18e7dc6a 153%dir %{_libdir}/%{name}/extensions
9f7f0cd1
ER
154# the signature of the default theme
155%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
156
f757977d
ER
157%dir %{_libdir}/%{name}/components
158%attr(755,root,root) %{_libdir}/%{name}/components/*.so
159%{_libdir}/%{name}/components/*.js
160%{_libdir}/%{name}/components/*.xpt
b8a1cad4 161
0ad73835
ER
162%dir %{_libdir}/%{name}/plugins
163%attr(755,root,root) %{_libdir}/%{name}/plugins/libnullplugin.so
f757977d
ER
164%attr(755,root,root) %{_libdir}/%{name}/*.so
165%attr(755,root,root) %{_libdir}/%{name}/*.sh
b8a1cad4
ER
166
167# crashreporter
168%attr(755,root,root) %{_libdir}/%{name}/crashreporter
169%{_libdir}/%{name}/crashreporter-override.ini
170%{_libdir}/%{name}/crashreporter.ini
171
16b5e263
ER
172%{_pixmapsdir}/%{name}.png
173%{_desktopdir}/%{name}.desktop
This page took 0.127298 seconds and 4 git commands to generate.