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