- up to 20.0.1
[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
38e1baa3 5Version: 20.0.1
291a9b08 6Release: 1
0ee9c31a 7License: MPL/LGPL
8Group: X11/Applications/Networking
806ffd6d 9Source0: http://releases.mozilla.org/pub/mozilla.org/%{realname}/releases/%{version}/linux-i686/en-US/%{realname}-%{version}.tar.bz2?/%{realname}-%{version}.i686.tar.bz2
38e1baa3 10# Source0-md5: 4cecee4d0df9b0e0e1152c0cbe9a5f8f
806ffd6d 11Source1: http://releases.mozilla.org/pub/mozilla.org/%{realname}/releases/%{version}/linux-x86_64/en-US/%{realname}-%{version}.tar.bz2?/%{realname}-%{version}.x8664.tar.bz2
38e1baa3 12# Source1-md5: 277795a22f7b140cf9ea778d950c1499
bf425d99 13Source2: %{name}.desktop
14Source3: %{name}.sh
15#Patch0: %{name}-agent.patch
16#Patch1: %{name}-ti-agent.patch
17#Patch2: nochilds.patch
0ee9c31a 18URL: http://www.mozilla.org/projects/firefox/
84e0e533 19BuildRequires: rpmbuild(macros) >= 1.453
795e56bb 20BuildRequires: zip
84e0e533 21Requires: browser-plugins >= 2.0
48ac9971 22Requires: myspell-common
78903dba 23Requires: nss >=3.12.10
48ac9971 24Requires: sqlite3 >= 3.6.22-2
84e0e533 25Provides: wwwbrowser
0ee9c31a 26Obsoletes: mozilla-firebird
27Conflicts: mozilla-firefox
bf425d99 28ExclusiveArch: i686 athlon %{x8664}
0ee9c31a 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%define _firefoxdir %{_libdir}/%{name}
cb99552d 32
bf425d99 33%define moz_caps libmozalloc.so libmozsqlite3.so libxpcom.so libxul.so
48ac9971 34%define sqlite_caps libsqlite3.so
ac3e1eda 35
cb99552d 36# list of files (regexps) which don't generate Provides
f757977d 37%define _noautoprovfiles %{_libdir}/%{name}/components
cb99552d 38# list of script capabilities (regexps) not to be used in Provides
bf425d99 39%define _noautoprov %{moz_caps}
6dc46294 40%define _noautoreq %{_noautoprov} %{sqlite_caps} libnotify.so.1
0ee9c31a 41
0ad73835
ER
42# no debuginfo available
43%define _enable_debug_packages 0
44
0ee9c31a 45%description
46Mozilla Firefox is an open-source web browser, designed for standards
47compliance, performance and portability.
48
dc043ca8
JR
49%description -l pl.UTF-8
50Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
51myślą o zgodności ze standardami, wydajnością i przenośnością.
0ee9c31a 52
53%prep
2f8b63bb 54%setup -qcT
bf425d99 55%ifarch i686 athlon
2f8b63bb 56%{__tar} jxf %{SOURCE0} --strip-components=1
bf425d99 57%endif
58%ifarch %{x8664}
59%{__tar} jxf %{SOURCE1} --strip-components=1
60%endif
72435308 61%if "%{pld_release}" == "th"
bf425d99 62#%patch0 -p0
72435308 63%endif
72435308 64%if "%{pld_release}" == "ti"
bf425d99 65#%patch1 -p0
72435308 66%endif
bf425d99 67#%patch2 -p1
72435308 68
0ee9c31a 69%install
70rm -rf $RPM_BUILD_ROOT
71install -d \
bf425d99 72 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{name}/plugins} \
73 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
0ee9c31a 74
22ff9bcb 75cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
bf425d99 76sed 's,@LIBDIR@,%{_libdir},' %{SOURCE3} > $RPM_BUILD_ROOT%{_bindir}/%{name}
16b5e263 77ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/firefox-bin
bf425d99 78cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
48ac9971 79cp -a icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
84e0e533
ER
80
81%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/plugins
0ee9c31a 82
48ac9971
ER
83# use system dict
84rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
85ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
86
87# use system sqlite
88rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/libsqlite3.so
89ln -s /%{_lib}/libsqlite3.so.0 $RPM_BUILD_ROOT%{_libdir}/%{name}/libsqlite3.so
90
16b5e263
ER
91# never package these
92# nss
93rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freebl3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
94# nspr
95rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
96# mozldap
97rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{ldap,ldif,prldap,ssldap}60.so
98
b8a1cad4
ER
99# remove update notifier, we prefer rpm packages for updating
100rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/updater
101rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/updater.ini
102rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/update.locale
103rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/Throbber-small.gif
104
16b5e263 105# remove unecessary stuff
16b5e263 106rm $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
73f41dce 107rm $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
16b5e263 108
0ee9c31a 109%clean
110rm -rf $RPM_BUILD_ROOT
111
48ac9971
ER
112%pretrans
113if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
114 mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
115fi
116exit 0
117
84e0e533
ER
118%post
119%update_browser_plugins
120
121%postun
122if [ "$1" = 0 ]; then
123 %update_browser_plugins
124fi
125
0ee9c31a 126%files
127%defattr(644,root,root,755)
16b5e263 128%attr(755,root,root) %{_bindir}/%{name}
2afe0ea7 129%attr(755,root,root) %{_bindir}/firefox-bin
84e0e533
ER
130
131# browser plugins v2
132%{_browserpluginsconfdir}/browsers.d/%{name}.*
133%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
134
f757977d 135%dir %{_libdir}/%{name}
88e4d241 136%{_libdir}/%{name}/application.ini
c6b1280f 137%{_libdir}/%{name}/blocklist.xml
bf425d99 138#%{_libdir}/%{name}/browserconfig.properties
139%{_libdir}/%{name}/chrome.manifest
5e781f69 140%{_libdir}/%{name}/omni.ja
b8a1cad4
ER
141%{_libdir}/%{name}/platform.ini
142%attr(755,root,root) %{_libdir}/%{name}/firefox
143%attr(755,root,root) %{_libdir}/%{name}/firefox-bin
96fa404a 144%attr(755,root,root) %{_libdir}/%{name}/precomplete
b8a1cad4
ER
145%attr(755,root,root) %{_libdir}/%{name}/mozilla-xremote-client
146%attr(755,root,root) %{_libdir}/%{name}/plugin-container
147
148%{_libdir}/%{name}/chrome
149%{_libdir}/%{name}/defaults
150%{_libdir}/%{name}/dictionaries
bf425d99 151#%{_libdir}/%{name}/greprefs
5e781f69
JR
152#%{_libdir}/%{name}/hyphenation
153#%{_libdir}/%{name}/hyphenation/hyph_en_US.dic
b8a1cad4 154%{_libdir}/%{name}/icons
bf425d99 155#%{_libdir}/%{name}/modules
156#%{_libdir}/%{name}/res
b8a1cad4 157%{_libdir}/%{name}/searchplugins
631dc55a
JR
158%{_libdir}/%{name}/webapprt
159%attr(755,root,root) %{_libdir}/%{name}/webapprt-stub
b8a1cad4 160
18e7dc6a 161%dir %{_libdir}/%{name}/extensions
9f7f0cd1
ER
162# the signature of the default theme
163%{_libdir}/%{name}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
164
bf425d99 165#%dir %{_libdir}/%{name}/distribution
166#%dir %{_libdir}/%{name}/distribution/extensions
167#%{_libdir}/%{name}/distribution/extensions/testpilot@labs.mozilla.com.xpi
168
f757977d
ER
169%dir %{_libdir}/%{name}/components
170%attr(755,root,root) %{_libdir}/%{name}/components/*.so
bf425d99 171%{_libdir}/%{name}/components/binary.manifest
172#%{_libdir}/%{name}/components/*.js
173#%{_libdir}/%{name}/components/*.xpt
b8a1cad4 174
0ad73835 175%dir %{_libdir}/%{name}/plugins
bf425d99 176#%attr(755,root,root) %{_libdir}/%{name}/plugins/libnullplugin.so
f757977d
ER
177%attr(755,root,root) %{_libdir}/%{name}/*.so
178%attr(755,root,root) %{_libdir}/%{name}/*.sh
b8a1cad4
ER
179
180# crashreporter
181%attr(755,root,root) %{_libdir}/%{name}/crashreporter
182%{_libdir}/%{name}/crashreporter-override.ini
183%{_libdir}/%{name}/crashreporter.ini
184
16b5e263
ER
185%{_pixmapsdir}/%{name}.png
186%{_desktopdir}/%{name}.desktop
This page took 0.412202 seconds and 4 git commands to generate.