do not R:/P: internal libs
[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
86be72bc 5Version: 53.0.3
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
86be72bc 10# Source0-md5: 0339f0a8be0e5af9a206bdfe67689cf8
53cf26c7 11Source1: https://ftp.mozilla.org/pub/firefox/releases/%{version}/linux-x86_64/en-US/%{realname}-%{version}.tar.bz2?/%{realname}-%{version}.x8664.tar.bz2
86be72bc 12# Source1-md5: 6219384d2631020adf1b5bb96f73621d
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
1392096a 20Requires: cpuinfo(sse2)
48ac9971 21Requires: myspell-common
3f1571af 22Requires: nspr >= 1:4.13.1
1392096a 23Requires: nss >= 1:3.29.5
1f70f23f 24Requires: sqlite3 >= 3.17.0
062c1f9d 25Suggests: pulseaudio
84e0e533 26Provides: wwwbrowser
0ee9c31a 27Obsoletes: mozilla-firebird
28Conflicts: mozilla-firefox
bf425d99 29ExclusiveArch: i686 athlon %{x8664}
0ee9c31a 30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%define _firefoxdir %{_libdir}/%{name}
cb99552d 33
12411620 34%define moz_caps libmozalloc.so libmozavcodec.so libmozavutil.so libclearkey.so liblgpllibs.so libmozgtk.so libmozsandbox.so libmozsqlite3.so libxpcom.so libxul.so
48ac9971 35%define sqlite_caps libsqlite3.so
ac3e1eda 36
cb99552d 37# list of files (regexps) which don't generate Provides
f757977d 38%define _noautoprovfiles %{_libdir}/%{name}/components
cb99552d 39# list of script capabilities (regexps) not to be used in Provides
dc61d8d8
JR
40%define _noautoprov %{moz_caps}
41%define _noautoreq %{_noautoprov} %{sqlite_caps} libnotify.so.1
0ee9c31a 42
0ad73835
ER
43# no debuginfo available
44%define _enable_debug_packages 0
45
0ee9c31a 46%description
47Mozilla Firefox is an open-source web browser, designed for standards
48compliance, performance and portability.
49
dc043ca8
JR
50%description -l pl.UTF-8
51Mozilla Firefox jest open sourcową przeglądarką sieci WWW, stworzoną z
52myślą o zgodności ze standardami, wydajnością i przenośnością.
0ee9c31a 53
54%prep
2f8b63bb 55%setup -qcT
bf425d99 56%ifarch i686 athlon
2f8b63bb 57%{__tar} jxf %{SOURCE0} --strip-components=1
bf425d99 58%endif
59%ifarch %{x8664}
60%{__tar} jxf %{SOURCE1} --strip-components=1
61%endif
72435308 62
0ee9c31a 63%install
64rm -rf $RPM_BUILD_ROOT
65install -d \
e226b9b4 66 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}/%{name}/browser/plugins} \
bf425d99 67 $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
0ee9c31a 68
22ff9bcb 69cp -a . $RPM_BUILD_ROOT%{_libdir}/%{name}
bf425d99 70sed 's,@LIBDIR@,%{_libdir},' %{SOURCE3} > $RPM_BUILD_ROOT%{_bindir}/%{name}
16b5e263 71ln -s %{name} $RPM_BUILD_ROOT%{_bindir}/firefox-bin
bf425d99 72cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
e226b9b4 73cp -a browser/icons/mozicon128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
84e0e533 74
e226b9b4 75%browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/browser/plugins
0ee9c31a 76
48ac9971 77# use system dict
8132f653 78rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
48ac9971
ER
79ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries
80
81# use system sqlite
8132f653
JP
82rm $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozsqlite3.so
83ln -s /%{_lib}/libsqlite3.so.0 $RPM_BUILD_ROOT%{_libdir}/%{name}/libmozsqlite3.so
48ac9971 84
16b5e263
ER
85# never package these
86# nss
655aa374 87rm $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{freeblpriv3,nss3,nssckbi,nssdbm3,nssutil3,smime3,softokn3,ssl3}.*
16b5e263 88# nspr
8132f653 89rm $RPM_BUILD_ROOT%{_libdir}/%{name}/lib{nspr4,plc4,plds4}.so
fb6523f1
JP
90grep -v 'libnspr4.so\|libplc4.so\|libplds4.so\|libnssutil3.so\|libnss3.so\|libsmime3.so\|libssl3.so' \
91 dependentlibs.list > $RPM_BUILD_ROOT%{_libdir}/%{name}/dependentlibs.list
16b5e263 92
b8a1cad4 93# remove update notifier, we prefer rpm packages for updating
8132f653
JP
94rm $RPM_BUILD_ROOT%{_libdir}/%{name}/updater
95rm $RPM_BUILD_ROOT%{_libdir}/%{name}/updater.ini
96rm $RPM_BUILD_ROOT%{_libdir}/%{name}/update-settings.ini
97rm $RPM_BUILD_ROOT%{_libdir}/%{name}/Throbber-small.gif
b8a1cad4 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
1f70f23f
JP
132%{_libdir}/%{name}/chrome.manifest
133%{_libdir}/%{name}/icudt58l.dat
e226b9b4
JP
134
135%dir %{_libdir}/%{name}/browser
136%{_libdir}/%{name}/browser/blocklist.xml
137%{_libdir}/%{name}/browser/chrome.manifest
138%{_libdir}/%{name}/browser/omni.ja
139
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
1f70f23f 144%attr(755,root,root) %{_libdir}/%{name}/minidump-analyzer
96fa404a 145%attr(755,root,root) %{_libdir}/%{name}/precomplete
b8a1cad4
ER
146%attr(755,root,root) %{_libdir}/%{name}/plugin-container
147
e226b9b4
JP
148%{_libdir}/%{name}/browser/chrome
149%{_libdir}/%{name}/browser/icons
b8a1cad4 150%{_libdir}/%{name}/defaults
fb6523f1 151%{_libdir}/%{name}/dependentlibs.list
b8a1cad4 152%{_libdir}/%{name}/dictionaries
b8a1cad4 153%{_libdir}/%{name}/icons
b8a1cad4 154
8e44e5a6
JP
155%dir %{_libdir}/%{name}/fonts
156%{_libdir}/%{name}/fonts/EmojiOneMozilla.ttf
157
02ff03d0 158%dir %{_libdir}/%{name}/gtk2
247bca6f
JR
159%attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so
160
e226b9b4 161%dir %{_libdir}/%{name}/browser/extensions
9f7f0cd1 162# the signature of the default theme
327f328e 163%{_libdir}/%{name}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
9f7f0cd1 164
327f328e 165%dir %{_libdir}/%{name}/browser/features
8e44e5a6 166%{_libdir}/%{name}/browser/features/aushelper@mozilla.org.xpi
6ece1c9b
JR
167%{_libdir}/%{name}/browser/features/e10srollout@mozilla.org.xpi
168%{_libdir}/%{name}/browser/features/firefox@getpocket.com.xpi
53cf26c7 169%{_libdir}/%{name}/browser/features/webcompat@mozilla.org.xpi
b8a1cad4 170
e226b9b4 171%dir %{_libdir}/%{name}/browser/plugins
f757977d
ER
172%attr(755,root,root) %{_libdir}/%{name}/*.so
173%attr(755,root,root) %{_libdir}/%{name}/*.sh
b8a1cad4
ER
174
175# crashreporter
176%attr(755,root,root) %{_libdir}/%{name}/crashreporter
e226b9b4 177%{_libdir}/%{name}/browser/crashreporter-override.ini
b8a1cad4
ER
178%{_libdir}/%{name}/crashreporter.ini
179
8132f653
JP
180%dir %{_libdir}/%{name}/gmp-clearkey
181%dir %{_libdir}/%{name}/gmp-clearkey/0.1
1392096a 182%{_libdir}/%{name}/gmp-clearkey/0.1/manifest.json
8132f653
JP
183%attr(755,root,root) %{_libdir}/%{name}/gmp-clearkey/0.1/libclearkey.so
184
16b5e263
ER
185%{_pixmapsdir}/%{name}.png
186%{_desktopdir}/%{name}.desktop
This page took 0.877208 seconds and 4 git commands to generate.