- package initial blocklist.xml
[packages/mozilla-firefox-bin.git] / mozilla-firefox-bin.spec
CommitLineData
84e0e533 1# TODO
84e0e533
ER
2# /usr/lib/mozilla-firefox-bin/crashreporter
3# /usr/lib/mozilla-firefox-bin/crashreporter-override.ini
4# /usr/lib/mozilla-firefox-bin/crashreporter.ini
c6b1280f
ER
5
6# /usr/lib/mozilla-firefox-bin/Throbber-small.gif
84e0e533
ER
7# /usr/lib/mozilla-firefox-bin/update.locale
8# /usr/lib/mozilla-firefox-bin/updater
9# /usr/lib/mozilla-firefox-bin/updater.ini
0ee9c31a 10%define realname firefox
11Summary: Mozilla Firefox web browser
42b6dbdb 12Summary(pl.UTF-8): Mozilla Firefox - przeglądarka WWW
0ee9c31a 13Name: mozilla-firefox-bin
508f314e 14Version: 3.6.8
c6b1280f 15Release: 0.7
0ee9c31a 16License: MPL/LGPL
17Group: X11/Applications/Networking
d090773b 18Source0: http://releases.mozilla.org/pub/mozilla.org/%{realname}/releases/%{version}/linux-i686/en-US/%{realname}-%{version}.tar.bz2
508f314e 19# Source0-md5: 689232baf90592cf237817c34ac29bb2
0ee9c31a 20Source1: %{name}.desktop
14d807c9 21Source2: %{name}.sh
72435308 22Patch0: %{name}-agent.patch
23Patch1: %{name}-ti-agent.patch
2f8b63bb 24Patch2: nochilds.patch
0ee9c31a 25URL: http://www.mozilla.org/projects/firefox/
84e0e533 26BuildRequires: rpmbuild(macros) >= 1.453
795e56bb 27BuildRequires: zip
84e0e533 28Requires: browser-plugins >= 2.0
48ac9971 29Requires: myspell-common
48ac9971 30Requires: sqlite3 >= 3.6.22-2
84e0e533 31Provides: wwwbrowser
0ee9c31a 32Obsoletes: mozilla-firebird
33Conflicts: mozilla-firefox
83a1e3f4 34ExclusiveArch: i686 athlon
0ee9c31a 35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%define _firefoxdir %{_libdir}/%{name}
cb99552d 38
22ff9bcb 39%define nss_caps libfreebl3.so libnss3.so libnssckbi.so libsmime3.so ibsoftokn3.so libssl3.so libnssutil3.so libnssdbm3.so
97c40bb5 40%define nspr_caps libnspr4.so libplc4.so libplds4.so
22ff9bcb 41%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 42%define sqlite_caps libsqlite3.so
ac3e1eda 43
cb99552d 44# list of files (regexps) which don't generate Provides
f757977d 45%define _noautoprovfiles %{_libdir}/%{name}/components
cb99552d 46# list of script capabilities (regexps) not to be used in Provides
ac3e1eda 47%define _noautoprov %{moz_caps} %{nss_caps} %{nspr_caps}
48ac9971 48%define _noautoreq %{_noautoprov} %{sqlite_caps}
0ee9c31a 49
0ad73835
ER
50# no debuginfo available
51%define _enable_debug_packages 0
52
0ee9c31a 53%description
54Mozilla Firefox is an open-source web browser, designed for standards
55compliance, performance and portability.
56
dc043ca8
JR
57%description -l pl.UTF-8
58Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
59myślą o zgodności ze standardami, wydajnością i przenośnością.
0ee9c31a 60
61%prep
2f8b63bb
ER
62%setup -qcT
63%{__tar} jxf %{SOURCE0} --strip-components=1
72435308 64%if "%{pld_release}" == "th"
65%patch0 -p0
66%endif
72435308 67%if "%{pld_release}" == "ti"
68%patch1 -p0
69%endif
804f66c3 70%patch2 -p1
72435308 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
73f41dce 104rm $RPM_BUILD_ROOT%{_libdir}/%{name}/LICENSE
16b5e263
ER
105rm $RPM_BUILD_ROOT%{_libdir}/%{name}/components/components.list
106rm $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
73f41dce 107rm $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
c6b1280f 108rm $RPM_BUILD_ROOT%{_libdir}/%{name}/.autoreg
16b5e263 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)
73f41dce 129%doc README.txt
16b5e263 130%attr(755,root,root) %{_bindir}/%{name}
2afe0ea7 131%attr(755,root,root) %{_bindir}/firefox-bin
84e0e533
ER
132
133# browser plugins v2
134%{_browserpluginsconfdir}/browsers.d/%{name}.*
135%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
136
f757977d 137%dir %{_libdir}/%{name}
88e4d241 138%{_libdir}/%{name}/application.ini
e90422b4 139%{_libdir}/%{name}/platform.ini
c6b1280f 140%{_libdir}/%{name}/blocklist.xml
f757977d 141%{_libdir}/%{name}/res
18e7dc6a 142%dir %{_libdir}/%{name}/extensions
9f7f0cd1
ER
143# the signature of the default theme
144%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
145
f757977d
ER
146%dir %{_libdir}/%{name}/components
147%attr(755,root,root) %{_libdir}/%{name}/components/*.so
148%{_libdir}/%{name}/components/*.js
149%{_libdir}/%{name}/components/*.xpt
150%{_libdir}/%{name}/chrome
151%{_libdir}/%{name}/defaults
152%{_libdir}/%{name}/greprefs
153%{_libdir}/%{name}/icons
0ad73835
ER
154%dir %{_libdir}/%{name}/plugins
155%attr(755,root,root) %{_libdir}/%{name}/plugins/libnullplugin.so
f757977d
ER
156%{_libdir}/%{name}/searchplugins
157%{_libdir}/%{name}/dictionaries
158%{_libdir}/%{name}/browserconfig.properties
f757977d
ER
159%attr(755,root,root) %{_libdir}/%{name}/*.so
160%attr(755,root,root) %{_libdir}/%{name}/*.sh
73f41dce 161%attr(755,root,root) %{_libdir}/%{name}/plugin-container
f757977d
ER
162%attr(755,root,root) %{_libdir}/%{name}/m*
163%attr(755,root,root) %{_libdir}/%{name}/f*
16b5e263
ER
164%{_pixmapsdir}/%{name}.png
165%{_desktopdir}/%{name}.desktop
This page took 0.081799 seconds and 4 git commands to generate.