]>
Commit | Line | Data |
---|---|---|
0d00fa1b | 1 | # TODO: |
54d6358a | 2 | # - consider --enable-libproxy |
76f62688 | 3 | # - enable rust support |
2f695f11 | 4 | # |
ca6a7239 | 5 | # Conditional build: |
4ab16c9e | 6 | %bcond_with tests # enable tests (whatever they check) |
4264118a | 7 | %bcond_without gtk3 # GTK+ 3.x instead of 2.x |
2a673919 | 8 | %bcond_without kerberos # disable krb5 support |
89390b0e | 9 | %bcond_without official # official Firefox branding |
2d530faf | 10 | %bcond_without pgo # PGO-enabled build (requires working $DISPLAY == :100) |
54d6358a JR |
11 | # - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964 |
12 | %bcond_with shared_js # shared libmozjs library [broken] | |
51667f5d | 13 | %bcond_without system_icu # build without system ICU |
54d6358a JR |
14 | |
15 | # On updating version, grab CVE links from: | |
16 | # https://www.mozilla.org/security/known-vulnerabilities/firefox.html | |
17 | # Release Notes: | |
18 | # https://developer.mozilla.org/en-US/Firefox/Releases | |
2a673919 | 19 | |
d97ddc70 JB |
20 | # The actual sqlite version (see RHBZ#480989): |
21 | %define sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo ERROR) | |
d97ddc70 | 22 | |
a9275cf8 | 23 | %define nspr_ver 4.13.1 |
18a7a80a | 24 | %define nss_ver 3.29.5 |
54d6358a JR |
25 | |
26 | Summary: Firefox web browser | |
27 | Summary(hu.UTF-8): Firefox web böngésző | |
28 | Summary(pl.UTF-8): Firefox - przeglądarka WWW | |
29 | Name: firefox | |
890cec3d | 30 | Version: 54.0 |
18a7a80a | 31 | Release: 1 |
a9334f16 | 32 | License: MPL v2.0 |
51c0f20a | 33 | Group: X11/Applications/Networking |
54d6358a | 34 | Source0: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/source/firefox-%{version}.source.tar.xz |
890cec3d | 35 | # Source0-md5: bd9eccc20354ad3e69e0265f0a7f5c90 |
96ef4151 JB |
36 | Source3: %{name}.desktop |
37 | Source4: %{name}.sh | |
c5cd9be2 JB |
38 | Source5: vendor.js |
39 | Source6: vendor-ac.js | |
f0a96e4f JR |
40 | Patch0: idl-parser.patch |
41 | Patch1: xulrunner-new-libxul.patch | |
42 | Patch2: xulrunner-paths.patch | |
f0a96e4f JR |
43 | Patch4: %{name}-prefs.patch |
44 | Patch5: %{name}-pld-bookmarks.patch | |
45 | Patch6: %{name}-no-subshell.patch | |
46 | Patch7: %{name}-middle_click_paste.patch | |
47 | Patch8: %{name}-system-virtualenv.patch | |
48 | Patch9: %{name}-Disable-Firefox-Health-Report.patch | |
49 | Patch10: freetype.patch | |
54d6358a | 50 | URL: https://www.mozilla.org/firefox/ |
0fca8d8d | 51 | BuildRequires: OpenGL-devel |
d97ddc70 | 52 | BuildRequires: alsa-lib-devel |
e933d2a8 | 53 | BuildRequires: automake |
f0a96e4f | 54 | BuildRequires: autoconf2_13 |
d97ddc70 | 55 | BuildRequires: bzip2-devel |
0fca8d8d | 56 | BuildRequires: cairo-devel >= 1.10.2-5 |
09328230 | 57 | BuildRequires: dbus-glib-devel >= 0.60 |
504c563f | 58 | BuildRequires: fontconfig-devel >= 1:2.7.0 |
37413542 | 59 | BuildRequires: freetype-devel >= 1:2.1.8 |
c5cd9be2 | 60 | BuildRequires: gcc-c++ >= 6:4.4 |
d0a1bb80 | 61 | BuildRequires: glib2-devel >= 1:2.22 |
08ccc3c5 JB |
62 | BuildRequires: gstreamer-devel >= 1.0 |
63 | BuildRequires: gstreamer-plugins-base-devel >= 1.0 | |
d0a1bb80 JB |
64 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.18.0} |
65 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.4.0} | |
2a673919 | 66 | %{?with_kerberos:BuildRequires: heimdal-devel >= 0.7.1} |
76f62688 | 67 | BuildRequires: hunspell-devel >= 1.6.1 |
8a88dcf7 | 68 | BuildRequires: libIDL-devel >= 0.8.0 |
d0a1bb80 JB |
69 | # DECnet (dnprogs.spec), not dummy net (libdnet.spec) |
70 | #BuildRequires: libdnet-devel | |
0fca8d8d | 71 | BuildRequires: libevent-devel >= 1.4.7 |
4ac83cfe JB |
72 | # standalone libffi 3.0.9 or gcc's from 4.5(?)+ |
73 | BuildRequires: libffi-devel >= 6:3.0.9 | |
edc68de2 | 74 | %{?with_system_icu:BuildRequires: libicu-devel >= 58.1} |
96ef4151 | 75 | # requires libjpeg-turbo implementing at least libjpeg 6b API |
ea721d92 | 76 | BuildRequires: libjpeg-devel >= 6b |
96ef4151 | 77 | BuildRequires: libjpeg-turbo-devel |
2a673919 | 78 | BuildRequires: libpng(APNG)-devel >= 0.10 |
18a7a80a | 79 | BuildRequires: libpng-devel >= 2:1.6.28 |
c5cd9be2 | 80 | BuildRequires: libstdc++-devel >= 6:4.4 |
504c563f | 81 | BuildRequires: libvpx-devel >= 1.5.0 |
96ef4151 JB |
82 | BuildRequires: nspr-devel >= 1:%{nspr_ver} |
83 | BuildRequires: nss-devel >= 1:%{nss_ver} | |
08ccc3c5 | 84 | BuildRequires: pango-devel >= 1:1.22.0 |
a9334f16 | 85 | BuildRequires: pixman-devel >= 0.19.2 |
56cf7ebf | 86 | BuildRequires: perl-modules >= 5.004 |
1bb00684 | 87 | BuildRequires: pkgconfig |
b73005e5 | 88 | BuildRequires: pkgconfig(libffi) >= 3.0.9 |
08ccc3c5 | 89 | BuildRequires: pulseaudio-devel |
37413542 | 90 | BuildRequires: python-modules >= 1:2.5 |
54d6358a | 91 | %{?with_pgo:BuildRequires: python-modules-sqlite} |
a86b0951 | 92 | BuildRequires: python-simplejson |
89390b0e | 93 | BuildRequires: python-virtualenv >= 15 |
08ccc3c5 | 94 | BuildRequires: readline-devel |
6b1581cf | 95 | BuildRequires: rpm >= 4.4.9-56 |
9df03825 | 96 | BuildRequires: rpmbuild(macros) >= 1.601 |
54d6358a | 97 | BuildRequires: sed >= 4.0 |
8323a6a7 | 98 | BuildRequires: sqlite3-devel >= 3.17.0 |
d97ddc70 | 99 | BuildRequires: startup-notification-devel >= 0.8 |
7bfe3691 | 100 | BuildRequires: xorg-lib-libX11-devel |
0fca8d8d | 101 | BuildRequires: xorg-lib-libXScrnSaver-devel |
7bfe3691 JB |
102 | BuildRequires: xorg-lib-libXcomposite-devel |
103 | BuildRequires: xorg-lib-libXdamage-devel | |
446ffaab | 104 | BuildRequires: xorg-lib-libXext-devel |
7bfe3691 | 105 | BuildRequires: xorg-lib-libXfixes-devel |
446ffaab | 106 | BuildRequires: xorg-lib-libXinerama-devel |
de5abc0a | 107 | BuildRequires: xorg-lib-libXt-devel |
54d6358a | 108 | %{?with_pgo:BuildRequires: xorg-xserver-Xvfb} |
7bfe3691 JB |
109 | %ifarch %{x8664} |
110 | BuildRequires: yasm >= 1.0.1 | |
111 | %endif | |
b0a3aa79 | 112 | BuildRequires: zip |
1dd3785b | 113 | BuildRequires: zlib-devel >= 1.2.3 |
54d6358a | 114 | BuildConflicts: %{name}-devel < %{version} |
f37c2ce5 | 115 | Requires(post): mktemp >= 1.5-18 |
82f4f456 | 116 | Requires: browser-plugins >= 2.0 |
76f62688 JR |
117 | Requires: cairo >= 1.10.2-5 |
118 | Requires: dbus-glib >= 0.60 | |
96ef4151 | 119 | Requires: desktop-file-utils |
76f62688 JR |
120 | Requires: fontconfig-libs >= 1:2.7.0 |
121 | Requires: glib2 >= 1:2.22 | |
122 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.18.0} | |
123 | %{?with_gtk3:Requires: gtk+3 >= 3.4.0} | |
c5cd9be2 | 124 | Requires: hicolor-icon-theme |
76f62688 | 125 | Requires: libjpeg-turbo |
18a7a80a | 126 | Requires: libpng >= 2:1.6.28 |
76f62688 JR |
127 | Requires: libpng(APNG) >= 0.10 |
128 | Requires: libvpx >= 1.5.0 | |
d97ddc70 | 129 | Requires: myspell-common |
96ef4151 JB |
130 | Requires: nspr >= 1:%{nspr_ver} |
131 | Requires: nss >= 1:%{nss_ver} | |
76f62688 JR |
132 | Requires: pango >= 1:1.22.0 |
133 | Requires: sqlite3 >= %{sqlite_build_version} | |
134 | Requires: startup-notification >= 0.8 | |
135 | Provides: xulrunner-libs = 2:%{version}-%{release} | |
0d52cac8 | 136 | Provides: wwwbrowser |
76f62688 | 137 | Obsoletes: firefox-devel |
df016d82 | 138 | Obsoletes: firefox-libs |
54d6358a | 139 | Obsoletes: iceweasel |
76f62688 | 140 | Obsoletes: iceweasel-libs |
51c0f20a | 141 | Obsoletes: mozilla-firebird |
54d6358a | 142 | Obsoletes: mozilla-firefox |
2620301e | 143 | Obsoletes: mozilla-firefox-lang-en < 2.0.0.8-3 |
c2814220 | 144 | Obsoletes: mozilla-firefox-libs |
54d6358a JR |
145 | Obsoletes: xulrunner |
146 | Obsoletes: xulrunner-gnome | |
76f62688 | 147 | Obsoletes: xulrunner-libs |
54d6358a | 148 | Conflicts: firefox-lang-resources < %{version} |
ea721d92 | 149 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
150 | ||
96ef4151 JB |
151 | %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ |
152 | ||
54d6358a JR |
153 | # don't satisfy other packages |
154 | %define _noautoprovfiles %{_libdir}/%{name} | |
155 | ||
4c7e703c | 156 | # and as we don't provide them, don't require either |
18a7a80a | 157 | %define _noautoreq liblgpllibs.so libmozavcodec.so libmozavutil.so libmozgtk.so libmozjs.so libmozsandbox.so libxul.so |
c14d6140 | 158 | |
ea721d92 | 159 | %description |
54d6358a JR |
160 | Firefox is an open-source web browser, designed for standards |
161 | compliance, performance and portability. | |
162 | ||
163 | %description -l hu.UTF-8 | |
164 | Firefox egy nyílt forrású webböngésző, hatékonyságra és | |
165 | hordozhatóságra tervezve. | |
ea721d92 | 166 | |
eace6cdf | 167 | %description -l pl.UTF-8 |
54d6358a JR |
168 | Firefox jest przeglądarką WWW rozpowszechnianą zgodnie z ideami |
169 | ruchu otwartego oprogramowania oraz tworzoną z myślą o zgodności ze | |
170 | standardami, wydajnością i przenośnością. | |
171 | ||
ea721d92 | 172 | %prep |
54d6358a JR |
173 | %setup -q |
174 | ||
175 | # avoid using included headers (-I. is before HUNSPELL_CFLAGS) | |
176 | %{__rm} extensions/spellcheck/hunspell/src/{*.hxx,hunspell.h} | |
177 | # hunspell needed for factory including mozHunspell.h | |
178 | echo 'LOCAL_INCLUDES += $(MOZ_HUNSPELL_CFLAGS)' >> extensions/spellcheck/src/Makefile.in | |
179 | ||
f0a96e4f JR |
180 | %patch0 -p2 |
181 | %patch1 -p1 | |
182 | %patch2 -p2 | |
54d6358a | 183 | %patch4 -p1 |
f0a96e4f JR |
184 | %patch5 -p1 |
185 | %patch6 -p2 | |
d1eea1c3 | 186 | %patch7 -p1 |
54d6358a | 187 | %patch8 -p2 |
3c8a14c2 | 188 | %patch9 -p1 |
f0a96e4f | 189 | %patch10 -p2 |
54d6358a | 190 | |
89390b0e JB |
191 | %{__sed} -i -e '1s,/usr/bin/env python,%{__python},' xpcom/typelib/xpt/tools/xpt.py xpcom/idl-parser/xpidl/xpidl.py |
192 | ||
54d6358a | 193 | %if %{with pgo} |
89390b0e | 194 | %{__sed} -i -e 's@__BROWSER_PATH__@"../../dist/bin/firefox-bin"@' build/automation.py.in |
54d6358a | 195 | %endif |
29b16068 | 196 | |
ea721d92 | 197 | %build |
54d6358a | 198 | cp -p %{_datadir}/automake/config.* build/autoconf |
52befddb | 199 | |
08ccc3c5 JB |
200 | cat << 'EOF' > .mozconfig |
201 | . $topsrcdir/browser/config/mozconfig | |
52befddb | 202 | |
2620301e | 203 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-%{_target_cpu} |
2620301e | 204 | |
f37c2ce5 | 205 | # Options for 'configure' (same as command-line options). |
c5cd9be2 | 206 | ac_add_options --host=%{_target_platform} |
52befddb | 207 | ac_add_options --prefix=%{_prefix} |
cf471ce5 | 208 | %if %{?debug:1}0 |
f37c2ce5 | 209 | ac_add_options --disable-optimize |
52befddb | 210 | ac_add_options --enable-debug |
211 | ac_add_options --enable-debug-modules | |
f37c2ce5 ER |
212 | ac_add_options --enable-debugger-info-modules |
213 | ac_add_options --enable-crash-on-assert | |
52befddb | 214 | %else |
215 | ac_add_options --disable-debug | |
70982d6c | 216 | ac_add_options --enable-optimize="%{rpmcflags} -Os" |
52befddb | 217 | %endif |
d97ddc70 | 218 | ac_add_options --disable-strip |
c5cd9be2 | 219 | ac_add_options --disable-install-strip |
52befddb | 220 | %if %{with tests} |
221 | ac_add_options --enable-tests | |
a9334f16 | 222 | ac_add_options --enable-mochitest |
c4f9bb37 | 223 | %else |
54d6358a JR |
224 | %if %{with pgo} |
225 | ac_add_options --enable-tests | |
226 | %else | |
52befddb | 227 | ac_add_options --disable-tests |
54d6358a | 228 | %endif |
c4f9bb37 | 229 | %endif |
c5cd9be2 | 230 | ac_add_options --disable-crashreporter |
c5cd9be2 | 231 | ac_add_options --disable-gconf |
f37c2ce5 | 232 | ac_add_options --disable-gnomeui |
a9334f16 | 233 | ac_add_options --disable-necko-wifi |
f37c2ce5 | 234 | ac_add_options --disable-updater |
7ab9d54c | 235 | ac_add_options --disable-rust |
7d0bd05d | 236 | ac_add_options --enable-alsa |
a9334f16 JB |
237 | ac_add_options --enable-chrome-format=omni |
238 | ac_add_options --enable-default-toolkit=%{?with_gtk3:cairo-gtk3}%{!?with_gtk3:cairo-gtk2} | |
08ccc3c5 | 239 | ac_add_options --enable-extensions=default |
0fca8d8d | 240 | ac_add_options --enable-gio |
c5cd9be2 | 241 | ac_add_options --enable-readline |
a9334f16 | 242 | ac_add_options --enable-safe-browsing |
08ccc3c5 | 243 | %{?with_shared_js:ac_add_options --enable-shared-js} |
2a673919 | 244 | ac_add_options --enable-startup-notification |
52befddb | 245 | ac_add_options --enable-system-cairo |
c5cd9be2 | 246 | ac_add_options --enable-system-ffi |
d97ddc70 | 247 | ac_add_options --enable-system-hunspell |
dfdf0ac8 | 248 | ac_add_options --enable-system-sqlite |
c5cd9be2 | 249 | ac_add_options --enable-url-classifier |
89390b0e | 250 | %{?with_official:ac_add_options --enable-official-branding} |
c5cd9be2 | 251 | ac_add_options --with-default-mozilla-five-home=%{_libdir}/%{name} |
f37c2ce5 | 252 | ac_add_options --with-distribution-id=org.pld-linux |
2a673919 | 253 | ac_add_options --with-pthreads |
d97ddc70 | 254 | ac_add_options --with-system-bz2 |
edc68de2 | 255 | ac_add_options --with%{!?with_system_icu:out}-system-icu |
2620301e | 256 | ac_add_options --with-system-jpeg |
0fca8d8d JB |
257 | ac_add_options --with-system-libevent |
258 | ac_add_options --with-system-libvpx | |
52befddb | 259 | ac_add_options --with-system-nspr |
f37c2ce5 | 260 | ac_add_options --with-system-nss |
f37c2ce5 | 261 | ac_add_options --with-system-png |
2620301e | 262 | ac_add_options --with-system-zlib |
c5cd9be2 | 263 | ac_add_options --with-x |
52befddb | 264 | EOF |
33f81726 | 265 | |
54d6358a JR |
266 | %if %{with pgo} |
267 | D=$(( RANDOM % (200 - 100 + 1 ) + 5 )) | |
268 | /usr/bin/Xvfb :${D} & | |
269 | XVFB_PID=$! | |
270 | [ -n "$XVFB_PID" ] || exit 1 | |
271 | export DISPLAY=:${D} | |
272 | %{__make} -j1 -f client.mk profiledbuild \ | |
f0a96e4f | 273 | AUTOCONF=/usr/bin/autoconf2_13 \ |
54d6358a | 274 | DESTDIR=obj-%{_target_cpu}/dist \ |
54d6358a JR |
275 | MOZ_MAKE_FLAGS="%{_smp_mflags}" |
276 | kill $XVFB_PID | |
277 | %else | |
08ccc3c5 | 278 | %{__make} -j1 -f client.mk build \ |
f0a96e4f | 279 | AUTOCONF=/usr/bin/autoconf2_13 \ |
08ccc3c5 | 280 | MOZ_MAKE_FLAGS="%{_smp_mflags}" |
54d6358a | 281 | %endif |
ea721d92 | 282 | |
283 | %install | |
284 | rm -rf $RPM_BUILD_ROOT | |
45f27404 | 285 | install -d \ |
f37c2ce5 | 286 | $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}} \ |
c5cd9be2 JB |
287 | $RPM_BUILD_ROOT%{_desktopdir} \ |
288 | $RPM_BUILD_ROOT%{_datadir}/%{name}/browser \ | |
54d6358a | 289 | $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/plugins \ |
54d6358a | 290 | $RPM_BUILD_ROOT%{_includedir}/%{name} \ |
54d6358a | 291 | $RPM_BUILD_ROOT%{_pkgconfigdir} |
75e09104 | 292 | |
c5cd9be2 | 293 | %browser_plugins_add_browser %{name} -p %{_libdir}/%{name}/browser/plugins |
8bc15110 | 294 | |
54d6358a | 295 | cd obj-%{_target_cpu} |
76f62688 | 296 | %{__make} -C browser/installer stage-package \ |
d541162e | 297 | DESTDIR=$RPM_BUILD_ROOT \ |
c5cd9be2 | 298 | installdir=%{_libdir}/%{name} \ |
f37c2ce5 | 299 | PKG_SKIP_STRIP=1 |
ea721d92 | 300 | |
54d6358a | 301 | cp -aL dist/firefox/* $RPM_BUILD_ROOT%{_libdir}/%{name}/ |
0fca8d8d | 302 | |
f86547d4 | 303 | # move arch independant ones to datadir |
c5cd9be2 | 304 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/chrome $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/chrome |
8e79a8c3 | 305 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/extensions $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/extensions |
c5cd9be2 | 306 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/icons $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/icons |
c5cd9be2 JB |
307 | mv $RPM_BUILD_ROOT%{_libdir}/%{name}/defaults $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults |
308 | mv $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults/{pref,preferences} | |
d97ddc70 | 309 | |
c5cd9be2 JB |
310 | ln -s ../../../share/%{name}/browser/chrome $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/chrome |
311 | ln -s ../../../share/%{name}/browser/defaults $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/defaults | |
8e79a8c3 | 312 | ln -s ../../../share/%{name}/browser/extensions $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/extensions |
c5cd9be2 | 313 | ln -s ../../../share/%{name}/browser/icons $RPM_BUILD_ROOT%{_libdir}/%{name}/browser/icons |
f86547d4 | 314 | |
f1613d3d | 315 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
4d687af8 ER |
316 | ln -s %{_datadir}/myspell $RPM_BUILD_ROOT%{_libdir}/%{name}/dictionaries |
317 | ||
54d6358a JR |
318 | sed 's,@LIBDIR@,%{_libdir},' %{SOURCE4} > $RPM_BUILD_ROOT%{_bindir}/firefox |
319 | chmod 755 $RPM_BUILD_ROOT%{_bindir}/firefox | |
ea721d92 | 320 | |
c5cd9be2 | 321 | # install icons and desktop file |
89390b0e | 322 | for i in 16 32 48 %{?with_official:22 24 256}; do |
c5cd9be2 | 323 | install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps |
89390b0e | 324 | cp -a ../browser/branding/%{!?with_official:un}official/default${i}.png \ |
54d6358a | 325 | $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${i}x${i}/apps/firefox.png |
c5cd9be2 JB |
326 | done |
327 | ||
96ef4151 | 328 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
ea721d92 | 329 | |
c5cd9be2 JB |
330 | # install our settings |
331 | %if "%{pld_release}" == "ac" | |
332 | cp -a %{SOURCE6} $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults/preferences/vendor.js | |
333 | %else | |
334 | cp -a %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}/browser/defaults/preferences/vendor.js | |
335 | %endif | |
336 | ||
f37c2ce5 | 337 | cat << 'EOF' > $RPM_BUILD_ROOT%{_sbindir}/%{name}-chrome+xpcom-generate |
6d77929c | 338 | #!/bin/sh |
050f03d2 | 339 | umask 022 |
c5cd9be2 | 340 | rm -f %{_libdir}/%{name}/browser/components/{compreg,xpti}.dat |
3eeab518 | 341 | |
f37c2ce5 ER |
342 | # it attempts to touch files in $HOME/.mozilla |
343 | # beware if you run this with sudo!!! | |
344 | export HOME=$(mktemp -d) | |
345 | # also TMPDIR could be pointing to sudo user's homedir | |
346 | unset TMPDIR TMP || : | |
3eeab518 | 347 | |
6162f349 | 348 | %{_libdir}/%{name}/firefox -register |
3eeab518 | 349 | |
56143477 | 350 | rm -rf $HOME |
6d77929c | 351 | EOF |
82f606de | 352 | chmod 755 $RPM_BUILD_ROOT%{_sbindir}/%{name}-chrome+xpcom-generate |
3eeab518 | 353 | |
6d77929c JB |
354 | %clean |
355 | rm -rf $RPM_BUILD_ROOT | |
3eeab518 | 356 | |
6d77929c | 357 | %post |
f37c2ce5 | 358 | %{_sbindir}/%{name}-chrome+xpcom-generate |
4d9eecad | 359 | %update_browser_plugins |
c5cd9be2 | 360 | %update_icon_cache hicolor |
96ef4151 | 361 | %update_desktop_database |
4d9eecad ER |
362 | |
363 | %postun | |
364 | if [ "$1" = 0 ]; then | |
365 | %update_browser_plugins | |
c5cd9be2 | 366 | %update_icon_cache hicolor |
4d9eecad | 367 | fi |
ea0245e6 | 368 | |
ea721d92 | 369 | %files |
370 | %defattr(644,root,root,755) | |
f37c2ce5 | 371 | %attr(755,root,root) %{_bindir}/%{name} |
f37c2ce5 ER |
372 | %attr(755,root,root) %{_sbindir}/%{name}-chrome+xpcom-generate |
373 | ||
54d6358a JR |
374 | %{_desktopdir}/firefox.desktop |
375 | %{_iconsdir}/hicolor/*/apps/firefox.png | |
c5cd9be2 | 376 | |
4d9eecad ER |
377 | # browser plugins v2 |
378 | %{_browserpluginsconfdir}/browsers.d/%{name}.* | |
379 | %config(noreplace) %verify(not md5 mtime size) %{_browserpluginsconfdir}/blacklist.d/%{name}.*.blacklist | |
380 | ||
c5cd9be2 | 381 | %dir %{_libdir}/%{name}/browser |
c5cd9be2 | 382 | %dir %{_libdir}/%{name}/browser/plugins |
54d6358a | 383 | %dir %{_libdir}/%{name}/browser/features |
c5cd9be2 JB |
384 | |
385 | %dir %{_datadir}/%{name} | |
386 | %dir %{_datadir}/%{name}/browser | |
8e79a8c3 | 387 | %dir %{_datadir}/%{name}/browser/extensions |
c5cd9be2 JB |
388 | %{_datadir}/%{name}/browser/chrome |
389 | %{_datadir}/%{name}/browser/defaults | |
390 | %{_datadir}/%{name}/browser/icons | |
2a673919 | 391 | |
c5cd9be2 | 392 | # symlinks |
8e79a8c3 | 393 | %{_libdir}/%{name}/browser/extensions |
c5cd9be2 JB |
394 | %{_libdir}/%{name}/browser/chrome |
395 | %{_libdir}/%{name}/browser/icons | |
c5cd9be2 | 396 | %{_libdir}/%{name}/browser/defaults |
2a673919 | 397 | |
c5cd9be2 JB |
398 | %attr(755,root,root) %{_libdir}/%{name}/firefox |
399 | %attr(755,root,root) %{_libdir}/%{name}/firefox-bin | |
400 | %attr(755,root,root) %{_libdir}/%{name}/run-mozilla.sh | |
2a673919 | 401 | %{_libdir}/%{name}/application.ini |
8323a6a7 | 402 | %{_libdir}/%{name}/chrome.manifest |
c5cd9be2 JB |
403 | %{_libdir}/%{name}/browser/blocklist.xml |
404 | %{_libdir}/%{name}/browser/chrome.manifest | |
c5cd9be2 | 405 | # the signature of the default theme |
54d6358a | 406 | %{_datadir}/%{name}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi |
c5cd9be2 | 407 | %{_libdir}/%{name}/browser/omni.ja |
0fca8d8d | 408 | |
a7284ee8 | 409 | %{_libdir}/%{name}/browser/features/aushelper@mozilla.org.xpi |
b1598639 JR |
410 | %{_libdir}/%{name}/browser/features/e10srollout@mozilla.org.xpi |
411 | %{_libdir}/%{name}/browser/features/firefox@getpocket.com.xpi | |
f632a004 | 412 | %{_libdir}/%{name}/browser/features/webcompat@mozilla.org.xpi |
54d6358a | 413 | |
82f606de | 414 | %attr(755,root,root) %{_libdir}/%{name}/plugin-container |
f99152f1 | 415 | %{_libdir}/%{name}/dictionaries |
82f4f456 | 416 | |
a7284ee8 JR |
417 | %dir %{_libdir}/%{name}/fonts |
418 | %{_libdir}/%{name}/fonts/EmojiOneMozilla.ttf | |
419 | ||
82f4f456 JB |
420 | %dir %{_libdir}/%{name}/gmp-clearkey |
421 | %dir %{_libdir}/%{name}/gmp-clearkey/0.1 | |
76f62688 | 422 | %{_libdir}/%{name}/gmp-clearkey/0.1/manifest.json |
82f4f456 | 423 | %attr(755,root,root) %{_libdir}/%{name}/gmp-clearkey/0.1/libclearkey.so |
76f62688 | 424 | %{!?with_system_icu:%{_libdir}/%{name}/icudt58l.dat} |
54d6358a | 425 | |
54d6358a JR |
426 | %dir %{_libdir}/%{name} |
427 | %{_libdir}/%{name}/platform.ini | |
428 | %{?with_shared_js:%attr(755,root,root) %{_libdir}/%{name}/libmozjs.so} | |
429 | %attr(755,root,root) %{_libdir}/%{name}/liblgpllibs.so | |
430 | %attr(755,root,root) %{_libdir}/%{name}/libxul.so | |
b1598639 JR |
431 | %attr(755,root,root) %{_libdir}/%{name}/libmozavcodec.so |
432 | %attr(755,root,root) %{_libdir}/%{name}/libmozavutil.so | |
8323a6a7 | 433 | %attr(755,root,root) %{_libdir}/%{name}/libmozsandbox.so |
54d6358a JR |
434 | %{_libdir}/%{name}/dependentlibs.list |
435 | %{_libdir}/%{name}/omni.ja | |
4264118a JR |
436 | %if %{with gtk3} |
437 | %dir %{_libdir}/%{name}/gtk2 | |
438 | %attr(755,root,root) %{_libdir}/%{name}/gtk2/libmozgtk.so | |
439 | %attr(755,root,root) %{_libdir}/%{name}/libmozgtk.so | |
440 | %endif |