up to 51.0
[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
3f1571af 5Version: 51.0
0f54818d 6Release: 1
0ee9c31a 7License: MPL/LGPL
8Group: X11/Applications/Networking
53cf26c7 9Source0: https://ftp.mozilla.org/pub/firefox/releases/%{version}/linux-i686/en-US/%{realname}-%{version}.tar.bz2?/%{realname}-%{version}.i686.tar.bz2
3f1571af 10# Source0-md5: 0b37610d6a3e9cbbd37478e8356d93c3
53cf26c7 11Source1: https://ftp.mozilla.org/pub/firefox/releases/%{version}/linux-x86_64/en-US/%{realname}-%{version}.tar.bz2?/%{realname}-%{version}.x8664.tar.bz2
3f1571af 12# Source1-md5: 371ddf3c87a001e5405b676f99c10793
bf425d99 13Source2: %{name}.desktop
14Source3: %{name}.sh
dc61d8d8 15URL: https://www.mozilla.org/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
3f1571af
JP
21Requires: nspr >= 1:4.13.1
22Requires: nss >= 1:3.28.1
23Requires: sqlite3 >= 3.14.1
84e0e533 24Provides: wwwbrowser
0ee9c31a 25Obsoletes: mozilla-firebird
26Conflicts: mozilla-firefox
bf425d99 27ExclusiveArch: i686 athlon %{x8664}
0ee9c31a 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%define _firefoxdir %{_libdir}/%{name}
cb99552d 31
bf425d99 32%define moz_caps libmozalloc.so libmozsqlite3.so libxpcom.so libxul.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
dc61d8d8
JR
38%define _noautoprov %{moz_caps}
39%define _noautoreq %{_noautoprov} %{sqlite_caps} libnotify.so.1
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 53%setup -qcT
bf425d99 54%ifarch i686 athlon
2f8b63bb 55%{__tar} jxf %{SOURCE0} --strip-components=1
bf425d99 56%endif
57%ifarch %{x8664}
58%{__tar} jxf %{SOURCE1} --strip-components=1
59%endif
72435308 60
0ee9c31a 61%install
62rm -rf $RPM_BUILD_ROOT
63install -d \
e226b9b4 64 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{name}/browser/plugins} \
bf425d99 65 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
0ee9c31a 66
22ff9bcb 67cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
bf425d99 68sed 's,@LIBDIR@,%{_libdir},' %{SOURCE3} > $RPM_BUILD_ROOT%{_bindir}/%{name}
16b5e263 69ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/firefox-bin
bf425d99 70cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
e226b9b4 71cp -a browser/icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
84e0e533 72
e226b9b4 73%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/browser/plugins
0ee9c31a 74
48ac9971 75# use system dict
8132f653 76rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
48ac9971
ER
77ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
78
79# use system sqlite
8132f653
JP
80rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozsqlite3.so
81ln -s /%{_lib}/libsqlite3.so.0 $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozsqlite3.so
48ac9971 82
16b5e263
ER
83# never package these
84# nss
655aa374 85rm $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freeblpriv3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
16b5e263 86# nspr
8132f653 87rm $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
fb6523f1
JP
88grep -v 'libnspr4.so\|libplc4.so\|libplds4.so\|libnssutil3.so\|libnss3.so\|libsmime3.so\|libssl3.so' \
89 dependentlibs.list > $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
16b5e263 90
b8a1cad4 91# remove update notifier, we prefer rpm packages for updating
8132f653
JP
92rm $RPM_BUILD_ROOT%{_libdir}/%{name}/updater
93rm $RPM_BUILD_ROOT%{_libdir}/%{name}/updater.ini
94rm $RPM_BUILD_ROOT%{_libdir}/%{name}/update-settings.ini
95rm $RPM_BUILD_ROOT%{_libdir}/%{name}/Throbber-small.gif
b8a1cad4 96
16b5e263 97# remove unecessary stuff
16b5e263
ER
98rm $RPM_BUILD_ROOT%{_libdir}/%{name}/removed-files
99
0ee9c31a 100%clean
101rm -rf $RPM_BUILD_ROOT
102
48ac9971
ER
103%pretrans
104if [ -d %{_libdir}/%{name}/dictionaries ] && [ ! -L %{_libdir}/%{name}/dictionaries ]; then
105 mv -v %{_libdir}/%{name}/dictionaries{,.rpmsave}
106fi
107exit 0
108
84e0e533
ER
109%post
110%update_browser_plugins
76503d5c 111%update_desktop_database_post
84e0e533
ER
112
113%postun
76503d5c 114%update_desktop_database_postun
84e0e533
ER
115if [ "$1" = 0 ]; then
116 %update_browser_plugins
117fi
118
0ee9c31a 119%files
120%defattr(644,root,root,755)
16b5e263 121%attr(755,root,root) %{_bindir}/%{name}
2afe0ea7 122%attr(755,root,root) %{_bindir}/firefox-bin
84e0e533
ER
123
124# browser plugins v2
125%{_browserpluginsconfdir}/browsers.d/%{name}.*
126%config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist
127
f757977d 128%dir %{_libdir}/%{name}
88e4d241 129%{_libdir}/%{name}/application.ini
655aa374 130%{_libdir}/%{name}/icudt56l.dat
e226b9b4
JP
131
132%dir %{_libdir}/%{name}/browser
133%{_libdir}/%{name}/browser/blocklist.xml
134%{_libdir}/%{name}/browser/chrome.manifest
135%{_libdir}/%{name}/browser/omni.ja
136
137%dir %{_libdir}/%{name}/browser/components
138%{_libdir}/%{name}/browser/components/components.manifest
139%attr(755,root,root) %{_libdir}/%{name}/browser/components/libbrowsercomps.so
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}/plugin-container
146
e226b9b4
JP
147%{_libdir}/%{name}/browser/chrome
148%{_libdir}/%{name}/browser/icons
b8a1cad4 149%{_libdir}/%{name}/defaults
fb6523f1 150%{_libdir}/%{name}/dependentlibs.list
b8a1cad4 151%{_libdir}/%{name}/dictionaries
b8a1cad4 152%{_libdir}/%{name}/icons
b8a1cad4 153
8e44e5a6
JP
154%dir %{_libdir}/%{name}/fonts
155%{_libdir}/%{name}/fonts/EmojiOneMozilla.ttf
156
02ff03d0 157%dir %{_libdir}/%{name}/gtk2
247bca6f
JR
158%attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so
159
e226b9b4 160%dir %{_libdir}/%{name}/browser/extensions
9f7f0cd1 161# the signature of the default theme
327f328e 162%{_libdir}/%{name}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
9f7f0cd1 163
327f328e 164%dir %{_libdir}/%{name}/browser/features
8e44e5a6 165%{_libdir}/%{name}/browser/features/aushelper@mozilla.org.xpi
6ece1c9b
JR
166%{_libdir}/%{name}/browser/features/e10srollout@mozilla.org.xpi
167%{_libdir}/%{name}/browser/features/firefox@getpocket.com.xpi
53cf26c7 168%{_libdir}/%{name}/browser/features/webcompat@mozilla.org.xpi
b8a1cad4 169
e226b9b4 170%dir %{_libdir}/%{name}/browser/plugins
f757977d
ER
171%attr(755,root,root) %{_libdir}/%{name}/*.so
172%attr(755,root,root) %{_libdir}/%{name}/*.sh
b8a1cad4
ER
173
174# crashreporter
175%attr(755,root,root) %{_libdir}/%{name}/crashreporter
e226b9b4 176%{_libdir}/%{name}/browser/crashreporter-override.ini
b8a1cad4
ER
177%{_libdir}/%{name}/crashreporter.ini
178
8132f653
JP
179%dir %{_libdir}/%{name}/gmp-clearkey
180%dir %{_libdir}/%{name}/gmp-clearkey/0.1
181%{_libdir}/%{name}/gmp-clearkey/0.1/clearkey.info
182%attr(755,root,root) %{_libdir}/%{name}/gmp-clearkey/0.1/libclearkey.so
183
16b5e263
ER
184%{_pixmapsdir}/%{name}.png
185%{_desktopdir}/%{name}.desktop
This page took 1.196057 seconds and 4 git commands to generate.