83e8010
# Set to true if it's going to be submitted as update.
f314ac3
%global release_build     0
0de712c
%global debug_build       0
a45c531
%global build_with_clang  0
6e9b476
%global build_with_asan   0
83e8010
e9028b3
# disable arm builds with gcc 10 until bug 94050 is backported to Fedora
e9028b3
%if 0%{?fedora} > 31
b92aed4
ExcludeArch: armv7hl
e9028b3
%endif
4c135f9
# Disabled due to https://pagure.io/fedora-infrastructure/issue/7581
4b28510
ExcludeArch: s390x
be267b4
# Disabled due to linker failures
be267b4
ExcludeArch: aarch64
00f4c03
3c34746
%global enable_mozilla_crashreporter 0
b7c36a7
%ifarch x86_64 %{ix86}
b7c36a7
%global enable_mozilla_crashreporter 1
3c34746
%endif
3c34746
%if %{build_with_asan}
b7c36a7
%global enable_mozilla_crashreporter 0
b7c36a7
%endif
4feb74e
%if 0%{?flatpak}
4feb74e
%global enable_mozilla_crashreporter 0
4feb74e
%endif
b7c36a7
425b774
%global system_nss        1
5ae399b
%global system_ffi        1
558ad06
%ifarch armv7hl
558ad06
%global system_libvpx     1
558ad06
%else
c685c9d
%global system_libvpx     0
558ad06
%endif
5ae399b
%global hardened_build    1
5ae399b
%global system_jpeg       1
d144fd6
%global run_tests         0
96ac021
%global disable_elfhack   1
d144fd6
%global use_bundled_cbindgen  1
c5559a4
# Build PGO+LTO on x86_64 and aarch64 only due to build issues
c5559a4
# on other arches.
c5559a4
%ifarch x86_64 aarch64
83e8010
%if %{release_build}
234c40b
%global build_with_pgo    1
83e8010
%else
83e8010
%global build_with_pgo    0
ddb6e50
%endif
101ab24
# Build PGO builds on Wayland backend
101ab24
%global pgo_wayland       0
d35dd9e
%endif
7c6cd89
%if 0%{?fedora} > 30
d37312c
%global wayland_backend_default 1
d37312c
%endif
c20bee6
%if 0%{?flatpak}
c20bee6
%global wayland_backend_default 1
38e1aa5
%global build_with_pgo    0
c20bee6
%endif
beb0cf3
# Big endian platforms
40bd675
%ifarch ppc64 s390x
59fb3e7
%global big_endian        1
beb0cf3
%endif
Martin Stransky ab8ce9b
558ad06
%ifarch armv7hl
558ad06
%define _unpackaged_files_terminate_build 0
558ad06
%global debug_package %{nil}
558ad06
%endif
558ad06
d144fd6
%if 0%{?build_with_pgo}
d144fd6
%global use_xvfb          1
d144fd6
%global build_tests       1
d144fd6
%endif
d144fd6
297c523
%if 0%{?run_tests}
d144fd6
%global use_xvfb          1
d144fd6
%global build_tests       1
d144fd6
%endif
13bd23e
59fb3e7
%global default_bookmarks_file  %{_datadir}/bookmarks/default-bookmarks.html
59fb3e7
%global firefox_app_id  \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
875d0c0
# Minimal required versions
Martin Stransky 48d8fda
%global cairo_version 1.13.1
875d0c0
%global freetype_version 2.1.9
875d0c0
%global libnotify_version 0.7.0
de1fb9d
%if %{?system_libvpx}
558ad06
%global libvpx_version 1.8.2
de1fb9d
%endif
875d0c0
875d0c0
%if %{?system_nss}
234c40b
%global nspr_version 4.21
49bb7a9
%global nspr_build_version %{nspr_version}
425b774
%global nss_version 3.51.1
49bb7a9
%global nss_build_version %{nss_version}
875d0c0
%endif
08ceb32
d2cc793
%global mozappdir     %{_libdir}/%{name}
0a58c3e
%global mozappdirdev  %{_libdir}/%{name}-devel-%{version}
Christopher Aillon 8cc5a04
%global langpackdir   %{mozappdir}/langpacks
9c46b2a
%global tarballdir    firefox-%{version}
e1fa01e
59fb3e7
%global official_branding       1
731d588
731d588
%bcond_without langpacks
Martin Stransky fa428ed
83e8010
%if !%{release_build}
9c047ca
%global pre_tag .npgo
83e8010
%endif
0de712c
%if %{build_with_clang}
0de712c
%global pre_tag .clang
0de712c
%global build_with_pgo    0
0de712c
%endif
0f0618f
%if %{build_with_asan}
0f0618f
%global pre_tag .asan
0f0618f
%global build_with_pgo    0
0f0618f
%endif
19cba2b
%if !%{system_nss}
19cba2b
%global nss_tag .nss
19cba2b
%endif
83e8010
3f0fba2
Summary:        Mozilla Firefox Web browser
cvsdist cac9c1c
Name:           firefox
c9d361c
Version:        76.0.1
c9d361c
Release:        1%{?nss_tag}%{?dist}
Martin Stransky dc35dec
URL:            https://www.mozilla.org/firefox/
31f0244
License:        MPLv1.1 or GPLv2+ or LGPLv2+
41edb62
Source0:        https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz
731d588
%if %{with langpacks}
c9d361c
Source1:        firefox-langpacks-%{version}%{?pre_version}-20200508.tar.xz
5fe54d7
%endif
5ae399b
Source2:        cbindgen-vendor.tar.xz
fa0cf49
Source10:       firefox-mozconfig
97f1826
Source12:       firefox-redhat-default-prefs.js
2ca6e87
Source20:       firefox.desktop
2ca6e87
Source21:       firefox.sh.in
1fb0c4e
Source23:       firefox.1
df0172c
Source24:       mozilla-api-key
06c81c9
Source25:       firefox-symbolic.svg
e1c3854
Source26:       distribution.ini
b41c541
Source27:       google-api-key
c45606f
Source28:       firefox-wayland.sh.in
dd0eb4d
Source29:       firefox-wayland.desktop
d37312c
Source30:       firefox-x11.sh.in
d37312c
Source31:       firefox-x11.desktop
30eb43b
Source32:       node-stdout-nonblocking-wrapper
c9caff1
Source33:       firefox.appdata.xml.in
8b1630c
Source34:       firefox-search-provider.ini
3f0fba2
87559eb
# Build patches
875d0c0
Patch3:         mozilla-build-arm.patch
Martin Stransky 013dc85
Patch25:        rhbz-1219542-s390-build.patch
beb0cf3
Patch26:        build-icu-big-endian.patch
422c357
Patch32:        build-rust-ppc64le.patch
f55c02e
Patch35:        build-ppc-jit.patch
49bb7a9
# Always feel lucky for unsupported platforms:
49bb7a9
# https://bugzilla.mozilla.org/show_bug.cgi?id=1347128
49bb7a9
Patch37:        build-jit-atomic-always-lucky.patch
bee2fa8
# Fixing missing cacheFlush when JS_CODEGEN_NONE is used (s390x)
bee2fa8
Patch38:        build-cacheFlush-missing.patch
16c3289
Patch40:        build-aarch64-skia.patch
13bd23e
Patch41:        build-disable-elfhack.patch
bc42e3d
Patch44:        build-arm-libopus.patch
20c032f
#Patch45:        build-disable-multijobs-rust.patch
a534d9f
Patch46:        firefox-nss-version.patch
f314ac3
Patch47:        fedora-shebang-build.patch
558ad06
Patch48:        build-arm-wasm.patch
558ad06
Patch49:        build-arm-libaom.patch
96744c2
#Patch50:        Bug-1610814-Fix-NEON-compile-error-with-gcc-and-RGB-.patch
875d0c0
875d0c0
# Fedora specific patches
2fb05a0
Patch215:        firefox-enable-addons.patch
Martin Stransky 537c1d3
Patch219:        rhbz-1173156.patch
1c8e85a
Patch221:        firefox-fedora-ua.patch
Martin Stransky 4bed479
Patch224:        mozilla-1170092.patch
402aa35
#ARM run-time patch
402aa35
Patch226:        rhbz-1354671.patch
66f0419
Patch227:        firefox-locale-debug.patch
8b1630c
Patch239:        mozilla-gnome-shell-search-provider.patch
c72871d
Patch240:        mozilla-gnome-shell-search-provider-icons.patch
7f42be8
Patch241:        kiosk-workaround.patch
5c39de8
Patch242:        mozilla-gnome-shell-search-fixes.patch
4c3c3e6
5fe54d7
# Upstream patches
6a499c9
Patch402:        mozilla-1196777.patch
6aafac4
Patch412:        mozilla-1337988.patch
3d70da7
Patch415:        Bug-1238661---fix-mozillaSignalTrampoline-to-work-.patch
3430410
Patch417:        bug1375074-save-restore-x28.patch
b686f27
Patch422:        mozilla-1580174-webrtc-popup.patch
86b963d
dd0eb4d
# Wayland specific upstream patches
062a42c
Patch574:        firefox-pipewire.patch
dd0eb4d
cb1655c
#VA-API patches
cb1655c
Patch579:        mozilla-1625431.patch
cb1655c
Patch580:        mozilla-1628690.patch
cb1655c
Patch581:        mozilla-1630754.patch
cb1655c
Patch582:        mozilla-1619543.patch
cb1655c
Patch583:        mozilla-1632059.patch
c960c03
Patch584:        firefox-disable-ffvpx-with-vapi.patch
cb1655c
8fe69a3
# PGO/LTO patches
8fe69a3
Patch600:        pgo.patch
8fe69a3
Patch601:        mozilla-1516081.patch
8fe69a3
Patch602:        mozilla-1516803.patch
6cd2d43
875d0c0
%if %{?system_nss}
4012bb8
BuildRequires:  pkgconfig(nspr) >= %{nspr_version}
4012bb8
BuildRequires:  pkgconfig(nss) >= %{nss_version}
875d0c0
BuildRequires:  nss-static >= %{nss_version}
875d0c0
%endif
4012bb8
BuildRequires:  pkgconfig(libpng)
Martin Stransky 916aeae
%if %{?system_jpeg}
875d0c0
BuildRequires:  libjpeg-devel
Martin Stransky 916aeae
%endif
875d0c0
BuildRequires:  zip
875d0c0
BuildRequires:  bzip2-devel
4012bb8
BuildRequires:  pkgconfig(zlib)
4012bb8
BuildRequires:  pkgconfig(gtk+-3.0)
4012bb8
BuildRequires:  pkgconfig(gtk+-2.0)
4012bb8
BuildRequires:  pkgconfig(krb5)
4012bb8
BuildRequires:  pkgconfig(pango)
4012bb8
BuildRequires:  pkgconfig(freetype2) >= %{freetype_version}
4012bb8
BuildRequires:  pkgconfig(xt)
4012bb8
BuildRequires:  pkgconfig(xrender)
4012bb8
BuildRequires:  pkgconfig(libstartup-notification-1.0)
4012bb8
BuildRequires:  pkgconfig(libnotify) >= %{libnotify_version}
4012bb8
BuildRequires:  pkgconfig(dri)
4012bb8
BuildRequires:  pkgconfig(libcurl)
f036746
BuildRequires:  dbus-glib-devel
de1fb9d
%if %{?system_libvpx}
83f478f
BuildRequires:  libvpx-devel >= %{libvpx_version}
de1fb9d
%endif
875d0c0
BuildRequires:  autoconf213
4012bb8
BuildRequires:  pkgconfig(libpulse)
e0dccae
BuildRequires:  yasm
c9d7ca7
BuildRequires:  llvm
ee6f0ae
BuildRequires:  llvm-devel
e958342
BuildRequires:  clang
ce10bbd
BuildRequires:  clang-libs
7da8add
%if 0%{?build_with_clang}
0df3489
BuildRequires:  lld
0df3489
%endif
7a8ced7
7a8ced7
%if 0%{?fedora} < 32
d37312c
BuildRequires:  pipewire-devel
7a8ced7
%else
30ea1da
BuildRequires:  pipewire0.2-devel
7a8ced7
%endif
7a8ced7
5ae399b
%if !0%{?use_bundled_cbindgen}
436ab86
BuildRequires:  cbindgen
5ae399b
%endif
f0e2615
BuildRequires:  nodejs
995e388
BuildRequires:  nasm >= 1.13
c3fd3d6
BuildRequires:  libappstream-glib
875d0c0
875d0c0
Requires:       mozilla-filesystem
49bb7a9
Requires:       p11-kit-trust
875d0c0
%if %{?system_nss}
875d0c0
Requires:       nspr >= %{nspr_build_version}
875d0c0
Requires:       nss >= %{nss_build_version}
875d0c0
%endif
14d5b83
BuildRequires:  python2-devel
10d0e02
%if !0%{?flatpak}
b30b5a2
Requires:       u2f-hidraw-policy
016e602
%endif
Kai Engert 23da238
BuildRequires:  nss-devel >= 3.29.1-2.1
b72d36d
Requires:       nss >= 3.48.0
84aecf8
cvsdist cac9c1c
BuildRequires:  desktop-file-utils
10d0e02
%if !0%{?flatpak}
91b8714
BuildRequires:  system-bookmarks
332c921
%endif
875d0c0
%if %{?system_ffi}
4012bb8
BuildRequires:  pkgconfig(libffi)
875d0c0
%endif
2c1570e
d144fd6
%if 0%{?use_xvfb}
c3e1bae
BuildRequires:  xorg-x11-server-Xvfb
101ab24
%endif
101ab24
%if 0%{?pgo_wayland}
5b43bf2
BuildRequires:  mutter
c3e1bae
%endif
71f7c4e
BuildRequires:  rust
8165b81
BuildRequires:  cargo
5749081
BuildRequires:  clang-devel
ba707c4
%if %{build_with_asan}
ba707c4
BuildRequires:  libasan
ba707c4
BuildRequires:  libasan-static
ba707c4
%endif
c3e1bae
461eee5
BuildRequires:  perl-interpreter
461eee5
565a364
Obsoletes:      mozilla <= 37:1.7.13
cvsdist cac9c1c
Provides:       webclient
cvsdist cac9c1c
cvsdist cac9c1c
%description
cvsdist cac9c1c
Mozilla Firefox is an open-source web browser, designed for standards
cvsdist cac9c1c
compliance, performance and portability.
c3e1bae
875d0c0
%if %{enable_mozilla_crashreporter}
875d0c0
%global moz_debug_prefix %{_prefix}/lib/debug
875d0c0
%global moz_debug_dir %{moz_debug_prefix}%{mozappdir}
875d0c0
%global uname_m %(uname -m)
875d0c0
%global symbols_file_name %{name}-%{version}.en-US.%{_os}-%{uname_m}.crashreporter-symbols.zip
875d0c0
%global symbols_file_path %{moz_debug_dir}/%{symbols_file_name}
875d0c0
%global _find_debuginfo_opts -p %{symbols_file_path} -o debugcrashreporter.list
875d0c0
%global crashreporter_pkg_name mozilla-crashreporter-%{name}-debuginfo
875d0c0
%package -n %{crashreporter_pkg_name}
875d0c0
Summary: Debugging symbols used by Mozilla's crash reporter servers
875d0c0
%description -n %{crashreporter_pkg_name}
c3e1bae
This package provides debug information for Firefox, for use by
875d0c0
Mozilla's crash reporter servers.  If you are trying to locally
875d0c0
debug %{name}, you want to install %{name}-debuginfo instead.
875d0c0
%files -n %{crashreporter_pkg_name} -f debugcrashreporter.list
875d0c0
%endif
cvsdist cac9c1c
6cd2d43
%if 0%{?wayland_backend_default}
d37312c
%package x11
d37312c
Summary: Firefox X11 launcher.
d37312c
Requires: %{name}
d37312c
%description x11
d37312c
The firefox-x11 package contains launcher and desktop file
3a864e5
to run Firefox explicitly on X11.
d37312c
%files x11
d37312c
%{_bindir}/firefox-x11
d37312c
%{_datadir}/applications/firefox-x11.desktop
3a864e5
%endif
3a864e5
e8f1982
%package wayland
e8f1982
Summary: Firefox Wayland launcher.
e8f1982
Requires: %{name}
e8f1982
%description wayland
e8f1982
The firefox-wayland package contains launcher and desktop file
3a864e5
to run Firefox explicitly on Wayland.
0071462
%files wayland
e8f1982
%{_bindir}/firefox-wayland
e8f1982
%{_datadir}/applications/firefox-wayland.desktop
e8f1982
c3e1bae
%if %{run_tests}
c3e1bae
%global testsuite_pkg_name mozilla-%{name}-testresults
c3e1bae
%package -n %{testsuite_pkg_name}
c3e1bae
Summary: Results of testsuite
c3e1bae
%description -n %{testsuite_pkg_name}
c3e1bae
This package contains results of tests executed during build.
c3e1bae
%files -n %{testsuite_pkg_name}
c3e1bae
/test_results
c3e1bae
%endif
c3e1bae
cvsdist cac9c1c
#---------------------------------------------------------------------
cvsdist cac9c1c
cvsdist cac9c1c
%prep
9255105
%setup -q -n %{tarballdir}
fa0cf49
51460be
# Build patches, can't change backup suffix from default because during build
6ffc9e1
# there is a compare of config and js/config directories and .orig suffix is
51460be
# ignored during this compare.
77ec8e7
6aafac4
Martin Stransky ebc5262
%ifarch s390
Martin Stransky 013dc85
%patch25 -p1 -b .rhbz-1219542-s390
Martin Stransky ebc5262
%endif
83e8010
#%patch37 -p1 -b .jit-atomic-lucky
2c91415
%patch40 -p1 -b .aarch64-skia
13bd23e
%if 0%{?disable_elfhack}
13bd23e
%patch41 -p1 -b .disable-elfhack
13bd23e
%endif
dba86ea
%patch3  -p1 -b .arm
bc42e3d
%patch44 -p1 -b .build-arm-libopus
20c032f
#%patch45 -p1 -b .build-disable-multijobs-rust
77e9ffc
# Patch for big endian platforms only
77e9ffc
%if 0%{?big_endian}
77e9ffc
%patch26 -p1 -b .icu
77e9ffc
%endif
425b774
#%patch46 -p1 -b .nss-version
f314ac3
%patch47 -p1 -b .fedora-shebang
558ad06
%patch48 -p1 -b .build-arm-wasm
558ad06
%patch49 -p1 -b .build-arm-libaom
96744c2
#%patch50 -p1 -b .build-arm-SwizzleNEON
Martin Stransky 5da2a1e
4c3c3e6
# Fedora patches
e96738d
%patch215 -p1 -b .addons
eec2ffa
%patch219 -p1 -b .rhbz-1173156
eec2ffa
%patch221 -p1 -b .fedora-ua
41edb62
%patch224 -p1 -b .1170092
402aa35
#ARM run-time patch
b4944e8
%ifarch aarch64
402aa35
%patch226 -p1 -b .1354671
b4944e8
%endif
66f0419
%patch227 -p1 -b .locale-debug
836d9a0
%patch239 -p1 -b .gnome-shell-search-provider
c72871d
%patch240 -p1 -b .gnome-shell-search-provider-icons
ccb5557
# Workaround for kiosk mode
ccb5557
# https://bugzilla.mozilla.org/show_bug.cgi?id=1594738
ccb5557
#%patch241 -p1 -b .kiosk-workaround
5c39de8
%patch242 -p1 -b .gnome-shell-search-fixes
5c39de8
6a499c9
%patch402 -p1 -b .1196777
3d70da7
%ifarch %{arm}
d37312c
%patch415 -p1 -b .1238661
3d70da7
%endif
41edb62
dd0eb4d
# Wayland specific upstream patches
062a42c
%patch574 -p1 -b .firefox-pipewire
dd0eb4d
cb1655c
%patch580 -p1 -b .mozilla-1628690
cb1655c
%patch582 -p1 -b .mozilla-1619543
cb1655c
%patch579 -p1 -b .mozilla-1625431
cb1655c
%patch581 -p1 -b .mozilla-1630754
cb1655c
%patch583 -p1 -b .mozilla-1632059
c960c03
%patch584 -p1 -b .firefox-disable-ffvpx-with-vapi
cb1655c
8fe69a3
# PGO patches
8fe69a3
%patch600 -p1 -b .pgo
b178223
#fix
b178223
#%patch601 -p1 -b .1516081
8fe69a3
%patch602 -p1 -b .1516803
6cd2d43
cvsdist cac9c1c
%{__rm} -f .mozconfig
2ca6e87
%{__cp} %{SOURCE10} .mozconfig
37e796d
echo "ac_add_options --enable-default-toolkit=cairo-gtk3-wayland" >> .mozconfig
fa0cf49
%if %{official_branding}
Martin Stransky fa428ed
echo "ac_add_options --enable-official-branding" >> .mozconfig
fa0cf49
%endif
df0172c
%{__cp} %{SOURCE24} mozilla-api-key
b41c541
%{__cp} %{SOURCE27} google-api-key
df0172c
0f0618f
echo "ac_add_options --prefix=\"%{_prefix}\"" >> .mozconfig
0f0618f
echo "ac_add_options --libdir=\"%{_libdir}\"" >> .mozconfig
0f0618f
875d0c0
%if %{?system_nss}
875d0c0
echo "ac_add_options --with-system-nspr" >> .mozconfig
875d0c0
echo "ac_add_options --with-system-nss" >> .mozconfig
875d0c0
%else
875d0c0
echo "ac_add_options --without-system-nspr" >> .mozconfig
875d0c0
echo "ac_add_options --without-system-nss" >> .mozconfig
875d0c0
%endif
0da741f
875d0c0
%if %{?system_ffi}
875d0c0
echo "ac_add_options --enable-system-ffi" >> .mozconfig
875d0c0
%endif
cvsdist cac9c1c
5c40b1e
%ifarch %{arm}
5c40b1e
echo "ac_add_options --disable-elf-hack" >> .mozconfig
5c40b1e
%endif
5c40b1e
Martin Stransky ab8ce9b
%if %{?debug_build}
Martin Stransky ab8ce9b
echo "ac_add_options --enable-debug" >> .mozconfig
Martin Stransky ab8ce9b
echo "ac_add_options --disable-optimize" >> .mozconfig
Martin Stransky ab8ce9b
%else
59fb3e7
%global optimize_flags "none"
2967f73
%ifarch ppc64le aarch64
59fb3e7
%global optimize_flags "-g -O2"
2967f73
%endif
8f71944
%if %{optimize_flags} != "none"
2967f73
echo 'ac_add_options --enable-optimize=%{?optimize_flags}' >> .mozconfig
2967f73
%else
2967f73
echo 'ac_add_options --enable-optimize' >> .mozconfig
2967f73
%endif
2967f73
echo "ac_add_options --disable-debug" >> .mozconfig
0eb6042
%endif
Martin Stransky ab8ce9b
face401
# Second arches fail to start with jemalloc enabled
face401
%ifnarch %{ix86} x86_64
Martin Stransky ceafcaf
echo "ac_add_options --disable-jemalloc" >> .mozconfig
Martin Stransky ceafcaf
%endif
Martin Stransky ceafcaf
70d0d4a
%ifnarch %{ix86} x86_64 ppc64le
875d0c0
echo "ac_add_options --disable-webrtc" >> .mozconfig
875d0c0
%endif
875d0c0
58dcc79
%if !%{enable_mozilla_crashreporter}
58dcc79
echo "ac_add_options --disable-crashreporter" >> .mozconfig
58dcc79
%endif
58dcc79
d144fd6
%if 0%{?build_tests}
c3e1bae
echo "ac_add_options --enable-tests" >> .mozconfig
47ca906
%else
47ca906
echo "ac_add_options --disable-tests" >> .mozconfig
c3e1bae
%endif
c3e1bae
e0dccae
%if !%{?system_jpeg}
793ab22
echo "ac_add_options --without-system-jpeg" >> .mozconfig
793ab22
%else
793ab22
echo "ac_add_options --with-system-jpeg" >> .mozconfig
793ab22
%endif
793ab22
de1fb9d
%if %{?system_libvpx}
de1fb9d
echo "ac_add_options --with-system-libvpx" >> .mozconfig
de1fb9d
%else
de1fb9d
echo "ac_add_options --without-system-libvpx" >> .mozconfig
de1fb9d
%endif
de1fb9d
d372022
%ifarch s390 s390x
d372022
echo "ac_add_options --disable-ion" >> .mozconfig
d372022
%endif
d372022
a45c531
%if %{build_with_asan}
a45c531
echo "ac_add_options --enable-address-sanitizer" >> .mozconfig
a45c531
echo "ac_add_options --disable-jemalloc" >> .mozconfig
1eccbd6
%endif
a45c531
4fc5ebf
# We don't have recent nasm on Fedora 30...time to update to Fedora 31.
4fc5ebf
%if 0%{?fedora} < 31
a2c1b6c
echo "ac_add_options --disable-av1" >> .mozconfig
4fc5ebf
%else
a2c1b6c
echo "ac_add_options --enable-av1" >> .mozconfig
4fc5ebf
%endif
4fc5ebf
6f25514
# api keys full path
6f25514
echo "ac_add_options --with-mozilla-api-keyfile=`pwd`/mozilla-api-key" >> .mozconfig
f976942
# It seems that the api key we have is for the safe browsing only
f976942
#echo "ac_add_options --with-google-location-service-api-keyfile=`pwd`/google-api-key" >> .mozconfig
6f25514
echo "ac_add_options --with-google-safebrowsing-api-keyfile=`pwd`/google-api-key" >> .mozconfig
6f25514
30eb43b
echo 'export NODEJS="%{_buildrootdir}/bin/node-stdout-nonblocking-wrapper"' >> .mozconfig
30eb43b
3a5d008
# Remove executable bit to make brp-mangle-shebangs happy.
3a5d008
chmod -x third_party/rust/itertools/src/lib.rs
e83f26a
chmod a-x third_party/rust/gfx-backend-vulkan/src/*.rs
f314ac3
chmod a-x third_party/rust/gfx-hal/src/*.rs
3a5d008
0cf482f
#---------------------------------------------------------------------
0cf482f
0cf482f
%build
5ae399b
%if 0%{?use_bundled_cbindgen}
5ae399b
f2d7e6f
mkdir -p my_rust_vendor
f2d7e6f
cd my_rust_vendor
5ae399b
%{__tar} xf %{SOURCE2}
5ae399b
mkdir -p .cargo
5ae399b
cat > .cargo/config <
5ae399b
[source.crates-io]
5ae399b
replace-with = "vendored-sources"
5ae399b
5ae399b
[source.vendored-sources]
a65dd61
directory = "`pwd`"
5ae399b
EOL
5ae399b
5ae399b
env CARGO_HOME=.cargo cargo install cbindgen
5ae399b
export PATH=`pwd`/.cargo/bin:$PATH
5ae399b
%endif
a65dd61
cd -
5ae399b
beb0cf3
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
beb0cf3
%if 0%{?big_endian}
beb0cf3
  ./mach python intl/icu_sources_data.py .
beb0cf3
  ls -l config/external/icu/data
beb0cf3
  rm -f config/external/icu/data/icudt*l.dat
beb0cf3
%endif
beb0cf3
30eb43b
mkdir %{_buildrootdir}/bin || :
30eb43b
cp %{SOURCE32} %{_buildrootdir}/bin || :
30eb43b
ebf3d95
# Update the various config.guess to upstream release for aarch64 support
1a74061
# Do not update config.guess in the ./third_party/rust because that would break checksums
1a74061
find ./ -path ./third_party/rust -prune -o -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
ebf3d95
a9d101a
MOZ_OPT_FLAGS=$(echo "%{optflags}" | %{__sed} -e 's/-Wall//')
Martin Stransky d6ac14f
#rhbz#1037063
Martin Stransky 2b16776
# -Werror=format-security causes build failures when -Wno-format is explicitly given
Martin Stransky 2b16776
# for some sources
ded1820
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
ded1820
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
92092b1
%if 0%{?fedora} < 30
Martin Stransky 5ed9337
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
92092b1
%else
92092b1
# Workaround for mozbz#1531309
92092b1
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-Werror=format-security//')
92092b1
%endif
cb31356
%if 0%{?fedora} > 30
cb31356
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fpermissive"
cb31356
%endif
d9a1f10
%if %{?hardened_build}
ce65d65
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
Martin Stransky 5ed9337
%endif
Martin Stransky ab8ce9b
%if %{?debug_build}
Martin Stransky ab8ce9b
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
Martin Stransky ab8ce9b
%endif
3336f2b
%ifarch s390
Martin Stransky ceafcaf
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
62bcf95
# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
8f65c00
# overrides the -g1 from line above and breaks building on s390/arm
62bcf95
# (OOM when linking, rhbz#1238225)
62bcf95
export MOZ_DEBUG_FLAGS=" "
Martin Stransky ceafcaf
%endif
d4b2238
%ifarch %{arm} %{ix86}
3336f2b
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g0/')
3336f2b
export MOZ_DEBUG_FLAGS=" "
3336f2b
%endif
2b7d681
%if !0%{?build_with_clang}
295a18a
%ifarch s390 ppc aarch64 %{ix86}
Martin Stransky ceafcaf
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
Martin Stransky ceafcaf
%endif
295a18a
%ifarch %{arm}
558ad06
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--strip-debug"
fb09d0b
echo "ac_add_options --enable-linker=gold" >> .mozconfig
fb09d0b
%endif
2b7d681
%endif
c545b67
%if 0%{?flatpak}
c545b67
# Make sure the linker can find libraries in /app/lib64 as we don't use
c545b67
# __global_ldflags that normally sets this.
c545b67
MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -L%{_libdir}"
c545b67
%endif
ff83901
%ifarch %{arm} %{ix86}
0446d3b
export RUSTFLAGS="-Cdebuginfo=0"
e937845
%endif
0aece62
%if %{build_with_asan}
a45c531
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fsanitize=address -Dxmalloc=myxmalloc"
0f0618f
MOZ_LINK_FLAGS="$MOZ_LINK_FLAGS -fsanitize=address -ldl"
0aece62
%endif
0aece62
0aece62
%if !%{build_with_clang}
0f0618f
echo "export CFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
0f0618f
echo "export CXXFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
0f0618f
echo "export LDFLAGS=\"$MOZ_LINK_FLAGS\"" >> .mozconfig
0aece62
%endif
bfb255e
baa9207
%if 0%{?build_with_clang}
0f0618f
echo "export LLVM_PROFDATA=\"llvm-profdata\"" >> .mozconfig
0f0618f
echo "export AR=\"llvm-ar\"" >> .mozconfig
0f0618f
echo "export NM=\"llvm-nm\"" >> .mozconfig
0f0618f
echo "export RANLIB=\"llvm-ranlib\"" >> .mozconfig
0f0618f
echo "export --enable-linker=lld" >> .mozconfig
2ad016d
%else
0f0618f
echo "export CC=gcc" >> .mozconfig
0f0618f
echo "export CXX=g++" >> .mozconfig
0f0618f
echo "export AR=\"gcc-ar\"" >> .mozconfig
0f0618f
echo "export NM=\"gcc-nm\"" >> .mozconfig
0f0618f
echo "export RANLIB=\"gcc-ranlib\"" >> .mozconfig
2ad016d
%endif
4ed6b0c
%if 0%{?build_with_pgo}
2ad016d
echo "ac_add_options MOZ_PGO=1" >> .mozconfig
ddb6e50
echo "ac_add_options --enable-lto" >> .mozconfig
513a689
%endif
513a689
e3ec569
MOZ_SMP_FLAGS=-j1
4ed6b0c
# On x86_64 architectures, Mozilla can build up to 4 jobs at once in parallel,
Christopher Aillon 3c6d6f9
# however builds tend to fail on other arches when building in parallel.
bd27a67
%ifarch %{ix86}
4ed6b0c
[ -z "$RPM_BUILD_NCPUS" ] && \
4ed6b0c
     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
75daa97
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
4ed6b0c
%endif
d9c539f
%ifarch x86_64 ppc ppc64 ppc64le aarch64
e3ec569
[ -z "$RPM_BUILD_NCPUS" ] && \
e3ec569
     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
75daa97
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
75daa97
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
75daa97
[ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j8
2b6df96
%endif
2b6df96
0f0618f
echo "export MOZ_MAKE_FLAGS=\"$MOZ_SMP_FLAGS\"" >> .mozconfig
0f0618f
echo "export MOZ_SERVICES_SYNC=1" >> .mozconfig
0f0618f
echo "export STRIP=/bin/true" >> .mozconfig
d144fd6
%if 0%{?build_with_pgo}
101ab24
%if 0%{?pgo_wayland}
5b43bf2
xvfb-run mutter --wayland --nested &
5b43bf2
if [ -z "$WAYLAND_DISPLAY" ]; then
5b43bf2
  export WAYLAND_DISPLAY=wayland-0
5b43bf2
else
5b43bf2
  export WAYLAND_DISPLAY=wayland-1
5b43bf2
fi
101ab24
MOZ_ENABLE_WAYLAND=1 ./mach build  2>&1 | cat -
101ab24
%else
101ab24
GDK_BACKEND=x11 xvfb-run ./mach build  2>&1 | cat -
101ab24
%endif
d144fd6
%else
75daa97
./mach build -v 2>&1 | cat -
d144fd6
%endif
875d0c0
875d0c0
# create debuginfo for crash-stats.mozilla.com
875d0c0
%if %{enable_mozilla_crashreporter}
875d0c0
make -C objdir buildsymbols
875d0c0
%endif
cvsdist cac9c1c
c3e1bae
%if %{?run_tests}
c3e1bae
%if %{?system_nss}
0813120
ln -s %{_prefix}/bin/certutil objdir/dist/bin/certutil
0813120
ln -s %{_prefix}/bin/pk12util objdir/dist/bin/pk12util
c3e1bae
c3e1bae
%endif
c3e1bae
mkdir test_results
c3e1bae
./mach --log-no-times check-spidermonkey &> test_results/check-spidermonkey || true
1c41bbe
./mach --log-no-times check-spidermonkey &> test_results/check-spidermonkey-2nd-run || true
c3e1bae
./mach --log-no-times cppunittest &> test_results/cppunittest || true
c3e1bae
xvfb-run ./mach --log-no-times crashtest &> test_results/crashtest || true
c3e1bae
./mach --log-no-times gtest &> test_results/gtest || true
c3e1bae
xvfb-run ./mach --log-no-times jetpack-test &> test_results/jetpack-test || true
1c41bbe
# not working right now ./mach marionette-test &> test_results/marionette-test || true
c3e1bae
xvfb-run ./mach --log-no-times mochitest-a11y &> test_results/mochitest-a11y || true
c3e1bae
xvfb-run ./mach --log-no-times mochitest-browser &> test_results/mochitest-browser || true
c3e1bae
xvfb-run ./mach --log-no-times mochitest-chrome &> test_results/mochitest-chrome || true
c3e1bae
xvfb-run ./mach --log-no-times mochitest-devtools &> test_results/mochitest-devtools || true
c3e1bae
xvfb-run ./mach --log-no-times mochitest-plain &> test_results/mochitest-plain || true
c3e1bae
xvfb-run ./mach --log-no-times reftest &> test_results/reftest || true
1c41bbe
xvfb-run ./mach --log-no-times webapprt-test-chrome &> test_results/webapprt-test-chrome || true
1c41bbe
xvfb-run ./mach --log-no-times webapprt-test-content &> test_results/webapprt-test-content || true
c3e1bae
./mach --log-no-times webidl-parser-test &> test_results/webidl-parser-test || true
c3e1bae
xvfb-run ./mach --log-no-times xpcshell-test &> test_results/xpcshell-test || true
c3e1bae
%if %{?system_nss}
c3e1bae
rm -f  objdir/dist/bin/certutil
1c41bbe
rm -f  objdir/dist/bin/pk12util
c3e1bae
%endif
c3e1bae
c3e1bae
%endif
cvsdist cac9c1c
#---------------------------------------------------------------------
cvsdist cac9c1c
cvsdist cac9c1c
%install
cvsdist cac9c1c
Christopher Aillon 0b79269
# set up our default bookmarks
10d0e02
%if !0%{?flatpak}
b345c18
%{__cp} -p %{default_bookmarks_file} objdir/dist/bin/browser/chrome/en-US/locale/browser/bookmarks.html
332c921
%endif
Christopher Aillon 0b79269
Christopher Aillon 0b79269
# Make sure locale works for langpacks
a5dfe3a
%{__cat} > objdir/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
Christopher Aillon 0b79269
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
Christopher Aillon 0b79269
EOF
Christopher Aillon 0b79269
b748726
DESTDIR=%{buildroot} make -C objdir install
cvsdist cac9c1c
b748726
%{__mkdir_p} %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications}
cvsdist cac9c1c
b748726
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE20}
6cd2d43
%if 0%{?wayland_backend_default}
d37312c
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE31}
dd0eb4d
%endif
be00a15
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE29}
c75ced4
2c1f724
# set up the firefox start script
6cd2d43
%if 0%{?wayland_backend_default}
a1d5dfd
%global wayland_default true
d37312c
%else
a1d5dfd
%global wayland_default false
d37312c
%endif
b748726
%{__rm} -rf %{buildroot}%{_bindir}/firefox
0813120
%{__sed} -e 's/__DEFAULT_WAYLAND__/%{wayland_default}/' \
9ffa95d
         -e 's,/__PREFIX__,%{_prefix},g' %{SOURCE21} > %{buildroot}%{_bindir}/firefox
b748726
%{__chmod} 755 %{buildroot}%{_bindir}/firefox
a1d5dfd
7edd26f
7edd26f
%if 0%{?flatpak}
f1dfc13
sed -i -e 's|%FLATPAK_ENV_VARS%|export TMPDIR="$XDG_CACHE_HOME/tmp"|' %{buildroot}%{_bindir}/firefox
7edd26f
%else
7edd26f
sed -i -e 's|%FLATPAK_ENV_VARS%||' %{buildroot}%{_bindir}/firefox
7edd26f
%endif
7edd26f
6cd2d43
%if 0%{?wayland_backend_default}
9ffa95d
%{__sed} -e 's,/__PREFIX__,%{_prefix},g' %{SOURCE30} > %{buildroot}%{_bindir}/firefox-x11
d37312c
%{__chmod} 755 %{buildroot}%{_bindir}/firefox-x11
be00a15
%endif
9ffa95d
%{__sed} -e 's,/__PREFIX__,%{_prefix},g' %{SOURCE28} > %{buildroot}%{_bindir}/firefox-wayland
1886e5c
%{__chmod} 755 %{buildroot}%{_bindir}/firefox-wayland
1886e5c
b748726
%{__install} -p -D -m 644 %{SOURCE23} %{buildroot}%{_mandir}/man1/firefox.1
cvsdist cac9c1c
b748726
%{__rm} -f %{buildroot}/%{mozappdir}/firefox-config
b748726
%{__rm} -f %{buildroot}/%{mozappdir}/update-settings.ini
cvsdist cac9c1c
Christopher Aillon 37171ee
for s in 16 22 24 32 48 256; do
b748726
    %{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
360a075
    %{__cp} -p browser/branding/official/default${s}.png \
b748726
               %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/firefox.png
Christopher Aillon 37171ee
done
2c1570e
06c81c9
# Install hight contrast icon
b748726
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
06c81c9
%{__cp} -p %{SOURCE25} \
b748726
           %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
06c81c9
3d518fe
echo > %{name}.lang
731d588
%if %{with langpacks}
Christopher Aillon 49840ed
# Extract langpacks, make any mods needed, repack the langpack, and install it.
b748726
%{__mkdir_p} %{buildroot}%{langpackdir}
Christopher Aillon c0f195a
%{__tar} xf %{SOURCE1}
0e00b2a
for langpack in `ls firefox-langpacks/*.xpi`; do
0e00b2a
  language=`basename $langpack .xpi`
Christopher Aillon 49840ed
  extensionID=langpack-$language@firefox.mozilla.org
Christopher Aillon 49840ed
  %{__mkdir_p} $extensionID
Martin Stransky c4c0150
  unzip -qq $langpack -d $extensionID
Christopher Aillon 49840ed
  find $extensionID -type f | xargs chmod 644
0e00b2a
Christopher Aillon 49840ed
  cd $extensionID
Martin Stransky c4c0150
  zip -qq -r9mX ../${extensionID}.xpi *
Christopher Aillon 49840ed
  cd -
Christopher Aillon 49840ed
b748726
  %{__install} -m 644 ${extensionID}.xpi %{buildroot}%{langpackdir}
fa79345
  language=`echo $language | sed -e 's/-/_/g'`
f0f0666
%if 0%{?flatpak}
ac6a9cd
  echo "%{langpackdir}/${extensionID}.xpi" >> %{name}.lang
f0f0666
%else
f0f0666
  echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> %{name}.lang
f0f0666
%endif
0e00b2a
done
0e00b2a
%{__rm} -rf firefox-langpacks
0e00b2a
Martin Stransky a62de3b
# Install langpack workaround (see #707100, #821169)
Martin Stransky a62de3b
function create_default_langpack() {
Martin Stransky a62de3b
language_long=$1
Martin Stransky a62de3b
language_short=$2
b748726
cd %{buildroot}%{langpackdir}
Martin Stransky a62de3b
ln -s langpack-$language_long@firefox.mozilla.org.xpi langpack-$language_short@firefox.mozilla.org.xpi
Martin Stransky a62de3b
cd -
3d518fe
echo "%%lang($language_short) %{langpackdir}/langpack-$language_short@firefox.mozilla.org.xpi" >> %{name}.lang
Martin Stransky a62de3b
}
Martin Stransky a62de3b
Martin Stransky 499035c
# Table of fallbacks for each language
Martin Stransky fcde0fe
# please file a bug at bugzilla.redhat.com if the assignment is incorrect
0eea5d2
#create_default_langpack "bn-IN" "bn"
Martin Stransky 499035c
create_default_langpack "es-AR" "es"
Martin Stransky 499035c
create_default_langpack "fy-NL" "fy"
Martin Stransky 499035c
create_default_langpack "ga-IE" "ga"
Martin Stransky 499035c
create_default_langpack "gu-IN" "gu"
Martin Stransky 499035c
create_default_langpack "hi-IN" "hi"
Martin Stransky 499035c
create_default_langpack "hy-AM" "hy"
Martin Stransky 499035c
create_default_langpack "nb-NO" "nb"
Martin Stransky 499035c
create_default_langpack "nn-NO" "nn"
Martin Stransky 499035c
create_default_langpack "pa-IN" "pa"
Martin Stransky 499035c
create_default_langpack "pt-PT" "pt"
Martin Stransky 499035c
create_default_langpack "sv-SE" "sv"
Martin Stransky 499035c
create_default_langpack "zh-TW" "zh"
75c7194
%endif
c75ced4
b748726
%{__mkdir_p} %{buildroot}/%{mozappdir}/browser/defaults/preferences
Martin Stransky ff14fd5
4c1ef45
# System config dir
b748726
%{__mkdir_p} %{buildroot}/%{_sysconfdir}/%{name}/pref
4c1ef45
884f977
# System extensions
b748726
%{__mkdir_p} %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_app_id}
b748726
%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_app_id}
ab0f13f
ab0f13f
# Copy over the LICENSE
b748726
%{__install} -p -c -m 644 LICENSE %{buildroot}/%{mozappdir}
2405ef3
875d0c0
# Use the system hunspell dictionaries
b748726
%{__rm} -rf %{buildroot}%{mozappdir}/dictionaries
b748726
ln -s %{_datadir}/myspell %{buildroot}%{mozappdir}/dictionaries
875d0c0
341ecd0
# Enable crash reporter for Firefox application
4225333
%if %{enable_mozilla_crashreporter}
b748726
sed -i -e "s/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/" %{buildroot}/%{mozappdir}/application.ini
56dc4a6
# Add debuginfo for crash-stats.mozilla.com
b748726
%{__mkdir_p} %{buildroot}/%{moz_debug_dir}
b748726
%{__cp} objdir/dist/%{symbols_file_name} %{buildroot}/%{moz_debug_dir}
341ecd0
%endif
341ecd0
c3e1bae
%if %{run_tests}
c3e1bae
# Add debuginfo for crash-stats.mozilla.com
b748726
%{__mkdir_p} %{buildroot}/test_results
b748726
%{__cp} test_results/* %{buildroot}/test_results
c3e1bae
%endif
c3e1bae
6ffc9e1
# Default
b748726
%{__cp} %{SOURCE12} %{buildroot}%{mozappdir}/browser/defaults/preferences
0a58c3e
c95f62a
# Copy over run-mozilla.sh
c95f62a
%{__cp} build/unix/run-mozilla.sh %{buildroot}%{mozappdir}
c95f62a
e1c3854
# Add distribution.ini
b748726
%{__mkdir_p} %{buildroot}%{mozappdir}/distribution
b748726
%{__cp} %{SOURCE26} %{buildroot}%{mozappdir}/distribution
e1c3854
c9caff1
# Install appdata file
8b1630c
mkdir -p %{buildroot}%{_datadir}/metainfo
c9caff1
%{__sed} -e 's/__VERSION__/%{version}/' %{SOURCE33} > %{buildroot}%{_datadir}/metainfo/firefox.appdata.xml
c9caff1
c9caff1
# Install Gnome search provider files
8b1630c
mkdir -p %{buildroot}%{_datadir}/gnome-shell/search-providers
8b1630c
%{__cp} %{SOURCE34} %{buildroot}%{_datadir}/gnome-shell/search-providers
8b1630c
0a58c3e
# Remove copied libraries to speed up build
b748726
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozjs.so
b748726
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozalloc.so
b748726
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libxul.so
cvsdist cac9c1c
#---------------------------------------------------------------------
cvsdist cac9c1c
c75ced4
# Moves defaults/preferences to browser/defaults/preferences
f14e989
%pretrans -p <lua>
cb23180
require 'posix'
cb23180
require 'os'
cb23180
if (posix.stat("%{mozappdir}/browser/defaults/preferences", "type") == "link") then
cb23180
  posix.unlink("%{mozappdir}/browser/defaults/preferences")
cb23180
  posix.mkdir("%{mozappdir}/browser/defaults/preferences")
cb23180
  if (posix.stat("%{mozappdir}/defaults/preferences", "type") == "directory") then
6ffc9e1
    for i,filename in pairs(posix.dir("%{mozappdir}/defaults/preferences")) do
cb23180
      os.rename("%{mozappdir}/defaults/preferences/"..filename, "%{mozappdir}/browser/defaults/preferences/"..filename)
cb23180
    end
cb23180
    f = io.open("%{mozappdir}/defaults/preferences/README","w")
cb23180
    if f then
cb23180
      f:write("Content of this directory has been moved to %{mozappdir}/browser/defaults/preferences.")
cb23180
      f:close()
cb23180
    end
cb23180
  end
cb23180
end
c75ced4
c3fd3d6
%check
c3fd3d6
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
ec429e9
Christopher Aillon 5f70bce
%preun
Christopher Aillon 5f70bce
# is it a final removal?
Christopher Aillon 5f70bce
if [ $1 -eq 0 ]; then
Christopher Aillon 5f70bce
  %{__rm} -rf %{mozappdir}/components
Christopher Aillon 5f70bce
  %{__rm} -rf %{mozappdir}/extensions
Christopher Aillon 5f70bce
  %{__rm} -rf %{mozappdir}/plugins
Christopher Aillon 5f70bce
  %{__rm} -rf %{langpackdir}
Christopher Aillon 5f70bce
fi
Christopher Aillon 5f70bce
cvsdist cac9c1c
%post
5732aa4
update-desktop-database &> /dev/null || :
8f828a9
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
19c0cec
cvsdist cac9c1c
%postun
Christopher Aillon a52b725
update-desktop-database &> /dev/null || :
8f828a9
if [ $1 -eq 0 ] ; then
8f828a9
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
8f828a9
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
b7c5c4d
fi
cvsdist cac9c1c
8f828a9
%posttrans
8f828a9
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c6d9eb1
fa79345
%files -f %{name}.lang
cvsdist cac9c1c
%{_bindir}/firefox
73632af
%{mozappdir}/firefox
Martin Stransky c0ab6d6
%{mozappdir}/firefox-bin
5fe54d7
%doc %{_mandir}/man1/*
73eccea
%dir %{_sysconfdir}/%{name}
32c9b2b
%dir %{_sysconfdir}/%{name}/*
Martin Stransky 349fbd0
%dir %{_datadir}/mozilla/extensions/*
Martin Stransky 349fbd0
%dir %{_libdir}/mozilla/extensions/*
e8f1982
%{_datadir}/applications/%{name}.desktop
8b1630c
%{_datadir}/metainfo/*.appdata.xml
8b1630c
%{_datadir}/gnome-shell/search-providers/*.ini
1fb0c4e
%dir %{mozappdir}
1a940bc
%license %{mozappdir}/LICENSE
Martin Stransky ff14fd5
%{mozappdir}/browser/chrome
0a58c3e
%{mozappdir}/browser/defaults/preferences/firefox-redhat-default-prefs.js
24a61e8
%{mozappdir}/browser/features/*.xpi
e1c3854
%{mozappdir}/distribution/distribution.ini
450594e
# That's Windows only
450594e
%ghost %{mozappdir}/browser/features/aushelper@mozilla.org.xpi
731d588
%if %{with langpacks}
Christopher Aillon 8cc5a04
%dir %{langpackdir}
0a804ca
%endif
Martin Stransky ff14fd5
%{mozappdir}/browser/omni.ja
c95f62a
%{mozappdir}/run-mozilla.sh
bede30d
%{mozappdir}/application.ini
a19743f
%{mozappdir}/pingsender
5fe54d7
%exclude %{mozappdir}/removed-files
8fa89a4
%{_datadir}/icons/hicolor/16x16/apps/firefox.png
8fa89a4
%{_datadir}/icons/hicolor/22x22/apps/firefox.png
8fa89a4
%{_datadir}/icons/hicolor/24x24/apps/firefox.png
8fa89a4
%{_datadir}/icons/hicolor/256x256/apps/firefox.png
8fa89a4
%{_datadir}/icons/hicolor/32x32/apps/firefox.png
8fa89a4
%{_datadir}/icons/hicolor/48x48/apps/firefox.png
06c81c9
%{_datadir}/icons/hicolor/symbolic/apps/firefox-symbolic.svg
4225333
%if %{enable_mozilla_crashreporter}
875d0c0
%{mozappdir}/crashreporter
875d0c0
%{mozappdir}/crashreporter.ini
c197919
%{mozappdir}/minidump-analyzer
875d0c0
%{mozappdir}/Throbber-small.gif
68cb185
%{mozappdir}/browser/crashreporter-override.ini
341ecd0
%endif
875d0c0
%{mozappdir}/*.so
f80b8f8
%{mozappdir}/gtk2/*.so
0a58c3e
%{mozappdir}/defaults/pref/channel-prefs.js
875d0c0
%{mozappdir}/dependentlibs.list
875d0c0
%{mozappdir}/dictionaries
875d0c0
%{mozappdir}/omni.ja
875d0c0
%{mozappdir}/platform.ini
875d0c0
%{mozappdir}/plugin-container
8a0ee5a
%{mozappdir}/gmp-clearkey
0071462
%{mozappdir}/fonts/TwemojiMozilla.ttf
Martin Stransky 48d8fda
%if !%{?system_nss}
49bb7a9
%exclude %{mozappdir}/libnssckbi.so
Martin Stransky 48d8fda
%endif
e5d6aad
%if %{build_with_asan}
e5d6aad
%{mozappdir}/llvm-symbolizer
e5d6aad
%endif
341ecd0
cvsdist cac9c1c
#---------------------------------------------------------------------
cvsdist cac9c1c
cvsdist cac9c1c
%changelog
c9d361c
* Fri May 8 2020 Martin Stransky <stransky@redhat.com> - 76.0.1-1
c9d361c
- Updated to 76.0.1
c9d361c
c960c03
* Thu May 7 2020 Martin Stransky <stransky@redhat.com> - 76.0-3
c960c03
- Disable ffvpx when va-api is enabled.
c960c03
f976942
* Tue May 05 2020 Jan Horak <jhorak@redhat.com> - 76.0-2
f976942
- Don't use google safe browsing api key for the geolocation
f976942
b178223
* Sun May 3 2020 Martin Stransky <stransky@redhat.com> - 76.0-1
b178223
- Updated to 76.0
b178223
cdfebbc
* Thu Apr 23 2020 Martin Stransky <stransky@redhat.com> - 75.0-3
cdfebbc
- Added fix for mozilla bug #1527976 (browser D&D)
cdfebbc
da11178
* Tue Apr 14 2020 Jan Horak <jhorak@redhat.com> - 75.0-2
da11178
- Removed gconf-2.0 build requirement
da11178
96352c5
* Mon Apr 06 2020 Martin Stransky <stransky@redhat.com> - 75.0-1
96352c5
- Updated to 75.0
96352c5
2f14c4e
* Mon Apr 06 2020 Martin Stransky <stransky@redhat.com> - 74.0.1-3
2f14c4e
- Added fix for mozbz#1627469
2f14c4e
143fa36
* Mon Apr 06 2020 Jan Horak <jhorak@redhat.com> - 74.0.1-2
143fa36
- Fixing pipewire patch
143fa36
830bb96
* Sat Apr 4 2020 Martin Stransky <stransky@redhat.com> - 74.0.1-1
830bb96
- Updated to latest upstream
830bb96
- Added fix for mozbz#1624745
830bb96
1d40a91
* Wed Apr 1 2020 Martin Stransky <stransky@redhat.com> - 74.0-14
1d40a91
- Added fixes to gnome shell search provider
1d40a91
6c801f5
* Tue Mar 31 2020 Jan Horak <jhorak@redhat.com> - 74.0-13
7b032f4
- Allow addons sideload to fix missing langpacks issues
5c39de8
09430aa
* Thu Mar 19 2020 Martin Stransky <stransky@redhat.com> - 74.0-12
09430aa
- Added fix for rhbz#1814850 by Daniel Rusek
09430aa
b7fec52
* Tue Mar 17 2020 Martin Stransky <stransky@redhat.com> - 74.0-11
f610b4b
- Added fix for mozbz#1623106
f610b4b
b0fd9d7
* Tue Mar 17 2020 Martin Stransky <stransky@redhat.com> - 74.0-9
7e04205
- Added fix for mozbz#1623060
7e04205
8cb9a2a
* Tue Mar 17 2020 Jan Grulich <jgrulich@redhat.com> - 74-0-8
8cb9a2a
- Add support for window sharing
8cb9a2a
c4945dd
* Mon Mar 16 2020 Martin Stransky <stransky@redhat.com> - 74.0-7
c4945dd
- Use D-Bus remote exclusively for both X11 and Wayland backends
c4945dd
  when WAYLAND_DISPLAY is present.
c4945dd
04d75fa
* Fri Mar 13 2020 Martin Stransky <stransky@redhat.com> - 74.0-6
04d75fa
- Added fix for mozbz#1615098
04d75fa
8325482
* Thu Mar 12 2020 Martin Stransky <stransky@redhat.com> - 74.0-5
8325482
- Added fix for mozbz#1196777
8325482
05939fc
* Tue Mar 10 2020 Kalev Lember <klember@redhat.com> - 74.0-4
05939fc
- Remove unused libIDL build dep
b92aed4
- Disabled arm due to build failures
05939fc
d6d0f64
* Tue Mar 10 2020 Martin Stransky <stransky@redhat.com> - 74.0-3
d6d0f64
- Update to 74.0 Build 3
d6d0f64
7e5bd53
* Mon Mar 09 2020 Martin Stransky <stransky@redhat.com> - 74.0-2
7e5bd53
- Update to 74.0 Build 2
7e5bd53
96744c2
* Tue Mar 03 2020 Martin Stransky <stransky@redhat.com> - 74.0-1
96744c2
- Update to 74.0 Build 1
536fbf7
- Added mozbz#1609538
96744c2
4a8f66f
* Mon Feb 24 2020 Martin Stransky <stransky@redhat.com> - 73.0.1-4
504b291
- Using pipewire-0.2 as buildrequire
558ad06
- Added armv7hl fixes by Gabriel Hojda
558ad06
71c7a52
* Mon Feb 24 2020 Martin Stransky <stransky@redhat.com> - 73.0.1-2
71c7a52
- Fixed Bug 1804787 - Some .desktop menu entries unlocalized
71c7a52
08889c3
* Thu Feb 20 2020 Martin Stransky <stransky@redhat.com> - 73.0.1-1
08889c3
- Update to 73.0.1
08889c3
158b963
* Tue Feb 11 2020 Jan Horak <jhorak@redhat.com> - 73.0-1
158b963
- Update to 73.0 build3
158b963
7ed75ec
* Tue Feb 04 2020 Kalev Lember <klember@redhat.com> - 72.0.2-3
7ed75ec
- Fix various issues with appdata, making the validation pass again
c3fd3d6
- Validate appdata during the build
c9caff1
- Make sure the release tag in appdata is in sync with the package version
7ed75ec
741a8bb
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 72.0.2-2
741a8bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
741a8bb
270e02c
* Mon Jan 20 2020 Jan Horak <jhorak@redhat.com> - 72.0.2-1
270e02c
- Update to 72.0.2 build1
270e02c
b72d36d
* Wed Jan 15 2020 Jan Horak <jhorak@redhat.com> - 72.0.1-2
b72d36d
- Added fix for wrong cursor offset of popup windows and bumped required nss
b72d36d
  version
b72d36d
e94f44b
* Wed Jan 08 2020 Jan Horak <jhorak@redhat.com> - 72.0.1-1
e94f44b
- Update to 72.0.1 build1
e94f44b
66815a0
* Mon Jan 06 2020 Jan Horak <jhorak@redhat.com> - 72.0-2
66815a0
- Update to 72.0 build4
66815a0
2008d15
* Fri Jan 03 2020 Jan Horak <jhorak@redhat.com> - 72.0-1
2008d15
- Update to 72.0 build3
2008d15
6e9b476
* Wed Dec 18 2019 Jan Horak <jhorak@redhat.com> - 71.0-17
bf5d82c
- Fix for wrong intl.accept_lang when using non en-us langpack
bf5d82c
c47608a
* Mon Dec 9 2019 Martin Stransky <stransky@redhat.com> - 71.0-16
c47608a
- Build with asan
c47608a
de27f20
* Mon Dec 9 2019 Martin Stransky <stransky@redhat.com> - 71.0-15
de27f20
- Enabled Mozilla crash reporter
bf21f00
- Enabled PGO builds
de27f20
2688384
* Mon Dec 9 2019 Martin Stransky <stransky@redhat.com> - 71.0-14
0f0618f
- Updated workaround for mzbz#1601707
0f0618f
9155ea7
* Sat Dec 7 2019 Martin Stransky <stransky@redhat.com> - 71.0-13
9155ea7
- Built with -fno-lifetime-dse
9155ea7
0de712c
* Fri Dec 6 2019 Martin Stransky <stransky@redhat.com> - 71.0-12
0de712c
- Clang test build, should fix extension breakage
0de712c
ccb5557
* Fri Dec 6 2019 Martin Stransky <stransky@redhat.com> - 71.0-11
ccb5557
- Added workaround for:
ccb5557
  https://bugzilla.mozilla.org/show_bug.cgi?id=1601707
ccb5557
  http://gcc.gnu.org/PR92831
ccb5557
2c0f8ed
* Fri Dec 6 2019 Martin Stransky <stransky@redhat.com> - 71.0-10
2c0f8ed
- Remove appdata and ship metainfo only
2c0f8ed
7f42be8
* Wed Dec 4 2019 Martin Stransky <stransky@redhat.com> - 71.0-9
7f42be8
- Included kiosk mode workaround (mozbz#1594738)
7f42be8
1b044ab
* Tue Dec 3 2019 Martin Stransky <stransky@redhat.com> - 71.0-8
1b044ab
- Disabled PGO due to startup crash
1b044ab
c72871d
* Mon Dec 2 2019 Martin Stransky <stransky@redhat.com> - 71.0-7
c72871d
- Updated to 71.0 Build 5
c72871d
- Updated Gnome search provider
c72871d
836d9a0
* Wed Nov 27 2019 Martin Stransky <stransky@redhat.com> - 71.0-6
836d9a0
- Enable Gnome search provider
836d9a0
9c047ca
* Wed Nov 27 2019 Martin Stransky <stransky@redhat.com> - 71.0-5
9c047ca
- Added fix for mozbz#1593408
9c047ca
- Temporary disable Gnome search provider
8327513
e03afc8
* Tue Nov 26 2019 Martin Stransky <stransky@redhat.com> - 71.0-2
e03afc8
- Enable Gnome search provider
e03afc8
41edb62
* Tue Nov 26 2019 Martin Stransky <stransky@redhat.com> - 71.0-1
41edb62
- Updated to 71.0 Build 2
41edb62
4328e33
* Tue Nov 19 2019 Jan Horak <jhorak@redhat.com> - 70.0.1-5
4328e33
- Added fixes for missing popup and overflow widget glitches
c18a8a0
a961f01
* Mon Nov 04 2019 Jan Horak <jhorak@redhat.com> - 70.0.1-4
f1a7e5d
- Added fix for non-scrollable popups
f1a7e5d
34e3616
* Fri Nov 1 2019 Martin Stransky <stransky@redhat.com> - 70.0.1-1
34e3616
- Updated to 70.0.1
34e3616
- Built with system-nss (reverted 70.0-2 change).
34e3616
360cf1b
* Thu Oct 31 2019 Martin Stransky <stransky@redhat.com> - 70.0-2
360cf1b
- Switched to in-tree nss due to rhbz#1752303
360cf1b
302967b
* Tue Oct 15 2019 Martin Stransky <stransky@redhat.com> - 70.0-1
302967b
- Updated to 70.0
302967b
3a864e5
* Mon Oct 14 2019 Martin Stransky <stransky@redhat.com> - 69.0.3-2
3a864e5
- Build firefox-wayland again (rhbz#1761578).
3a864e5
152ddea
* Thu Oct 10 2019 Martin Stransky <stransky@redhat.com> - 69.0.3-1
152ddea
- Updated to 69.0.3
152ddea
b9f1625
* Wed Oct 9 2019 Martin Stransky <stransky@redhat.com> - 69.0.2-3
b9f1625
- Obsolete firefox-wayland when we're on wayland by default.
b9f1625
e15d59f
* Thu Oct 3 2019 Martin Stransky <stransky@redhat.com> - 69.0.2-2
e15d59f
- Added fix for mozilla#1587008 - flickering during GL resize.
e15d59f
b87d9dc
* Thu Oct 3 2019 Martin Stransky <stransky@redhat.com> - 69.0.2-1
b87d9dc
- Updated to 69.0.2
b87d9dc
a07515e
* Mon Sep 30 2019 Martin Stransky <stransky@redhat.com> - 69.0.1-5
a07515e
- Updated rhbz#1754460/mzbz#1583466 - per user policy dir.
a07515e
0adc4ae
* Tue Sep 24 2019 Martin Stransky <stransky@redhat.com> - 69.0.1-4
0adc4ae
- Added fix for rhbz#1754460
0adc4ae
b697fe5
* Thu Sep 19 2019 Martin Stransky <stransky@redhat.com> - 69.0.1-3
b697fe5
- Updated cache-missing strategy for Wayland image cache.
b697fe5
b697fe5
* Thu Sep 19 2019 Martin Stransky <stransky@redhat.com> - 69.0.1-2
101ab24
- Do PGO builds with X11 backend.
101ab24
cda86d9
* Wed Sep 18 2019 Martin Stransky <stransky@redhat.com> - 69.0.1-1
cda86d9
- Updated to 69.0.1
cda86d9
5b43bf2
* Wed Sep 18 2019 Martin Stransky <stransky@redhat.com> - 69.0-11
5b43bf2
- Do PGO builds with Wayland backend.
5b43bf2
6bc6c7c
* Wed Sep 18 2019 Martin Stransky <stransky@redhat.com> - 69.0-10
6bc6c7c
- Disabled DoH by default (rhbz#1751410),
6bc6c7c
  patch by Eduardo Mínguez Pérez (eminguez).
6bc6c7c
2465d17
* Tue Sep 17 2019 Martin Stransky <stransky@redhat.com> - 69.0-9
fb30522
- Enable Wayland cache mode control (mozbz#1577024)
fb30522
868f498
* Tue Sep 17 2019 Martin Stransky <stransky@redhat.com> - 69.0-7
868f498
- Added fixes for mozbz#1581748
868f498
9b804de
* Mon Sep 16 2019 Martin Stransky <stransky@redhat.com> - 69.0-6
9b804de
- Added fixes for mozbz#1579823, mozbz#1580152
9b804de
25a13aa
* Wed Sep 11 2019 Martin Stransky <stransky@redhat.com> - 69.0-5
25a13aa
- Added fix for mozbz#1579849 - partial screen update when
25a13aa
  page switches.
25a13aa
36345da
* Wed Sep 11 2019 Martin Stransky <stransky@redhat.com> - 69.0-4
36345da
- Added fix for mozbz#1579794 - Flickering on video playback on
36345da
  4k/HiDPI displays.
36345da
8eab606
* Mon Sep 9 2019 Martin Stransky <stransky@redhat.com> - 69.0-3
8eab606
- Added fix for mozbz#1579023
8eab606
0a26542
* Mon Sep 2 2019 Martin Stransky <stransky@redhat.com> - 69.0-2
20c032f
- Added upstream Wayland patches (mozilla-1548475, mozilla-1562827,
20c032f
  mozilla-1567434, mozilla-1573813, mozilla-1574036,
20c032f
  mozilla-1576268).
20c032f
- Enable multiprocess compilation.
b2802de
- Enable profile downgrade.
57b02ae
- Disabled ppc64le on Fedora 29 (rhbz#1749729)
20c032f
dfb6ca7
* Thu Aug 29 2019 Jan Horak <jhorak@redhat.com> - 69.0-1
dfb6ca7
- Update to 69.0
dfb6ca7
4321d58
* Wed Aug 14 2019 Jan Horak <jhorak@redhat.com> - 68.0.2-1
4321d58
- Update to 68.0.2
4321d58
05040f1
* Mon Aug  5 2019 Jan Horak <jhorak@redhat.com> - 68.0.1-3
05040f1
- Added workaround fix for webrtc indicator
75daa97
- Added rust build workaround
05040f1
a91404f
* Wed Jul 24 2019 Martin Stransky <stransky@redhat.com> - 68.0.1-2
a91404f
- Added fix for rhbz#1709840
30eb43b
- Added node js wrapper to fix koji freezes
30eb43b
  (https://pagure.io/fedora-infrastructure/issue/8026)
81d7524
- Updated mozbz#1512162 for ppc64le
a91404f
e995749
* Mon Jul 22 2019 Martin Stransky <stransky@redhat.com> - 68.0.1-1
e995749
- Updated to 68.0.1
70d0d4a
- Enabled WebRTC on ppc64le (rhbz#1732069)
e995749
691cff8
* Thu Jul 11 2019 Martin Stransky <stransky@redhat.com> - 68.0-5
691cff8
- Enabled aarch64 and ppc64le
691cff8
1cb3681
* Wed Jul 10 2019 Martin Stransky <stransky@redhat.com> - 68.0-4
1cb3681
- Added fixes for aarch64 builds.
1cb3681
12ce2e0
* Tue Jul  9 2019 Dan Horák <dan[at]danny.cz> - 68.0-3
12ce2e0
- Fix crash on ppc64le (mozilla#1512162)
12ce2e0
062a42c
* Mon Jul  8 2019 Jan Horak <jhorak@redhat.com> - 68.0-2
062a42c
- Update pipewire patch
062a42c
ec241d8
* Tue Jul 2 2019 Martin Stransky <stransky@redhat.com> - 68.0-1
ec241d8
- Updated to 68.0
ec241d8
25b8428
* Thu Jun 20 2019 Martin Stransky <stransky@redhat.com> - 67.0.4-1
25b8428
- Updated to 67.0.4
25b8428
1dacd1e
* Tue Jun 18 2019 Martin Stransky <stransky@redhat.com> - 67.0.3-1
1dacd1e
- Updated to 67.0.3
1dacd1e
5209397
* Tue Jun 11 2019 Martin Stransky <stransky@redhat.com> - 67.0.2-1
5209397
- Updated to 67.0.2 Build 2
5209397
e964700
* Thu May 23 2019 Martin Stransky <stransky@redhat.com> - 67.0-4
e964700
- Added wayland buffer optimization (mozilla#1553747).
e964700
f0f0666
* Fri May 17 2019 Martin Stransky <stransky@redhat.com> - 67.0-3
f0f0666
- Use %lang() in regular builds.
be085d6
- Updated to 67.0 Build 2
f0f0666
ac6a9cd
* Thu May 16 2019 Jan Horak <jhorak@redhat.com> - 67.0-2
ac6a9cd
- Removed %lang() prefix from langpacks file list due to flatpak
ac6a9cd
bbb92a8
* Wed May 15 2019 Martin Stransky <stransky@redhat.com> - 67.0-1
bbb92a8
- Updated to 67.0
bbb92a8
72535be
* Wed May 8 2019 Martin Stransky <stransky@redhat.com> - 66.0.5-1
72535be
- Updated to 66.0.5
72535be
d2c66f3
* Sun May 5 2019 Martin Stransky <stransky@redhat.com> - 66.0.4-1
d2c66f3
- Updated to 66.0.4
d2c66f3
dc7ec55
* Thu May 2 2019 Martin Stransky <stransky@redhat.com> - 66.0.3-2
dc7ec55
- Removed fix for mozbz#526293 as it's broken and does not
dc7ec55
  bring any new functionality.
dc7ec55
f232c3c
* Thu Apr 11 2019 Martin Stransky <stransky@redhat.com> - 66.0.3-1
f232c3c
- Updated to 66.0.3 (Build 1)
f232c3c
a2eb082
* Mon Apr 1 2019 Martin Stransky <stransky@redhat.com> - 66.0.2-1
a2eb082
- Updated to 66.0.2 (Build 1)
a2eb082
- Added fixes for mozbz#1526243, mozbz#1540145
a2eb082
384fee2
* Thu Mar 28 2019 Martin Stransky <stransky@redhat.com> - 66.0.1-4
384fee2
- Added fix for mozbz#1539471 - wayland popups/tooltips
384fee2
739f4c2
* Wed Mar 27 2019 Martin Stransky <stransky@redhat.com> - 66.0.1-3
739f4c2
- Added fix for mozbz#526293 - show remote locations at
739f4c2
  file chooser dialog
739f4c2
5055837
* Fri Mar 22 2019 Martin Stransky <stransky@redhat.com> - 66.0.1-1
5055837
- Updated to 66.0.1 (Build 1)
5055837
0813120
* Thu Mar 21 2019 Martin Stransky <stransky@redhat.com> - 66.0-10.test
ec310c7
- Test module build, use flatpak global define
ec310c7
- Added fix for F31 (mozbz#1533969)
0813120
cb31356
* Thu Mar 21 2019 Martin Stransky <stransky@redhat.com> - 66.0-9
cb31356
- Release build
cb31356
ad36ec0
* Thu Mar 21 2019 Martin Stransky <stransky@redhat.com> - 66.0-8.test
ad36ec0
- Added module specific build config
51a685c
- Fixed mozbz#1423598 for multi-monitor setup
ad36ec0
332c921
* Wed Mar 20 2019 Martin Stransky <stransky@redhat.com> - 66.0-7.test
332c921
- Switched to test builds
70909c2
- Updated mozbz#1468911 patch
332c921
7c6cd89
* Mon Mar 18 2019 Martin Stransky <stransky@redhat.com> - 66.0-6
7c6cd89
- Build release candidate
7c6cd89
- Disabled default Wayland backend for Fedora 30
7c6cd89
a99b4bf
* Mon Mar 18 2019 Martin Stransky <stransky@redhat.com> - 66.0-5
a99b4bf
- Added fix for mozbz#1468911
a99b4bf
c75c4e9
* Mon Mar 18 2019 Martin Stransky <stransky@redhat.com> - 66.0-4
c75c4e9
- Release build
c75c4e9
54b6f91
* Fri Mar 15 2019 Martin Stransky <stransky@redhat.com> - 66.0-3
2253cae
- Updated to 66.0 (Build 3)
2253cae
- Re-enable s390x arches
2253cae
- Fixed Wayland specific bugs mozbz#1535567, mozbz#1431399
2253cae
83e8010
* Tue Mar 12 2019 Martin Stransky <stransky@redhat.com> - 66.0-1
2253cae
- Updated to 66.0 (Build 1)
83e8010
d35dd9e
* Fri Mar 1 2019 Martin Stransky <stransky@redhat.com> - 65.0.2-1
d35dd9e
- Updated to 65.0.2
d35dd9e
- Disabled PGO+LTO for Fedora 30
d35dd9e
- Disabled Mozilla Crashreporter to get Wayland crashes by ABRT
4c135f9
- Disabled s390x builds due to
4c135f9
  https://pagure.io/fedora-infrastructure/issue/7581
4c135f9
d35dd9e
4081c01
* Thu Feb 28 2019 Martin Stransky <stransky@redhat.com> - 65.0.1-2
c685c9d
- Enable ARBT for Fedora 29 and later to catch wayland crashes.
c685c9d
- Disable system libvpx for Fedora 30 and later.
4081c01
0af579b
* Wed Feb 20 2019 Martin Stransky <stransky@redhat.com> - 65.0.1-1
0af579b
- Disabled s390x/f28 builds due to
0af579b
  https://pagure.io/fedora-infrastructure/issue/7581
0af579b
671ae48
* Fri Feb 15 2019 Jan Horak <jhorak@redhat.com> - 65.0.1-1
671ae48
- Update to 65.0.1
671ae48
5c3efe8
* Mon Feb 4 2019 Martin Stransky <stransky@redhat.com> - 65.0-4
5c3efe8
- Added fix for mozbz#1522780
5c3efe8
66135e9
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 65.0-3
66135e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
66135e9
faf4913
* Thu Jan 31 2019 Jan Grulich <jgrulich@redhat.com> - 65.0-2
faf4913
- Re-enable PipeWire support
faf4913
eec2ffa
* Mon Jan 28 2019 Martin Stransky <stransky@redhat.com> - 65.0-1
0813120
- Update to 65.0 build 2
eec2ffa
b0598cb
* Wed Jan 16 2019 Martin Stransky <stransky@redhat.com> - 64.0.2-2
16f80d0
- Rebuild
16f80d0
0ed6837
* Thu Jan 10 2019 Jan Horak <jhorak@redhat.com> - 64.0.2-1
0ed6837
- Update to 64.0.2
0ed6837
c858294
* Mon Jan  7 2019 Jan Horak <jhorak@redhat.com> - 64.0-7
c858294
- Pipewire patch rebased (thanks to Tomas Popela)
94f9ee9
- Enabled PGO on some arches.
c858294
ea5307d
* Fri Jan 4 2019 Carmen Bianca Bakker <carmenbianca@fedoraproject.org> - 64.0-6
ea5307d
- Changed locale detector to handle Esperanto (rhbz#1656900)
ea5307d
6cd2d43
* Fri Dec 21 2018 Martin Stransky <stransky@redhat.com> - 64.0-5
6cd2d43
- Test PGO build.
6cd2d43
c6a456b
* Wed Dec 12 2018 Martin Stransky <stransky@redhat.com> - 64.0-4
c6a456b
- Use gcc on all platforms for official release.
c6a456b
d144fd6
* Wed Dec 12 2018 Martin Stransky <stransky@redhat.com> - 64.0-3
d144fd6
- Updated PGO build setup.
d144fd6
85cd9b6
* Tue Dec 4 2018 Martin Stransky <stransky@redhat.com> - 64.0-2
9b2debb
- Updated to Firefox 64 (Build 3)
30f48bf
- Built with Clang on some arches.
2ad016d
4ba3502
* Mon Nov 26 2018 Martin Stransky <stransky@redhat.com> - 63.0.3-3
4ba3502
- [Wayland] Fixed issues with Sway compositor and wl_keyboard setup
4ba3502
  (mozbz#1507475).
4ba3502
e693e46
* Wed Nov 21 2018 Martin Stransky <stransky@redhat.com> - 63.0.3-2
4ba3502
- [Wayland] Fixed mozbz#1507475 - crash when display changes
4ba3502
  (rhbz#1646151).
e693e46
66f0419
* Thu Nov 15 2018 Martin Stransky <stransky@redhat.com> - 63.0.3-1
66f0419
- Updated to latest upstream (63.0.3)
66f0419
513a689
* Tue Nov 13 2018 Martin Stransky <stransky@redhat.com> - 63.0.1-6
0df3489
- Added an option to build with clang/llvm.
fc67a69
- Fixed debug builds.
fc67a69
- Fixed warnings at Wayland clipboard code.
513a689
e035902
* Tue Nov 6 2018 Martin Stransky <stransky@redhat.com> - 63.0.1-5
e035902
- Added fix for mozbz#1502457- disable Contextual Feature
e035902
  Recommender/shield studies by default.
e035902
430f061
* Mon Nov 5 2018 Martin Stransky <stransky@redhat.com> - 63.0.1-4
430f061
- Added clipboard fix (mozbz#1504689)
430f061
561a9b5
* Fri Nov 2 2018 Dan Horak <dhorak@redhat.com> - 63.0.1-3
561a9b5
- Added fixes for ppc64le
561a9b5
b2a3494
* Thu Nov 1 2018 Martin Stransky <stransky@redhat.com> - 63.0.1-2
b2a3494
- Fixed typo on man page (rhbz#1643766)
b2a3494
615b2f4
* Thu Nov 1 2018 Martin Stransky <stransky@redhat.com> - 63.0.1-1
615b2f4
- Updated to latest upstream (63.0.1 build 4)
615b2f4
dcfbd3d
* Tue Oct 23 2018 Martin Stransky <stransky@redhat.com> - 63.0-2
dcfbd3d
- Updated to latest upstream (63.0 build 2)
dcfbd3d
fdd5163
* Thu Oct 18 2018 Martin Stransky <stransky@redhat.com> - 63.0-1
fdd5163
- Updated to latest upstream (63.0)
fdd5163
- Updated PipeWire patch
fdd5163
f4af4b7
* Tue Oct 9 2018 Martin Stransky <stransky@redhat.com> - 62.0.3-4
f4af4b7
- Added fix for mozbz#1447775 - wrong dropspace sizing.
f4af4b7
dbbd17c
* Tue Oct 9 2018 Martin Stransky <stransky@redhat.com> - 62.0.3-3
dbbd17c
- Added fix for mozbz#1493081 - popups incorrectly placed and sized.
dbbd17c
d37312c
* Mon Oct 8 2018 Martin Stransky <stransky@redhat.com> - 62.0.3-2
d37312c
- Added pipewire patch (mozbz#1496359)
d37312c
- Added Wayland patches from Firefox 63
d37312c
- Enable Wayland backed by default on Fedora 30
d37312c
ad2263b
* Tue Oct 2 2018 Martin Stransky <stransky@redhat.com> - 62.0.3-1
ad2263b
- Updated to latest upstream (62.0.3)
ad2263b
b7acc1e
* Wed Sep 26 2018 Martin Stransky <stransky@redhat.com> - 62.0.2-3
b7acc1e
- Enabled DBus remote for all Gtk+ backends
b7acc1e
- Removed obsoleted patches
b7acc1e
b7acc1e
* Tue Sep 25 2018 Martin Stransky <stransky@redhat.com> - 62.0.2-2
d3fbeb2
- Disable workaround for mozbz#1342344 - GFX glitches when building
d3fbeb2
  with -O3/gcc 7.2
d3fbeb2
17dcd75
* Mon Sep 24 2018 Jan Horak <jhorak@redhat.com> - 62.0.2-1
17dcd75
- Update to 62.0.2
17dcd75
517a725
* Mon Sep 17 2018 Martin Stransky <stransky@redhat.com> - 62.0-3
517a725
- Added spellchecker.dictionary_path pref pointer to /usr/share/myspell.
517a725
  Thanks to Peter Oliver (rhbz#1627837)
517a725
acded2a
* Tue Sep 4 2018 Martin Stransky <stransky@redhat.com> - 62.0-2
acded2a
- Update to 62.0 (Build 2)
acded2a
bd77262
* Tue Aug 28 2018 Martin Stransky <stransky@redhat.com> - 62.0-1
bd77262
- Update to 62.0
bd77262
35295a2
* Wed Aug 15 2018 Ondrej Zoder <ozoder@redhat.com> - 61.0.2-3
35295a2
- Added patches for mozbz#1427700 and mozbz#1463809
35295a2
54a2ce1
* Mon Aug 13 2018 Ondrej Zoder <ozoder@redhat.com> - 61.0.2-2
54a2ce1
- Updated symbolic icon
54a2ce1
b43c4e0
* Thu Aug 9 2018 Martin Stransky <stransky@redhat.com> - 61.0.2-1
b43c4e0
- Update to 61.0.2
b43c4e0
13b65c6
* Wed Aug 1 2018 Ondrej Zoder <ozoder@redhat.com> - 61.0.1-4
13b65c6
- Fixed rhbz#1610428
13b65c6
8fbeae4
* Tue Jul 17 2018 Ondrej Zoder <ozoder@redhat.com> - 61.0.1-3
8fbeae4
- Bump release
8fbeae4
cc5be42
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 61.0.1-2
cc5be42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cc5be42
11b3cb6
* Tue Jul 10 2018 Ondrej Zoder <ozoder@redhat.com> - 61.0.1
11b3cb6
- Update to 61.0.1
11b3cb6
146e515
* Mon Jun 25 2018 Martin Stransky <stransky@redhat.com> - 61.0-4
146e515
- Disabled mozbz#1424422 as it's broken.
146e515
eda981d
* Fri Jun 22 2018 Martin Stransky <stransky@redhat.com> - 61.0-3
eda981d
- Update to 61.0 Build 3
eda981d
1d48da8
* Thu Jun 21 2018 Martin Stransky <stransky@redhat.com> - 61.0-2
1d48da8
- Disabled system hunspell due to rhbz#1593494
1d48da8
e8f1982
* Tue Jun 19 2018 Martin Stransky <stransky@redhat.com> - 61.0-1
e8f1982
- Updated to 61.0
e8f1982
- Created firefox-wayland subpackage with wayland launcher.
e8f1982
bacad2f
* Mon Jun 11 2018 Jan Horak <jhorak@redhat.com> - 60.0.2-1
bacad2f
- Update to 60.0.2
bacad2f
0c068bf
* Mon Jun 4 2018 Martin Stransky <stransky@redhat.com> - 60.0.1-6
0c068bf
- Fixed mozbz#1466473, rhbz#1585300 - Fix GL detection.
0c068bf
- Fixed desktop file names (rhbz#1585369).
0c068bf
040ebc2
* Wed May 30 2018 Martin Stransky <stransky@redhat.com> - 60.0.1-5
040ebc2
- Added workaround for mozbz#1464823 which makes GL layer
040ebc2
  compositor usable on Wayland.
040ebc2
c354b7e
* Tue May 29 2018 Martin Stransky <stransky@redhat.com> - 60.0.1-4
c354b7e
- Added fix for mozbz#1464808 - Set default D&D action to move
c354b7e
  on Wayland.
c354b7e
ff9eb9d
* Fri May 25 2018 Martin Stransky <stransky@redhat.com> - 60.0.1-3
ff9eb9d
- Added fix for mozbz#1436242 (rhbz#1577277) - Firefox IPC crashes.
0af445c
- Added fix for mozbz#1462640 - Sandbox disables eglGetDisplay()
0af445c
  call on Wayland/EGL backend.
ff9eb9d
dd0eb4d
* Fri May 25 2018 Martin Stransky <stransky@redhat.com> - 60.0.1-2
dd0eb4d
- Enable Wayland backend.
dd0eb4d
0437509
* Wed May 23 2018 Jan Horak <jhorak@redhat.com> - 60.0.1-1
0437509
- Update to 60.0.1
0437509
8cff86d
* Wed May 16 2018 Martin Stransky <stransky@redhat.com> - 60.0-6
8cff86d
- Added patch from rhbz#1498561 - second arch (ppc*) crashes.
8cff86d
face401
* Wed May 16 2018 Martin Stransky <stransky@redhat.com> - 60.0-5
face401
- Disabled jemalloc on second arches.
face401
9cd4355
* Thu May 3 2018 Martin Stransky <stransky@redhat.com> - 60.0-4
9cd4355
- Updated to Firefox 60 build 2
9cd4355
3430410
* Thu May 3 2018 Martin Stransky <stransky@redhat.com> - 60.0-3
3430410
- Added patch from mozbz#1375074 - fixes aarch64 baseline JIT crashes
3430410
37e796d
* Thu May 3 2018 Martin Stransky <stransky@redhat.com> - 60.0-2
37e796d
- Make Wayland backend optional and disable it by default due to WebGL issues.
37e796d
ef66043
* Wed May 2 2018 Martin Stransky <stransky@redhat.com> - 60.0-1
ba246d4
- Update to Firefox 60 build 1
ba246d4
- Ship firefox-wayland launch script
ba246d4
5841237
* Mon Apr 30 2018 Martin Stransky <stransky@redhat.com> - 60.0-0.5
5841237
- Build with Wayland backend enabled.
5841237
8f19acc
* Mon Apr 30 2018 Martin Stransky <stransky@redhat.com> - 60.0-0.4
14c907c
- Added patches for correct popups position at CSD mode (mozilla-1457691).
14c907c
bbe9daf
* Fri Apr 27 2018 Martin Stransky <stransky@redhat.com> - 60.0-0.2
bbe9daf
- Update to 60.0 Beta 16
bbe9daf
9c46b2a
* Tue Apr 24 2018 Martin Stransky <stransky@redhat.com> - 60.0-0.1
7bf0e81
- Update to 60.0 Beta 15