2014-01-09 09:56:01 +00:00
|
|
|
|
# Use system nspr/nss?
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global system_nss 1
|
2012-11-15 08:44:26 +00:00
|
|
|
|
|
2018-10-08 12:09:44 +00:00
|
|
|
|
# Make Wayland backend default?
|
|
|
|
|
%if 0%{?fedora} > 29
|
|
|
|
|
%global wayland_backend_default 1
|
2018-10-08 12:24:23 +00:00
|
|
|
|
%else
|
|
|
|
|
%global wayland_backend_default 0
|
2018-10-08 12:09:44 +00:00
|
|
|
|
%endif
|
2018-05-03 11:25:19 +00:00
|
|
|
|
|
2014-01-09 09:56:01 +00:00
|
|
|
|
# Use system sqlite?
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global system_sqlite 0
|
2018-08-28 12:01:32 +00:00
|
|
|
|
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global system_ffi 1
|
2014-01-09 09:56:01 +00:00
|
|
|
|
|
|
|
|
|
# Use system cairo?
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global system_cairo 0
|
2014-01-09 09:56:01 +00:00
|
|
|
|
|
2016-03-02 15:31:21 +00:00
|
|
|
|
# Use system libvpx?
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global system_libvpx 1
|
2016-03-02 15:31:21 +00:00
|
|
|
|
|
2016-04-26 11:33:49 +00:00
|
|
|
|
# Use system libicu?
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global system_libicu 0
|
2016-04-26 11:33:49 +00:00
|
|
|
|
|
2017-03-07 11:59:47 +00:00
|
|
|
|
# Big endian platforms
|
2017-03-07 14:39:05 +00:00
|
|
|
|
%ifarch ppc64 s390x
|
2017-03-07 11:59:47 +00:00
|
|
|
|
# Javascript Intl API is not supported on big endian platforms right now:
|
|
|
|
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1322212
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global big_endian 1
|
2017-03-07 11:59:47 +00:00
|
|
|
|
%endif
|
|
|
|
|
|
2015-08-25 06:58:24 +00:00
|
|
|
|
# Hardened build?
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global hardened_build 1
|
2015-08-25 06:58:24 +00:00
|
|
|
|
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global system_jpeg 1
|
2014-11-04 15:07:20 +00:00
|
|
|
|
|
2014-09-19 08:40:44 +00:00
|
|
|
|
%ifarch %{ix86} x86_64
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global run_tests 0
|
2014-09-19 08:40:44 +00:00
|
|
|
|
%else
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global run_tests 0
|
2014-09-19 08:40:44 +00:00
|
|
|
|
%endif
|
|
|
|
|
|
2012-03-13 10:15:37 +00:00
|
|
|
|
# Build as a debug package?
|
2018-10-18 09:42:41 +00:00
|
|
|
|
%bcond_without debug_build
|
|
|
|
|
%if %{with debug_build}
|
|
|
|
|
%else
|
|
|
|
|
%global debug_build 1
|
|
|
|
|
%else
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global debug_build 0
|
2018-10-18 09:42:41 +00:00
|
|
|
|
%endif
|
2012-03-13 10:15:37 +00:00
|
|
|
|
|
2018-09-27 12:37:10 +00:00
|
|
|
|
%global disable_elfhack 0
|
|
|
|
|
%if 0%{?fedora} > 28
|
|
|
|
|
%global disable_elfhack 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global default_bookmarks_file %{_datadir}/bookmarks/default-bookmarks.html
|
|
|
|
|
%global firefox_app_id \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
|
2014-01-09 09:56:01 +00:00
|
|
|
|
# Minimal required versions
|
2014-10-31 11:42:03 +00:00
|
|
|
|
%global cairo_version 1.13.1
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%global freetype_version 2.1.9
|
|
|
|
|
%global libnotify_version 0.7.0
|
2016-03-02 15:31:21 +00:00
|
|
|
|
%if %{?system_libvpx}
|
|
|
|
|
%global libvpx_version 1.4.0
|
|
|
|
|
%endif
|
2014-01-09 09:56:01 +00:00
|
|
|
|
|
|
|
|
|
%if %{?system_nss}
|
2018-04-24 09:33:36 +00:00
|
|
|
|
%global nspr_version 4.19
|
2017-08-11 12:42:44 +00:00
|
|
|
|
# NSS/NSPR quite often ends in build override, so as requirement the version
|
|
|
|
|
# we're building against could bring us some broken dependencies from time to time.
|
|
|
|
|
#%global nspr_build_version %(pkg-config --silence-errors --modversion nspr 2>/dev/null || echo 65536)
|
2017-08-29 11:01:25 +00:00
|
|
|
|
%global nspr_build_version %{nspr_version}
|
2018-06-19 20:38:08 +00:00
|
|
|
|
%global nss_version 3.37.3
|
2017-08-11 12:42:44 +00:00
|
|
|
|
#%global nss_build_version %(pkg-config --silence-errors --modversion nss 2>/dev/null || echo 65536)
|
2017-08-29 11:01:25 +00:00
|
|
|
|
%global nss_build_version %{nss_version}
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%endif
|
2004-12-29 02:12:15 +00:00
|
|
|
|
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%if %{?system_sqlite}
|
2014-07-30 12:56:02 +00:00
|
|
|
|
%global sqlite_version 3.8.4.2
|
2014-01-09 09:56:01 +00:00
|
|
|
|
# The actual sqlite version (see #480989):
|
|
|
|
|
%global sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo 65536)
|
|
|
|
|
%endif
|
|
|
|
|
|
2011-09-27 16:18:08 +00:00
|
|
|
|
%global mozappdir %{_libdir}/%{name}
|
2014-01-23 09:26:08 +00:00
|
|
|
|
%global mozappdirdev %{_libdir}/%{name}-devel-%{version}
|
2011-03-13 02:44:20 +00:00
|
|
|
|
%global langpackdir %{mozappdir}/langpacks
|
2018-04-24 09:33:36 +00:00
|
|
|
|
%global tarballdir firefox-%{version}
|
2010-02-24 13:55:11 +00:00
|
|
|
|
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global official_branding 1
|
2018-10-18 09:42:41 +00:00
|
|
|
|
|
|
|
|
|
%bcond_without langpacks
|
2015-08-19 07:54:46 +00:00
|
|
|
|
|
2018-03-08 09:37:26 +00:00
|
|
|
|
%global enable_mozilla_crashreporter 0
|
2015-08-19 07:54:46 +00:00
|
|
|
|
%if !%{debug_build}
|
2013-06-28 14:33:48 +00:00
|
|
|
|
%ifarch %{ix86} x86_64
|
2018-03-08 09:37:26 +00:00
|
|
|
|
%global enable_mozilla_crashreporter 1
|
2011-03-22 15:35:06 +00:00
|
|
|
|
%endif
|
2017-03-13 09:43:21 +00:00
|
|
|
|
%endif
|
2014-03-19 07:16:31 +00:00
|
|
|
|
|
2007-12-09 11:35:10 +00:00
|
|
|
|
Summary: Mozilla Firefox Web browser
|
2004-09-09 04:44:49 +00:00
|
|
|
|
Name: firefox
|
2018-10-18 11:43:49 +00:00
|
|
|
|
Version: 63.0
|
|
|
|
|
Release: 1%{?pre_tag}%{?dist}
|
2016-05-02 12:27:50 +00:00
|
|
|
|
URL: https://www.mozilla.org/firefox/
|
2007-08-13 20:25:11 +00:00
|
|
|
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
2018-10-18 09:42:41 +00:00
|
|
|
|
Source0: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz
|
|
|
|
|
%if %{with langpacks}
|
2018-10-18 11:43:49 +00:00
|
|
|
|
Source1: firefox-langpacks-%{version}%{?pre_version}-20181018.tar.xz
|
2008-06-18 00:52:47 +00:00
|
|
|
|
%endif
|
2005-07-18 20:30:35 +00:00
|
|
|
|
Source10: firefox-mozconfig
|
2007-03-20 18:25:16 +00:00
|
|
|
|
Source12: firefox-redhat-default-prefs.js
|
2004-12-12 08:42:36 +00:00
|
|
|
|
Source20: firefox.desktop
|
|
|
|
|
Source21: firefox.sh.in
|
2006-09-07 04:19:44 +00:00
|
|
|
|
Source23: firefox.1
|
2014-09-10 10:43:04 +00:00
|
|
|
|
Source24: mozilla-api-key
|
2015-07-02 13:48:32 +00:00
|
|
|
|
Source25: firefox-symbolic.svg
|
2017-04-18 09:12:05 +00:00
|
|
|
|
Source26: distribution.ini
|
2017-08-29 08:39:08 +00:00
|
|
|
|
Source27: google-api-key
|
2018-01-30 11:40:25 +00:00
|
|
|
|
Source28: firefox-wayland.sh.in
|
2018-05-25 10:50:35 +00:00
|
|
|
|
Source29: firefox-wayland.desktop
|
2018-10-08 12:09:44 +00:00
|
|
|
|
Source30: firefox-x11.sh.in
|
|
|
|
|
Source31: firefox-x11.desktop
|
2007-12-09 11:35:10 +00:00
|
|
|
|
|
2016-05-27 08:49:21 +00:00
|
|
|
|
# Build patches
|
2014-01-09 09:56:01 +00:00
|
|
|
|
Patch3: mozilla-build-arm.patch
|
2015-05-11 08:56:28 +00:00
|
|
|
|
Patch25: rhbz-1219542-s390-build.patch
|
2017-03-07 11:59:47 +00:00
|
|
|
|
Patch26: build-icu-big-endian.patch
|
2017-04-19 11:46:39 +00:00
|
|
|
|
Patch27: mozilla-1335250.patch
|
2017-06-12 12:57:56 +00:00
|
|
|
|
Patch32: build-rust-ppc64le.patch
|
2017-08-08 12:10:10 +00:00
|
|
|
|
Patch35: build-ppc-jit.patch
|
2017-08-29 11:01:25 +00:00
|
|
|
|
# Always feel lucky for unsupported platforms:
|
|
|
|
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1347128
|
|
|
|
|
Patch37: build-jit-atomic-always-lucky.patch
|
2017-09-05 09:34:45 +00:00
|
|
|
|
# Fixing missing cacheFlush when JS_CODEGEN_NONE is used (s390x)
|
|
|
|
|
Patch38: build-cacheFlush-missing.patch
|
2018-04-25 08:57:43 +00:00
|
|
|
|
Patch40: build-aarch64-skia.patch
|
2018-09-27 12:37:10 +00:00
|
|
|
|
Patch41: build-disable-elfhack.patch
|
2018-10-18 13:23:20 +00:00
|
|
|
|
Patch42: prio-nss-build.patch
|
2018-10-19 10:40:07 +00:00
|
|
|
|
Patch43: mozilla-1500366.patch
|
|
|
|
|
Patch44: mozilla-1494037.patch
|
2014-01-09 09:56:01 +00:00
|
|
|
|
|
|
|
|
|
# Fedora specific patches
|
2014-07-29 13:20:46 +00:00
|
|
|
|
Patch215: firefox-enable-addons.patch
|
2014-12-23 14:43:44 +00:00
|
|
|
|
Patch219: rhbz-1173156.patch
|
2015-02-09 17:20:06 +00:00
|
|
|
|
Patch221: firefox-fedora-ua.patch
|
2016-03-21 13:40:15 +00:00
|
|
|
|
Patch224: mozilla-1170092.patch
|
2017-01-24 10:35:57 +00:00
|
|
|
|
#ARM run-time patch
|
|
|
|
|
Patch226: rhbz-1354671.patch
|
2010-06-24 10:51:03 +00:00
|
|
|
|
|
2008-06-18 00:52:47 +00:00
|
|
|
|
# Upstream patches
|
2016-04-28 12:40:31 +00:00
|
|
|
|
Patch402: mozilla-1196777.patch
|
2016-07-11 11:56:16 +00:00
|
|
|
|
Patch406: mozilla-256180.patch
|
2017-04-18 11:12:24 +00:00
|
|
|
|
Patch407: mozilla-1348576.patch
|
2017-05-10 12:14:02 +00:00
|
|
|
|
Patch410: mozilla-1321521.patch
|
|
|
|
|
Patch411: mozilla-1321521-2.patch
|
2017-05-16 10:38:01 +00:00
|
|
|
|
Patch412: mozilla-1337988.patch
|
2017-05-24 06:42:53 +00:00
|
|
|
|
Patch413: mozilla-1353817.patch
|
2018-04-24 11:26:09 +00:00
|
|
|
|
Patch414: mozilla-1435212-ffmpeg-4.0.patch
|
2018-04-27 07:11:21 +00:00
|
|
|
|
Patch415: Bug-1238661---fix-mozillaSignalTrampoline-to-work-.patch
|
2018-04-30 10:07:49 +00:00
|
|
|
|
Patch416: mozilla-1424422.patch
|
2018-05-03 11:43:55 +00:00
|
|
|
|
Patch417: bug1375074-save-restore-x28.patch
|
2018-10-09 14:03:26 +00:00
|
|
|
|
Patch421: mozilla-1447775.patch
|
2018-04-30 11:51:36 +00:00
|
|
|
|
|
2018-05-25 10:50:35 +00:00
|
|
|
|
# Wayland specific upstream patches
|
2018-09-26 12:07:12 +00:00
|
|
|
|
Patch573: mozilla-1415078.patch
|
2018-10-08 12:09:44 +00:00
|
|
|
|
Patch574: firefox-pipewire.patch
|
2018-10-09 11:06:45 +00:00
|
|
|
|
Patch581: mozilla-1493081.patch
|
2018-05-25 10:50:35 +00:00
|
|
|
|
|
2016-03-21 13:40:15 +00:00
|
|
|
|
# Debian patches
|
2016-04-26 08:46:26 +00:00
|
|
|
|
Patch500: mozilla-440908.patch
|
2014-11-03 13:56:26 +00:00
|
|
|
|
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%if %{?system_nss}
|
2015-11-04 12:57:49 +00:00
|
|
|
|
BuildRequires: pkgconfig(nspr) >= %{nspr_version}
|
|
|
|
|
BuildRequires: pkgconfig(nss) >= %{nss_version}
|
2014-01-09 09:56:01 +00:00
|
|
|
|
BuildRequires: nss-static >= %{nss_version}
|
|
|
|
|
%endif
|
|
|
|
|
%if %{?system_cairo}
|
2015-11-04 12:57:49 +00:00
|
|
|
|
BuildRequires: pkgconfig(cairo) >= %{cairo_version}
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%endif
|
2015-11-04 12:57:49 +00:00
|
|
|
|
BuildRequires: pkgconfig(libpng)
|
2016-01-13 12:57:13 +00:00
|
|
|
|
%if %{?system_jpeg}
|
2014-01-09 09:56:01 +00:00
|
|
|
|
BuildRequires: libjpeg-devel
|
2016-01-13 12:57:13 +00:00
|
|
|
|
%endif
|
2014-01-09 09:56:01 +00:00
|
|
|
|
BuildRequires: zip
|
|
|
|
|
BuildRequires: bzip2-devel
|
2015-11-04 12:57:49 +00:00
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
|
BuildRequires: pkgconfig(libIDL-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(krb5)
|
|
|
|
|
BuildRequires: pkgconfig(pango)
|
|
|
|
|
BuildRequires: pkgconfig(freetype2) >= %{freetype_version}
|
|
|
|
|
BuildRequires: pkgconfig(xt)
|
|
|
|
|
BuildRequires: pkgconfig(xrender)
|
|
|
|
|
BuildRequires: pkgconfig(libstartup-notification-1.0)
|
|
|
|
|
BuildRequires: pkgconfig(libnotify) >= %{libnotify_version}
|
|
|
|
|
BuildRequires: pkgconfig(dri)
|
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
2016-10-31 07:59:22 +00:00
|
|
|
|
BuildRequires: dbus-glib-devel
|
2016-03-02 15:31:21 +00:00
|
|
|
|
%if %{?system_libvpx}
|
2015-11-05 12:27:00 +00:00
|
|
|
|
BuildRequires: libvpx-devel >= %{libvpx_version}
|
2016-03-02 15:31:21 +00:00
|
|
|
|
%endif
|
2014-01-09 09:56:01 +00:00
|
|
|
|
BuildRequires: autoconf213
|
2015-11-04 12:57:49 +00:00
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
|
BuildRequires: pkgconfig(icu-i18n)
|
|
|
|
|
BuildRequires: pkgconfig(gconf-2.0)
|
2014-11-04 15:07:20 +00:00
|
|
|
|
BuildRequires: yasm
|
2017-09-27 12:23:59 +00:00
|
|
|
|
BuildRequires: llvm
|
2017-09-25 13:01:03 +00:00
|
|
|
|
BuildRequires: llvm-devel
|
2017-09-27 14:39:25 +00:00
|
|
|
|
BuildRequires: clang
|
2017-09-27 11:08:03 +00:00
|
|
|
|
BuildRequires: clang-libs
|
2018-10-08 12:09:44 +00:00
|
|
|
|
%if 0%{?fedora} > 27
|
|
|
|
|
BuildRequires: pipewire-devel
|
|
|
|
|
%endif
|
2018-10-18 12:01:05 +00:00
|
|
|
|
BuildRequires: cbindgen
|
2018-10-18 12:10:27 +00:00
|
|
|
|
BuildRequires: nodejs
|
2014-01-09 09:56:01 +00:00
|
|
|
|
|
|
|
|
|
Requires: mozilla-filesystem
|
2017-08-29 11:01:25 +00:00
|
|
|
|
Requires: p11-kit-trust
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%if %{?system_nss}
|
|
|
|
|
Requires: nspr >= %{nspr_build_version}
|
|
|
|
|
Requires: nss >= %{nss_build_version}
|
|
|
|
|
%endif
|
2017-08-14 08:14:03 +00:00
|
|
|
|
BuildRequires: python2-devel
|
2017-11-16 12:02:40 +00:00
|
|
|
|
Requires: u2f-hidraw-policy
|
2004-10-08 11:25:28 +00:00
|
|
|
|
|
2017-03-02 16:56:48 +00:00
|
|
|
|
%if 0%{?fedora} > 25
|
|
|
|
|
# For early testing of rhbz#1400293 mozbz#1324096 on F26 and Rawhide,
|
|
|
|
|
# temporarily require the specific NSS build with the backports.
|
|
|
|
|
# Can be removed after firefox is changed to require NSS 3.30.
|
|
|
|
|
BuildRequires: nss-devel >= 3.29.1-2.1
|
|
|
|
|
Requires: nss >= 3.29.1-2.1
|
|
|
|
|
%endif
|
|
|
|
|
|
2017-04-27 09:49:26 +00:00
|
|
|
|
%if 0%{?fedora} < 26
|
|
|
|
|
# Using Conflicts for p11-kit, not Requires, because on multi-arch
|
|
|
|
|
# systems p11-kit isn't yet available for secondary arches like
|
|
|
|
|
# p11-kit.i686 (fallback to libnssckbi.so from NSS).
|
|
|
|
|
# This build contains backports from p11-kit 0.23.4
|
|
|
|
|
Conflicts: p11-kit < 0.23.2-3
|
|
|
|
|
# Requires build with CKA_NSS_MOZILLA_CA_POLICY attribute
|
|
|
|
|
Requires: ca-certificates >= 2017.2.11-1.1
|
|
|
|
|
# Requires NSS build with backports from NSS 3.30
|
|
|
|
|
BuildRequires: nss-devel >= 3.29.3-1.1
|
|
|
|
|
Requires: nss >= 3.29.3-1.1
|
|
|
|
|
%endif
|
|
|
|
|
|
2004-09-09 04:44:49 +00:00
|
|
|
|
BuildRequires: desktop-file-utils
|
2007-03-20 20:14:33 +00:00
|
|
|
|
BuildRequires: system-bookmarks
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%if %{?system_sqlite}
|
2015-11-04 12:57:49 +00:00
|
|
|
|
BuildRequires: pkgconfig(sqlite3) >= %{sqlite_version}
|
2014-01-09 09:56:01 +00:00
|
|
|
|
Requires: sqlite >= %{sqlite_build_version}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{?system_ffi}
|
2015-11-04 12:57:49 +00:00
|
|
|
|
BuildRequires: pkgconfig(libffi)
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%endif
|
2004-11-01 12:41:18 +00:00
|
|
|
|
|
2014-09-19 08:40:44 +00:00
|
|
|
|
%if %{?run_tests}
|
|
|
|
|
BuildRequires: xorg-x11-server-Xvfb
|
|
|
|
|
%endif
|
2016-09-26 13:07:02 +00:00
|
|
|
|
BuildRequires: rust
|
2017-01-19 16:49:55 +00:00
|
|
|
|
BuildRequires: cargo
|
2018-09-24 15:27:25 +00:00
|
|
|
|
BuildRequires: clang-devel
|
2014-09-19 08:40:44 +00:00
|
|
|
|
|
2006-09-20 05:22:51 +00:00
|
|
|
|
Obsoletes: mozilla <= 37:1.7.13
|
2004-09-09 04:44:49 +00:00
|
|
|
|
Provides: webclient
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Mozilla Firefox is an open-source web browser, designed for standards
|
|
|
|
|
compliance, performance and portability.
|
2014-09-19 08:40:44 +00:00
|
|
|
|
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%if %{enable_mozilla_crashreporter}
|
|
|
|
|
%global moz_debug_prefix %{_prefix}/lib/debug
|
|
|
|
|
%global moz_debug_dir %{moz_debug_prefix}%{mozappdir}
|
|
|
|
|
%global uname_m %(uname -m)
|
|
|
|
|
%global symbols_file_name %{name}-%{version}.en-US.%{_os}-%{uname_m}.crashreporter-symbols.zip
|
|
|
|
|
%global symbols_file_path %{moz_debug_dir}/%{symbols_file_name}
|
|
|
|
|
%global _find_debuginfo_opts -p %{symbols_file_path} -o debugcrashreporter.list
|
|
|
|
|
%global crashreporter_pkg_name mozilla-crashreporter-%{name}-debuginfo
|
|
|
|
|
%package -n %{crashreporter_pkg_name}
|
|
|
|
|
Summary: Debugging symbols used by Mozilla's crash reporter servers
|
|
|
|
|
%description -n %{crashreporter_pkg_name}
|
2014-09-19 08:40:44 +00:00
|
|
|
|
This package provides debug information for Firefox, for use by
|
2014-01-09 09:56:01 +00:00
|
|
|
|
Mozilla's crash reporter servers. If you are trying to locally
|
|
|
|
|
debug %{name}, you want to install %{name}-debuginfo instead.
|
|
|
|
|
%files -n %{crashreporter_pkg_name} -f debugcrashreporter.list
|
|
|
|
|
%endif
|
2004-09-09 04:44:49 +00:00
|
|
|
|
|
2018-10-08 12:09:44 +00:00
|
|
|
|
%if %{?wayland_backend_default}
|
|
|
|
|
%package x11
|
|
|
|
|
Summary: Firefox X11 launcher.
|
|
|
|
|
Requires: %{name}
|
|
|
|
|
%description x11
|
|
|
|
|
The firefox-x11 package contains launcher and desktop file
|
|
|
|
|
to run Firefox natively on X11.
|
|
|
|
|
%files x11
|
|
|
|
|
%{_bindir}/firefox-x11
|
|
|
|
|
%{_datadir}/applications/firefox-x11.desktop
|
|
|
|
|
%else
|
2018-06-19 09:35:42 +00:00
|
|
|
|
%package wayland
|
|
|
|
|
Summary: Firefox Wayland launcher.
|
|
|
|
|
Requires: %{name}
|
|
|
|
|
%description wayland
|
|
|
|
|
The firefox-wayland package contains launcher and desktop file
|
|
|
|
|
to run Firefox natively on Wayland.
|
2018-06-19 20:35:02 +00:00
|
|
|
|
%files wayland
|
2018-06-19 09:35:42 +00:00
|
|
|
|
%{_bindir}/firefox-wayland
|
|
|
|
|
%{_datadir}/applications/firefox-wayland.desktop
|
|
|
|
|
%endif
|
|
|
|
|
|
2018-10-08 12:09:44 +00:00
|
|
|
|
|
2014-09-19 08:40:44 +00:00
|
|
|
|
%if %{run_tests}
|
|
|
|
|
%global testsuite_pkg_name mozilla-%{name}-testresults
|
|
|
|
|
%package -n %{testsuite_pkg_name}
|
|
|
|
|
Summary: Results of testsuite
|
|
|
|
|
%description -n %{testsuite_pkg_name}
|
|
|
|
|
This package contains results of tests executed during build.
|
|
|
|
|
%files -n %{testsuite_pkg_name}
|
|
|
|
|
/test_results
|
|
|
|
|
%endif
|
|
|
|
|
|
2004-09-09 04:44:49 +00:00
|
|
|
|
#---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
%prep
|
2017-10-06 10:40:42 +00:00
|
|
|
|
%setup -q -n %{tarballdir}
|
2005-07-18 20:30:35 +00:00
|
|
|
|
|
2011-12-15 10:15:39 +00:00
|
|
|
|
# Build patches, can't change backup suffix from default because during build
|
2015-05-22 16:24:00 +00:00
|
|
|
|
# there is a compare of config and js/config directories and .orig suffix is
|
2011-12-15 10:15:39 +00:00
|
|
|
|
# ignored during this compare.
|
2011-06-21 14:54:10 +00:00
|
|
|
|
|
2017-05-16 10:38:01 +00:00
|
|
|
|
|
2015-05-11 09:02:09 +00:00
|
|
|
|
%ifarch s390
|
2015-05-11 08:56:28 +00:00
|
|
|
|
%patch25 -p1 -b .rhbz-1219542-s390
|
2015-05-11 09:02:09 +00:00
|
|
|
|
%endif
|
2017-08-29 11:01:25 +00:00
|
|
|
|
%patch37 -p1 -b .jit-atomic-lucky
|
2018-06-20 13:03:59 +00:00
|
|
|
|
%patch40 -p1 -b .aarch64-skia
|
2018-09-27 12:37:10 +00:00
|
|
|
|
%if 0%{?disable_elfhack}
|
|
|
|
|
%patch41 -p1 -b .disable-elfhack
|
|
|
|
|
%endif
|
2016-04-25 12:58:04 +00:00
|
|
|
|
%patch3 -p1 -b .arm
|
2018-10-18 13:23:20 +00:00
|
|
|
|
%patch42 -p1 -b .nss-build
|
2018-10-19 10:40:07 +00:00
|
|
|
|
%patch43 -p1 -b .1500366
|
|
|
|
|
%patch44 -p1 -b .1494037
|
2015-03-10 19:29:26 +00:00
|
|
|
|
|
2010-06-24 10:51:03 +00:00
|
|
|
|
# Fedora patches
|
2014-08-26 13:40:25 +00:00
|
|
|
|
%patch215 -p1 -b .addons
|
2014-12-23 14:43:44 +00:00
|
|
|
|
%patch219 -p2 -b .rhbz-1173156
|
2015-02-09 17:20:06 +00:00
|
|
|
|
%patch221 -p2 -b .fedora-ua
|
2016-03-21 15:45:35 +00:00
|
|
|
|
%patch224 -p1 -b .1170092
|
2017-01-24 10:35:57 +00:00
|
|
|
|
#ARM run-time patch
|
2017-04-27 11:21:10 +00:00
|
|
|
|
%ifarch aarch64
|
2017-01-24 10:35:57 +00:00
|
|
|
|
%patch226 -p1 -b .1354671
|
2017-04-27 11:21:10 +00:00
|
|
|
|
%endif
|
2017-01-24 10:35:57 +00:00
|
|
|
|
|
2016-04-28 12:40:31 +00:00
|
|
|
|
%patch402 -p1 -b .1196777
|
2016-07-11 11:56:16 +00:00
|
|
|
|
%patch406 -p1 -b .256180
|
2017-05-24 06:42:53 +00:00
|
|
|
|
%patch413 -p1 -b .1353817
|
2018-04-27 07:11:21 +00:00
|
|
|
|
%ifarch %{arm}
|
2018-10-08 12:09:44 +00:00
|
|
|
|
%patch415 -p1 -b .1238661
|
2018-04-27 07:11:21 +00:00
|
|
|
|
%endif
|
2017-03-07 11:59:47 +00:00
|
|
|
|
# Patch for big endian platforms only
|
|
|
|
|
%if 0%{?big_endian}
|
|
|
|
|
%patch26 -p1 -b .icu
|
|
|
|
|
%endif
|
2018-10-09 14:03:26 +00:00
|
|
|
|
%patch421 -p1 -b .1447775
|
2017-03-07 11:59:47 +00:00
|
|
|
|
|
2018-05-25 10:50:35 +00:00
|
|
|
|
# Wayland specific upstream patches
|
2018-10-08 12:09:44 +00:00
|
|
|
|
%patch573 -p1 -b .1415078
|
|
|
|
|
%if 0%{?fedora} > 27
|
|
|
|
|
%patch574 -p1 -b .firefox-pipewire
|
2018-05-25 10:50:35 +00:00
|
|
|
|
%endif
|
2018-10-09 11:06:45 +00:00
|
|
|
|
%patch581 -p1 -b .mozilla-1493081
|
2018-05-25 10:50:35 +00:00
|
|
|
|
|
2004-09-09 04:44:49 +00:00
|
|
|
|
%{__rm} -f .mozconfig
|
2004-12-12 08:42:36 +00:00
|
|
|
|
%{__cp} %{SOURCE10} .mozconfig
|
2018-05-03 11:25:19 +00:00
|
|
|
|
echo "ac_add_options --enable-default-toolkit=cairo-gtk3-wayland" >> .mozconfig
|
2005-07-18 20:30:35 +00:00
|
|
|
|
%if %{official_branding}
|
2015-08-19 07:54:46 +00:00
|
|
|
|
echo "ac_add_options --enable-official-branding" >> .mozconfig
|
2005-07-18 20:30:35 +00:00
|
|
|
|
%endif
|
2014-09-10 10:43:04 +00:00
|
|
|
|
%{__cp} %{SOURCE24} mozilla-api-key
|
2017-08-29 08:39:08 +00:00
|
|
|
|
%{__cp} %{SOURCE27} google-api-key
|
2014-09-10 10:43:04 +00:00
|
|
|
|
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%if %{?system_nss}
|
|
|
|
|
echo "ac_add_options --with-system-nspr" >> .mozconfig
|
|
|
|
|
echo "ac_add_options --with-system-nss" >> .mozconfig
|
|
|
|
|
%else
|
|
|
|
|
echo "ac_add_options --without-system-nspr" >> .mozconfig
|
|
|
|
|
echo "ac_add_options --without-system-nss" >> .mozconfig
|
|
|
|
|
%endif
|
2007-12-19 16:43:29 +00:00
|
|
|
|
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%if %{?system_sqlite}
|
|
|
|
|
echo "ac_add_options --enable-system-sqlite" >> .mozconfig
|
|
|
|
|
%else
|
|
|
|
|
echo "ac_add_options --disable-system-sqlite" >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{?system_cairo}
|
|
|
|
|
echo "ac_add_options --enable-system-cairo" >> .mozconfig
|
|
|
|
|
%else
|
|
|
|
|
echo "ac_add_options --disable-system-cairo" >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{?system_ffi}
|
|
|
|
|
echo "ac_add_options --enable-system-ffi" >> .mozconfig
|
|
|
|
|
%endif
|
2004-09-09 04:44:49 +00:00
|
|
|
|
|
2012-02-27 23:08:10 +00:00
|
|
|
|
%ifarch %{arm}
|
|
|
|
|
echo "ac_add_options --disable-elf-hack" >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
2012-03-13 10:15:37 +00:00
|
|
|
|
%if %{?debug_build}
|
|
|
|
|
echo "ac_add_options --enable-debug" >> .mozconfig
|
|
|
|
|
echo "ac_add_options --disable-optimize" >> .mozconfig
|
|
|
|
|
%else
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global optimize_flags "none"
|
2017-03-02 10:52:32 +00:00
|
|
|
|
%ifarch armv7hl
|
|
|
|
|
# ARMv7 need that (rhbz#1426850)
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global optimize_flags "-g -O2 -fno-schedule-insns"
|
2016-04-27 09:23:04 +00:00
|
|
|
|
%endif
|
2017-03-02 10:52:32 +00:00
|
|
|
|
%ifarch ppc64le aarch64
|
2017-11-08 08:51:56 +00:00
|
|
|
|
%global optimize_flags "-g -O2"
|
2017-03-02 10:52:32 +00:00
|
|
|
|
%endif
|
2017-03-02 11:04:42 +00:00
|
|
|
|
%if %{optimize_flags} != "none"
|
2017-03-02 10:52:32 +00:00
|
|
|
|
echo 'ac_add_options --enable-optimize=%{?optimize_flags}' >> .mozconfig
|
|
|
|
|
%else
|
|
|
|
|
echo 'ac_add_options --enable-optimize' >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
echo "ac_add_options --disable-debug" >> .mozconfig
|
2017-02-23 12:19:22 +00:00
|
|
|
|
%endif
|
2012-03-13 10:15:37 +00:00
|
|
|
|
|
2018-05-16 10:08:20 +00:00
|
|
|
|
# Second arches fail to start with jemalloc enabled
|
|
|
|
|
%ifnarch %{ix86} x86_64
|
2012-11-19 10:08:10 +00:00
|
|
|
|
echo "ac_add_options --disable-jemalloc" >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
2014-10-15 09:09:23 +00:00
|
|
|
|
%ifnarch %{ix86} x86_64
|
2014-01-09 09:56:01 +00:00
|
|
|
|
echo "ac_add_options --disable-webrtc" >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
2014-01-09 13:26:22 +00:00
|
|
|
|
%if !%{enable_mozilla_crashreporter}
|
|
|
|
|
echo "ac_add_options --disable-crashreporter" >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
2014-09-19 08:40:44 +00:00
|
|
|
|
%if %{?run_tests}
|
|
|
|
|
echo "ac_add_options --enable-tests" >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
2014-11-04 15:07:20 +00:00
|
|
|
|
%if !%{?system_jpeg}
|
2014-11-04 13:51:27 +00:00
|
|
|
|
echo "ac_add_options --without-system-jpeg" >> .mozconfig
|
|
|
|
|
%else
|
|
|
|
|
echo "ac_add_options --with-system-jpeg" >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
2016-03-02 15:31:21 +00:00
|
|
|
|
%if %{?system_libvpx}
|
|
|
|
|
echo "ac_add_options --with-system-libvpx" >> .mozconfig
|
|
|
|
|
%else
|
|
|
|
|
echo "ac_add_options --without-system-libvpx" >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
2016-04-26 11:33:49 +00:00
|
|
|
|
%if %{?system_libicu}
|
|
|
|
|
echo "ac_add_options --with-system-icu" >> .mozconfig
|
|
|
|
|
%else
|
|
|
|
|
echo "ac_add_options --without-system-icu" >> .mozconfig
|
|
|
|
|
%endif
|
2017-08-29 13:54:56 +00:00
|
|
|
|
%ifarch s390 s390x
|
|
|
|
|
echo "ac_add_options --disable-ion" >> .mozconfig
|
|
|
|
|
%endif
|
|
|
|
|
|
2018-03-07 12:44:51 +00:00
|
|
|
|
# Remove executable bit to make brp-mangle-shebangs happy.
|
|
|
|
|
chmod -x third_party/rust/itertools/src/lib.rs
|
|
|
|
|
|
2007-10-23 07:38:08 +00:00
|
|
|
|
#---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
%build
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%if %{?system_sqlite}
|
|
|
|
|
# Do not proceed with build if the sqlite require would be broken:
|
|
|
|
|
# make sure the minimum requirement is non-empty, ...
|
|
|
|
|
sqlite_version=$(expr "%{sqlite_version}" : '\([0-9]*\.\)[0-9]*\.') || exit 1
|
|
|
|
|
# ... and that major number of the computed build-time version matches:
|
|
|
|
|
case "%{sqlite_build_version}" in
|
|
|
|
|
"$sqlite_version"*) ;;
|
|
|
|
|
*) exit 1 ;;
|
|
|
|
|
esac
|
|
|
|
|
%endif
|
|
|
|
|
|
2017-03-07 11:59:47 +00:00
|
|
|
|
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
|
|
|
|
|
%if 0%{?big_endian}
|
|
|
|
|
./mach python intl/icu_sources_data.py .
|
|
|
|
|
ls -l config/external/icu/data
|
|
|
|
|
rm -f config/external/icu/data/icudt*l.dat
|
|
|
|
|
%endif
|
|
|
|
|
|
2014-05-15 12:25:28 +00:00
|
|
|
|
# Update the various config.guess to upstream release for aarch64 support
|
|
|
|
|
find ./ -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
|
|
|
|
|
|
2014-01-09 09:56:01 +00:00
|
|
|
|
# -fpermissive is needed to build with gcc 4.6+ which has become stricter
|
2014-08-28 10:12:06 +00:00
|
|
|
|
#
|
2008-03-20 22:39:40 +00:00
|
|
|
|
# Mozilla builds with -Wall with exception of a few warnings which show up
|
|
|
|
|
# everywhere in the code; so, don't override that.
|
2011-01-25 19:18:34 +00:00
|
|
|
|
#
|
|
|
|
|
# Disable C++ exceptions since Mozilla code is not exception-safe
|
|
|
|
|
#
|
2017-11-08 09:31:15 +00:00
|
|
|
|
MOZ_OPT_FLAGS=$(echo "%{optflags}" | %{__sed} -e 's/-Wall//')
|
2013-12-13 13:17:56 +00:00
|
|
|
|
#rhbz#1037063
|
2014-08-27 11:45:32 +00:00
|
|
|
|
# -Werror=format-security causes build failures when -Wno-format is explicitly given
|
|
|
|
|
# for some sources
|
2015-05-22 16:19:31 +00:00
|
|
|
|
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
|
|
|
|
|
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
|
2015-05-26 06:15:02 +00:00
|
|
|
|
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
|
2016-04-18 10:04:54 +00:00
|
|
|
|
%if 0%{?fedora} > 23
|
|
|
|
|
# Disable null pointer gcc6 optimization in gcc6 (rhbz#1328045)
|
|
|
|
|
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fno-delete-null-pointer-checks"
|
|
|
|
|
%endif
|
2015-05-26 06:15:02 +00:00
|
|
|
|
# Use hardened build?
|
2015-08-25 06:58:24 +00:00
|
|
|
|
%if %{?hardened_build}
|
2015-08-20 09:27:41 +00:00
|
|
|
|
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
|
2015-05-26 06:15:02 +00:00
|
|
|
|
%endif
|
2012-03-13 10:15:37 +00:00
|
|
|
|
%if %{?debug_build}
|
|
|
|
|
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
|
|
|
|
|
%endif
|
2012-11-19 10:08:10 +00:00
|
|
|
|
%ifarch s390
|
|
|
|
|
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
|
2015-07-03 12:47:06 +00:00
|
|
|
|
# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
|
|
|
|
|
# overrides the -g1 from line above and breaks building on s390
|
|
|
|
|
# (OOM when linking, rhbz#1238225)
|
|
|
|
|
export MOZ_DEBUG_FLAGS=" "
|
2012-11-19 10:08:10 +00:00
|
|
|
|
%endif
|
2018-04-25 08:05:27 +00:00
|
|
|
|
%ifarch s390 %{arm} ppc aarch64 %{ix86}
|
2012-11-19 10:08:10 +00:00
|
|
|
|
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
|
|
|
|
%endif
|
2018-01-09 13:09:42 +00:00
|
|
|
|
%ifarch %{arm}
|
2018-01-25 08:35:39 +00:00
|
|
|
|
export RUSTFLAGS="-Cdebuginfo=0"
|
2018-01-09 13:09:42 +00:00
|
|
|
|
%endif
|
2008-03-20 22:39:40 +00:00
|
|
|
|
export CFLAGS=$MOZ_OPT_FLAGS
|
|
|
|
|
export CXXFLAGS=$MOZ_OPT_FLAGS
|
2014-01-09 09:56:01 +00:00
|
|
|
|
export LDFLAGS=$MOZ_LINK_FLAGS
|
2006-12-22 20:17:09 +00:00
|
|
|
|
|
2006-07-25 04:09:33 +00:00
|
|
|
|
export PREFIX='%{_prefix}'
|
2006-07-30 04:08:01 +00:00
|
|
|
|
export LIBDIR='%{_libdir}'
|
2006-06-15 12:14:34 +00:00
|
|
|
|
|
2008-02-22 02:30:18 +00:00
|
|
|
|
MOZ_SMP_FLAGS=-j1
|
2011-01-25 19:15:09 +00:00
|
|
|
|
# On x86 architectures, Mozilla can build up to 4 jobs at once in parallel,
|
|
|
|
|
# however builds tend to fail on other arches when building in parallel.
|
2014-05-15 12:25:28 +00:00
|
|
|
|
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le aarch64
|
2008-02-22 02:30:18 +00:00
|
|
|
|
[ -z "$RPM_BUILD_NCPUS" ] && \
|
|
|
|
|
RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
|
2011-01-25 19:15:09 +00:00
|
|
|
|
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
|
|
|
|
|
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
|
2014-01-09 09:56:01 +00:00
|
|
|
|
[ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j8
|
2006-06-15 12:14:34 +00:00
|
|
|
|
%endif
|
|
|
|
|
|
2018-01-23 19:25:55 +00:00
|
|
|
|
#make -f client.mk build STRIP="/bin/true" MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS" MOZ_SERVICES_SYNC="1"
|
|
|
|
|
export MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS"
|
|
|
|
|
export MOZ_SERVICES_SYNC="1"
|
|
|
|
|
export STRIP=/bin/true
|
|
|
|
|
./mach build
|
2014-01-09 09:56:01 +00:00
|
|
|
|
|
|
|
|
|
# create debuginfo for crash-stats.mozilla.com
|
|
|
|
|
%if %{enable_mozilla_crashreporter}
|
|
|
|
|
#cd %{moz_objdir}
|
|
|
|
|
make -C objdir buildsymbols
|
|
|
|
|
%endif
|
2004-09-09 04:44:49 +00:00
|
|
|
|
|
2014-09-19 08:40:44 +00:00
|
|
|
|
%if %{?run_tests}
|
|
|
|
|
%if %{?system_nss}
|
|
|
|
|
ln -s /usr/bin/certutil objdir/dist/bin/certutil
|
|
|
|
|
ln -s /usr/bin/pk12util objdir/dist/bin/pk12util
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
mkdir test_results
|
|
|
|
|
./mach --log-no-times check-spidermonkey &> test_results/check-spidermonkey || true
|
2014-09-25 14:30:54 +00:00
|
|
|
|
./mach --log-no-times check-spidermonkey &> test_results/check-spidermonkey-2nd-run || true
|
2014-09-19 08:40:44 +00:00
|
|
|
|
./mach --log-no-times cppunittest &> test_results/cppunittest || true
|
|
|
|
|
xvfb-run ./mach --log-no-times crashtest &> test_results/crashtest || true
|
|
|
|
|
./mach --log-no-times gtest &> test_results/gtest || true
|
|
|
|
|
xvfb-run ./mach --log-no-times jetpack-test &> test_results/jetpack-test || true
|
2014-09-25 14:30:54 +00:00
|
|
|
|
# not working right now ./mach marionette-test &> test_results/marionette-test || true
|
2014-09-19 08:40:44 +00:00
|
|
|
|
xvfb-run ./mach --log-no-times mochitest-a11y &> test_results/mochitest-a11y || true
|
|
|
|
|
xvfb-run ./mach --log-no-times mochitest-browser &> test_results/mochitest-browser || true
|
|
|
|
|
xvfb-run ./mach --log-no-times mochitest-chrome &> test_results/mochitest-chrome || true
|
|
|
|
|
xvfb-run ./mach --log-no-times mochitest-devtools &> test_results/mochitest-devtools || true
|
|
|
|
|
xvfb-run ./mach --log-no-times mochitest-plain &> test_results/mochitest-plain || true
|
|
|
|
|
xvfb-run ./mach --log-no-times reftest &> test_results/reftest || true
|
2014-09-25 14:30:54 +00:00
|
|
|
|
xvfb-run ./mach --log-no-times webapprt-test-chrome &> test_results/webapprt-test-chrome || true
|
|
|
|
|
xvfb-run ./mach --log-no-times webapprt-test-content &> test_results/webapprt-test-content || true
|
2014-09-19 08:40:44 +00:00
|
|
|
|
./mach --log-no-times webidl-parser-test &> test_results/webidl-parser-test || true
|
|
|
|
|
xvfb-run ./mach --log-no-times xpcshell-test &> test_results/xpcshell-test || true
|
|
|
|
|
%if %{?system_nss}
|
|
|
|
|
rm -f objdir/dist/bin/certutil
|
2014-09-25 14:30:54 +00:00
|
|
|
|
rm -f objdir/dist/bin/pk12util
|
2014-09-19 08:40:44 +00:00
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%endif
|
2004-09-09 04:44:49 +00:00
|
|
|
|
#---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
2011-02-27 03:02:04 +00:00
|
|
|
|
# set up our default bookmarks
|
2016-05-24 13:22:45 +00:00
|
|
|
|
%{__cp} -p %{default_bookmarks_file} objdir/dist/bin/browser/chrome/en-US/locale/browser/bookmarks.html
|
2011-02-27 03:02:04 +00:00
|
|
|
|
|
|
|
|
|
# Make sure locale works for langpacks
|
2013-12-10 12:52:25 +00:00
|
|
|
|
%{__cat} > objdir/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
|
2011-02-27 03:02:04 +00:00
|
|
|
|
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
|
|
|
|
|
EOF
|
|
|
|
|
|
2017-11-08 09:35:53 +00:00
|
|
|
|
DESTDIR=%{buildroot} make -C objdir install
|
2004-09-09 04:44:49 +00:00
|
|
|
|
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__mkdir_p} %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications}
|
2004-09-09 04:44:49 +00:00
|
|
|
|
|
2017-11-08 09:35:53 +00:00
|
|
|
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE20}
|
2018-10-08 12:09:44 +00:00
|
|
|
|
%if %{?wayland_backend_default}
|
|
|
|
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE31}
|
|
|
|
|
%else
|
2018-05-25 10:50:35 +00:00
|
|
|
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE29}
|
|
|
|
|
%endif
|
2015-01-13 11:44:47 +00:00
|
|
|
|
|
2004-12-16 21:33:30 +00:00
|
|
|
|
# set up the firefox start script
|
2018-10-08 12:09:44 +00:00
|
|
|
|
%if %{?wayland_backend_default}
|
|
|
|
|
%global x11_state false
|
|
|
|
|
%else
|
|
|
|
|
%global x11_state true
|
|
|
|
|
%endif
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__rm} -rf %{buildroot}%{_bindir}/firefox
|
2018-10-08 12:09:44 +00:00
|
|
|
|
%{__sed} -e 's/__DEFAULT_X11__/%{x11_state}/' %{SOURCE21} > %{buildroot}%{_bindir}/firefox
|
|
|
|
|
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__chmod} 755 %{buildroot}%{_bindir}/firefox
|
2018-10-08 12:09:44 +00:00
|
|
|
|
%if %{?wayland_backend_default}
|
|
|
|
|
%{__cat} %{SOURCE30} > %{buildroot}%{_bindir}/firefox-x11
|
|
|
|
|
%{__chmod} 755 %{buildroot}%{_bindir}/firefox-x11
|
|
|
|
|
%else
|
2018-05-02 11:00:16 +00:00
|
|
|
|
%{__cat} %{SOURCE28} > %{buildroot}%{_bindir}/firefox-wayland
|
|
|
|
|
%{__chmod} 755 %{buildroot}%{_bindir}/firefox-wayland
|
2018-05-03 11:25:19 +00:00
|
|
|
|
%endif
|
2018-05-02 11:00:16 +00:00
|
|
|
|
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__install} -p -D -m 644 %{SOURCE23} %{buildroot}%{_mandir}/man1/firefox.1
|
2004-09-09 04:44:49 +00:00
|
|
|
|
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__rm} -f %{buildroot}/%{mozappdir}/firefox-config
|
|
|
|
|
%{__rm} -f %{buildroot}/%{mozappdir}/update-settings.ini
|
2004-09-09 04:44:49 +00:00
|
|
|
|
|
2011-04-16 16:04:49 +00:00
|
|
|
|
for s in 16 22 24 32 48 256; do
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
|
2011-08-16 15:20:15 +00:00
|
|
|
|
%{__cp} -p browser/branding/official/default${s}.png \
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/firefox.png
|
2011-04-16 16:04:49 +00:00
|
|
|
|
done
|
2004-11-01 12:41:18 +00:00
|
|
|
|
|
2015-07-02 13:48:32 +00:00
|
|
|
|
# Install hight contrast icon
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
|
2015-07-02 13:48:32 +00:00
|
|
|
|
%{__cp} -p %{SOURCE25} \
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
|
2015-07-02 13:48:32 +00:00
|
|
|
|
|
2015-03-26 16:09:24 +00:00
|
|
|
|
# Register as an application to be visible in the software center
|
|
|
|
|
#
|
|
|
|
|
# NOTE: It would be *awesome* if this file was maintained by the upstream
|
|
|
|
|
# project, translated and installed into the right place during `make install`.
|
|
|
|
|
#
|
|
|
|
|
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
|
|
|
|
|
#
|
2017-11-08 09:35:53 +00:00
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata
|
|
|
|
|
cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml <<EOF
|
2015-03-26 16:09:24 +00:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
|
|
|
|
|
<!--
|
|
|
|
|
BugReportURL: https://bugzilla.mozilla.org/show_bug.cgi?id=1071061
|
|
|
|
|
SentUpstream: 2014-09-22
|
|
|
|
|
-->
|
|
|
|
|
<application>
|
|
|
|
|
<id type="desktop">firefox.desktop</id>
|
|
|
|
|
<metadata_license>CC0-1.0</metadata_license>
|
|
|
|
|
<description>
|
|
|
|
|
<p>
|
|
|
|
|
Bringing together all kinds of awesomeness to make browsing better for you.
|
|
|
|
|
Get to your favorite sites quickly – even if you don’t remember the URLs.
|
|
|
|
|
Type your term into the location bar (aka the Awesome Bar) and the autocomplete
|
|
|
|
|
function will include possible matches from your browsing history, bookmarked
|
|
|
|
|
sites and open tabs.
|
|
|
|
|
</p>
|
|
|
|
|
<!-- FIXME: Needs another couple of paragraphs -->
|
|
|
|
|
</description>
|
2017-07-03 10:54:21 +00:00
|
|
|
|
<url type="homepage">http://www.mozilla.org/</url>
|
2015-03-26 16:09:24 +00:00
|
|
|
|
<screenshots>
|
|
|
|
|
<screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/firefox/a.png</screenshot>
|
|
|
|
|
<screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/firefox/b.png</screenshot>
|
|
|
|
|
<screenshot>https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/firefox/c.png</screenshot>
|
|
|
|
|
</screenshots>
|
|
|
|
|
<!-- FIXME: change this to an upstream email address for spec updates
|
|
|
|
|
<updatecontact>someone_who_cares@upstream_project.org</updatecontact>
|
|
|
|
|
-->
|
|
|
|
|
</application>
|
|
|
|
|
EOF
|
|
|
|
|
|
2017-05-26 18:37:38 +00:00
|
|
|
|
echo > %{name}.lang
|
2018-10-18 09:42:41 +00:00
|
|
|
|
%if %{with langpacks}
|
2011-03-13 04:22:00 +00:00
|
|
|
|
# Extract langpacks, make any mods needed, repack the langpack, and install it.
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__mkdir_p} %{buildroot}%{langpackdir}
|
2011-02-08 18:17:09 +00:00
|
|
|
|
%{__tar} xf %{SOURCE1}
|
2006-01-27 03:35:21 +00:00
|
|
|
|
for langpack in `ls firefox-langpacks/*.xpi`; do
|
|
|
|
|
language=`basename $langpack .xpi`
|
2011-03-13 04:22:00 +00:00
|
|
|
|
extensionID=langpack-$language@firefox.mozilla.org
|
|
|
|
|
%{__mkdir_p} $extensionID
|
2013-05-09 12:23:50 +00:00
|
|
|
|
unzip -qq $langpack -d $extensionID
|
2011-03-13 04:22:00 +00:00
|
|
|
|
find $extensionID -type f | xargs chmod 644
|
2006-01-27 03:35:21 +00:00
|
|
|
|
|
2011-03-13 04:22:00 +00:00
|
|
|
|
cd $extensionID
|
2013-05-09 12:23:50 +00:00
|
|
|
|
zip -qq -r9mX ../${extensionID}.xpi *
|
2011-03-13 04:22:00 +00:00
|
|
|
|
cd -
|
|
|
|
|
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__install} -m 644 ${extensionID}.xpi %{buildroot}%{langpackdir}
|
2008-04-08 03:56:54 +00:00
|
|
|
|
language=`echo $language | sed -e 's/-/_/g'`
|
2017-05-26 18:37:38 +00:00
|
|
|
|
echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> %{name}.lang
|
2006-01-27 03:35:21 +00:00
|
|
|
|
done
|
|
|
|
|
%{__rm} -rf firefox-langpacks
|
|
|
|
|
|
2012-07-10 08:35:34 +00:00
|
|
|
|
# Install langpack workaround (see #707100, #821169)
|
|
|
|
|
function create_default_langpack() {
|
|
|
|
|
language_long=$1
|
|
|
|
|
language_short=$2
|
2017-11-08 09:35:53 +00:00
|
|
|
|
cd %{buildroot}%{langpackdir}
|
2012-07-10 08:35:34 +00:00
|
|
|
|
ln -s langpack-$language_long@firefox.mozilla.org.xpi langpack-$language_short@firefox.mozilla.org.xpi
|
|
|
|
|
cd -
|
2017-05-26 18:37:38 +00:00
|
|
|
|
echo "%%lang($language_short) %{langpackdir}/langpack-$language_short@firefox.mozilla.org.xpi" >> %{name}.lang
|
2012-07-10 08:35:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
2012-07-10 13:24:13 +00:00
|
|
|
|
# Table of fallbacks for each language
|
2012-07-10 13:29:19 +00:00
|
|
|
|
# please file a bug at bugzilla.redhat.com if the assignment is incorrect
|
2012-07-10 13:24:13 +00:00
|
|
|
|
create_default_langpack "bn-IN" "bn"
|
|
|
|
|
create_default_langpack "es-AR" "es"
|
|
|
|
|
create_default_langpack "fy-NL" "fy"
|
|
|
|
|
create_default_langpack "ga-IE" "ga"
|
|
|
|
|
create_default_langpack "gu-IN" "gu"
|
|
|
|
|
create_default_langpack "hi-IN" "hi"
|
|
|
|
|
create_default_langpack "hy-AM" "hy"
|
|
|
|
|
create_default_langpack "nb-NO" "nb"
|
|
|
|
|
create_default_langpack "nn-NO" "nn"
|
|
|
|
|
create_default_langpack "pa-IN" "pa"
|
|
|
|
|
create_default_langpack "pt-PT" "pt"
|
|
|
|
|
create_default_langpack "sv-SE" "sv"
|
|
|
|
|
create_default_langpack "zh-TW" "zh"
|
2018-10-18 09:42:41 +00:00
|
|
|
|
%endif # with langpacks
|
2012-07-10 08:35:34 +00:00
|
|
|
|
|
2015-01-13 11:44:47 +00:00
|
|
|
|
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__mkdir_p} %{buildroot}/%{mozappdir}/browser/defaults/preferences
|
2013-05-15 07:33:47 +00:00
|
|
|
|
|
2016-03-21 15:50:45 +00:00
|
|
|
|
# System config dir
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__mkdir_p} %{buildroot}/%{_sysconfdir}/%{name}/pref
|
2016-03-21 15:50:45 +00:00
|
|
|
|
|
2008-01-16 03:16:49 +00:00
|
|
|
|
# System extensions
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__mkdir_p} %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_app_id}
|
|
|
|
|
%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_app_id}
|
2006-10-24 18:57:43 +00:00
|
|
|
|
|
|
|
|
|
# Copy over the LICENSE
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__install} -p -c -m 644 LICENSE %{buildroot}/%{mozappdir}
|
2006-09-18 21:17:39 +00:00
|
|
|
|
|
2014-01-09 09:56:01 +00:00
|
|
|
|
# Use the system hunspell dictionaries
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__rm} -rf %{buildroot}%{mozappdir}/dictionaries
|
|
|
|
|
ln -s %{_datadir}/myspell %{buildroot}%{mozappdir}/dictionaries
|
2014-01-09 09:56:01 +00:00
|
|
|
|
|
2010-06-23 09:10:39 +00:00
|
|
|
|
# Enable crash reporter for Firefox application
|
2013-06-28 14:33:48 +00:00
|
|
|
|
%if %{enable_mozilla_crashreporter}
|
2017-11-08 09:35:53 +00:00
|
|
|
|
sed -i -e "s/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/" %{buildroot}/%{mozappdir}/application.ini
|
2014-04-22 15:02:03 +00:00
|
|
|
|
# Add debuginfo for crash-stats.mozilla.com
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__mkdir_p} %{buildroot}/%{moz_debug_dir}
|
|
|
|
|
%{__cp} objdir/dist/%{symbols_file_name} %{buildroot}/%{moz_debug_dir}
|
2010-06-23 09:10:39 +00:00
|
|
|
|
%endif
|
|
|
|
|
|
2014-09-19 08:40:44 +00:00
|
|
|
|
%if %{run_tests}
|
|
|
|
|
# Add debuginfo for crash-stats.mozilla.com
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__mkdir_p} %{buildroot}/test_results
|
|
|
|
|
%{__cp} test_results/* %{buildroot}/test_results
|
2014-09-19 08:40:44 +00:00
|
|
|
|
%endif
|
|
|
|
|
|
2015-05-22 16:24:00 +00:00
|
|
|
|
# Default
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__cp} %{SOURCE12} %{buildroot}%{mozappdir}/browser/defaults/preferences
|
2014-01-23 09:26:08 +00:00
|
|
|
|
|
2018-01-24 07:44:04 +00:00
|
|
|
|
# Copy over run-mozilla.sh
|
|
|
|
|
%{__cp} build/unix/run-mozilla.sh %{buildroot}%{mozappdir}
|
|
|
|
|
|
2017-04-18 09:12:05 +00:00
|
|
|
|
# Add distribution.ini
|
2017-11-08 09:35:53 +00:00
|
|
|
|
%{__mkdir_p} %{buildroot}%{mozappdir}/distribution
|
|
|
|
|
%{__cp} %{SOURCE26} %{buildroot}%{mozappdir}/distribution
|
2017-04-18 09:12:05 +00:00
|
|
|
|
|
2014-01-23 09:26:08 +00:00
|
|
|
|
# Remove copied libraries to speed up build
|
2017-11-08 09:35:53 +00:00
|
|
|
|
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozjs.so
|
|
|
|
|
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozalloc.so
|
|
|
|
|
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libxul.so
|
2004-09-09 04:44:49 +00:00
|
|
|
|
#---------------------------------------------------------------------
|
|
|
|
|
|
2015-01-13 11:44:47 +00:00
|
|
|
|
# Moves defaults/preferences to browser/defaults/preferences
|
2013-09-09 07:17:46 +00:00
|
|
|
|
%pretrans -p <lua>
|
2013-09-03 16:14:55 +00:00
|
|
|
|
require 'posix'
|
|
|
|
|
require 'os'
|
|
|
|
|
if (posix.stat("%{mozappdir}/browser/defaults/preferences", "type") == "link") then
|
|
|
|
|
posix.unlink("%{mozappdir}/browser/defaults/preferences")
|
|
|
|
|
posix.mkdir("%{mozappdir}/browser/defaults/preferences")
|
|
|
|
|
if (posix.stat("%{mozappdir}/defaults/preferences", "type") == "directory") then
|
2015-05-22 16:24:00 +00:00
|
|
|
|
for i,filename in pairs(posix.dir("%{mozappdir}/defaults/preferences")) do
|
2013-09-03 16:14:55 +00:00
|
|
|
|
os.rename("%{mozappdir}/defaults/preferences/"..filename, "%{mozappdir}/browser/defaults/preferences/"..filename)
|
|
|
|
|
end
|
|
|
|
|
f = io.open("%{mozappdir}/defaults/preferences/README","w")
|
|
|
|
|
if f then
|
|
|
|
|
f:write("Content of this directory has been moved to %{mozappdir}/browser/defaults/preferences.")
|
|
|
|
|
f:close()
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
2015-01-13 11:44:47 +00:00
|
|
|
|
|
2013-08-30 09:34:41 +00:00
|
|
|
|
|
2011-04-16 00:10:51 +00:00
|
|
|
|
%preun
|
|
|
|
|
# is it a final removal?
|
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
|
%{__rm} -rf %{mozappdir}/components
|
|
|
|
|
%{__rm} -rf %{mozappdir}/extensions
|
|
|
|
|
%{__rm} -rf %{mozappdir}/plugins
|
|
|
|
|
%{__rm} -rf %{langpackdir}
|
|
|
|
|
fi
|
|
|
|
|
|
2004-09-09 04:44:49 +00:00
|
|
|
|
%post
|
2008-01-03 18:23:11 +00:00
|
|
|
|
update-desktop-database &> /dev/null || :
|
2009-07-24 10:44:55 +00:00
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
2004-09-14 19:33:39 +00:00
|
|
|
|
|
2004-09-09 04:44:49 +00:00
|
|
|
|
%postun
|
2011-04-16 00:08:42 +00:00
|
|
|
|
update-desktop-database &> /dev/null || :
|
2009-07-24 10:44:55 +00:00
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
2007-12-04 16:25:53 +00:00
|
|
|
|
fi
|
2004-09-09 04:44:49 +00:00
|
|
|
|
|
2009-07-24 10:44:55 +00:00
|
|
|
|
%posttrans
|
|
|
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
2007-07-31 10:50:12 +00:00
|
|
|
|
|
2008-04-08 03:56:54 +00:00
|
|
|
|
%files -f %{name}.lang
|
2004-09-09 04:44:49 +00:00
|
|
|
|
%{_bindir}/firefox
|
2011-05-10 10:53:22 +00:00
|
|
|
|
%{mozappdir}/firefox
|
2013-04-01 12:39:26 +00:00
|
|
|
|
%{mozappdir}/firefox-bin
|
2008-06-18 00:52:47 +00:00
|
|
|
|
%doc %{_mandir}/man1/*
|
2017-09-11 06:49:17 +00:00
|
|
|
|
%dir %{_sysconfdir}/%{name}
|
2016-03-22 09:49:13 +00:00
|
|
|
|
%dir %{_sysconfdir}/%{name}/*
|
2015-08-07 09:39:21 +00:00
|
|
|
|
%dir %{_datadir}/mozilla/extensions/*
|
|
|
|
|
%dir %{_libdir}/mozilla/extensions/*
|
2015-03-26 16:09:24 +00:00
|
|
|
|
%{_datadir}/appdata/*.appdata.xml
|
2018-06-19 09:35:42 +00:00
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2006-09-07 04:19:44 +00:00
|
|
|
|
%dir %{mozappdir}
|
2017-11-08 09:37:08 +00:00
|
|
|
|
%license %{mozappdir}/LICENSE
|
2013-05-15 07:33:47 +00:00
|
|
|
|
%{mozappdir}/browser/chrome
|
|
|
|
|
%{mozappdir}/browser/chrome.manifest
|
2014-01-23 09:26:08 +00:00
|
|
|
|
%{mozappdir}/browser/defaults/preferences/firefox-redhat-default-prefs.js
|
2017-08-02 11:13:59 +00:00
|
|
|
|
%{mozappdir}/browser/features/*.xpi
|
2017-04-18 09:12:05 +00:00
|
|
|
|
%{mozappdir}/distribution/distribution.ini
|
2016-11-14 21:45:26 +00:00
|
|
|
|
# That's Windows only
|
|
|
|
|
%ghost %{mozappdir}/browser/features/aushelper@mozilla.org.xpi
|
2013-05-15 07:33:47 +00:00
|
|
|
|
%attr(644, root, root) %{mozappdir}/browser/blocklist.xml
|
2018-06-19 20:35:02 +00:00
|
|
|
|
#%dir %{mozappdir}/browser/extensions
|
|
|
|
|
#%{mozappdir}/browser/extensions/*
|
2018-10-18 09:42:41 +00:00
|
|
|
|
%if %{with langpacks}
|
2011-03-13 02:44:20 +00:00
|
|
|
|
%dir %{langpackdir}
|
2010-09-21 14:02:15 +00:00
|
|
|
|
%endif
|
2013-05-15 07:33:47 +00:00
|
|
|
|
%{mozappdir}/browser/omni.ja
|
2017-03-06 10:29:49 +00:00
|
|
|
|
%{mozappdir}/chrome.manifest
|
2018-01-24 07:44:04 +00:00
|
|
|
|
%{mozappdir}/run-mozilla.sh
|
2007-12-18 14:33:32 +00:00
|
|
|
|
%{mozappdir}/application.ini
|
2017-06-09 08:13:24 +00:00
|
|
|
|
%{mozappdir}/pingsender
|
2008-06-18 00:52:47 +00:00
|
|
|
|
%exclude %{mozappdir}/removed-files
|
2009-07-22 10:39:24 +00:00
|
|
|
|
%{_datadir}/icons/hicolor/16x16/apps/firefox.png
|
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/firefox.png
|
|
|
|
|
%{_datadir}/icons/hicolor/24x24/apps/firefox.png
|
|
|
|
|
%{_datadir}/icons/hicolor/256x256/apps/firefox.png
|
|
|
|
|
%{_datadir}/icons/hicolor/32x32/apps/firefox.png
|
|
|
|
|
%{_datadir}/icons/hicolor/48x48/apps/firefox.png
|
2015-07-02 13:48:32 +00:00
|
|
|
|
%{_datadir}/icons/hicolor/symbolic/apps/firefox-symbolic.svg
|
2013-06-28 14:33:48 +00:00
|
|
|
|
%if %{enable_mozilla_crashreporter}
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%{mozappdir}/crashreporter
|
|
|
|
|
%{mozappdir}/crashreporter.ini
|
2017-03-06 10:29:49 +00:00
|
|
|
|
%{mozappdir}/minidump-analyzer
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%{mozappdir}/Throbber-small.gif
|
2013-06-13 12:46:13 +00:00
|
|
|
|
%{mozappdir}/browser/crashreporter-override.ini
|
2010-06-23 09:10:39 +00:00
|
|
|
|
%endif
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%{mozappdir}/*.so
|
2015-10-29 14:27:54 +00:00
|
|
|
|
%{mozappdir}/gtk2/*.so
|
2014-01-23 09:26:08 +00:00
|
|
|
|
%{mozappdir}/defaults/pref/channel-prefs.js
|
2014-01-09 09:56:01 +00:00
|
|
|
|
%{mozappdir}/dependentlibs.list
|
|
|
|
|
%{mozappdir}/dictionaries
|
|
|
|
|
%{mozappdir}/omni.ja
|
|
|
|
|
%{mozappdir}/platform.ini
|
|
|
|
|
%{mozappdir}/plugin-container
|
2015-02-20 09:36:49 +00:00
|
|
|
|
%{mozappdir}/gmp-clearkey
|
2018-06-19 20:35:02 +00:00
|
|
|
|
%{mozappdir}/fonts/TwemojiMozilla.ttf
|
2014-10-31 11:42:03 +00:00
|
|
|
|
%if !%{?system_nss}
|
2016-08-19 10:01:30 +00:00
|
|
|
|
%{mozappdir}/libfreeblpriv3.chk
|
2014-10-31 11:42:03 +00:00
|
|
|
|
%{mozappdir}/libnssdbm3.chk
|
|
|
|
|
%{mozappdir}/libsoftokn3.chk
|
2017-08-29 11:01:25 +00:00
|
|
|
|
%exclude %{mozappdir}/libnssckbi.so
|
2014-10-31 11:42:03 +00:00
|
|
|
|
%endif
|
2010-06-23 09:10:39 +00:00
|
|
|
|
|
2004-09-09 04:44:49 +00:00
|
|
|
|
#---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
%changelog
|
2018-10-18 11:43:49 +00:00
|
|
|
|
* Thu Oct 18 2018 Martin Stransky <stransky@redhat.com> - 63.0-1
|
|
|
|
|
- Updated to latest upstream (63.0)
|
|
|
|
|
- Updated PipeWire patch
|
|
|
|
|
|
2018-10-09 14:03:26 +00:00
|
|
|
|
* Tue Oct 9 2018 Martin Stransky <stransky@redhat.com> - 62.0.3-4
|
|
|
|
|
- Added fix for mozbz#1447775 - wrong dropspace sizing.
|
|
|
|
|
|
2018-10-09 11:06:45 +00:00
|
|
|
|
* Tue Oct 9 2018 Martin Stransky <stransky@redhat.com> - 62.0.3-3
|
|
|
|
|
- Added fix for mozbz#1493081 - popups incorrectly placed and sized.
|
|
|
|
|
|
2018-10-08 12:09:44 +00:00
|
|
|
|
* Mon Oct 8 2018 Martin Stransky <stransky@redhat.com> - 62.0.3-2
|
|
|
|
|
- Added pipewire patch (mozbz#1496359)
|
|
|
|
|
- Added Wayland patches from Firefox 63
|
|
|
|
|
- Enable Wayland backed by default on Fedora 30
|
|
|
|
|
|
2018-10-02 09:02:19 +00:00
|
|
|
|
* Tue Oct 2 2018 Martin Stransky <stransky@redhat.com> - 62.0.3-1
|
|
|
|
|
- Updated to latest upstream (62.0.3)
|
|
|
|
|
|
2018-09-26 12:07:12 +00:00
|
|
|
|
* Wed Sep 26 2018 Martin Stransky <stransky@redhat.com> - 62.0.2-3
|
|
|
|
|
- Enabled DBus remote for all Gtk+ backends
|
|
|
|
|
- Removed obsoleted patches
|
|
|
|
|
|
|
|
|
|
* Tue Sep 25 2018 Martin Stransky <stransky@redhat.com> - 62.0.2-2
|
2018-09-25 10:53:34 +00:00
|
|
|
|
- Disable workaround for mozbz#1342344 - GFX glitches when building
|
|
|
|
|
with -O3/gcc 7.2
|
|
|
|
|
|
2018-09-24 12:29:35 +00:00
|
|
|
|
* Mon Sep 24 2018 Jan Horak <jhorak@redhat.com> - 62.0.2-1
|
|
|
|
|
- Update to 62.0.2
|
|
|
|
|
|
2018-09-17 09:10:49 +00:00
|
|
|
|
* Mon Sep 17 2018 Martin Stransky <stransky@redhat.com> - 62.0-3
|
|
|
|
|
- Added spellchecker.dictionary_path pref pointer to /usr/share/myspell.
|
|
|
|
|
Thanks to Peter Oliver (rhbz#1627837)
|
|
|
|
|
|
2018-09-04 09:30:43 +00:00
|
|
|
|
* Tue Sep 4 2018 Martin Stransky <stransky@redhat.com> - 62.0-2
|
|
|
|
|
- Update to 62.0 (Build 2)
|
|
|
|
|
|
2018-08-28 10:40:57 +00:00
|
|
|
|
* Tue Aug 28 2018 Martin Stransky <stransky@redhat.com> - 62.0-1
|
|
|
|
|
- Update to 62.0
|
|
|
|
|
|
2018-08-15 08:34:51 +00:00
|
|
|
|
* Wed Aug 15 2018 Ondrej Zoder <ozoder@redhat.com> - 61.0.2-3
|
|
|
|
|
- Added patches for mozbz#1427700 and mozbz#1463809
|
|
|
|
|
|
2018-08-13 10:56:21 +00:00
|
|
|
|
* Mon Aug 13 2018 Ondrej Zoder <ozoder@redhat.com> - 61.0.2-2
|
|
|
|
|
- Updated symbolic icon
|
|
|
|
|
|
2018-08-09 08:48:00 +00:00
|
|
|
|
* Thu Aug 9 2018 Martin Stransky <stransky@redhat.com> - 61.0.2-1
|
|
|
|
|
- Update to 61.0.2
|
|
|
|
|
|
2018-08-01 09:10:56 +00:00
|
|
|
|
* Wed Aug 1 2018 Ondrej Zoder <ozoder@redhat.com> - 61.0.1-4
|
|
|
|
|
- Fixed rhbz#1610428
|
|
|
|
|
|
2018-07-17 08:31:55 +00:00
|
|
|
|
* Tue Jul 17 2018 Ondrej Zoder <ozoder@redhat.com> - 61.0.1-3
|
|
|
|
|
- Bump release
|
|
|
|
|
|
2018-07-13 00:35:07 +00:00
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 61.0.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
2018-07-10 11:00:59 +00:00
|
|
|
|
* Tue Jul 10 2018 Ondrej Zoder <ozoder@redhat.com> - 61.0.1
|
|
|
|
|
- Update to 61.0.1
|
|
|
|
|
|
2018-06-25 10:11:05 +00:00
|
|
|
|
* Mon Jun 25 2018 Martin Stransky <stransky@redhat.com> - 61.0-4
|
|
|
|
|
- Disabled mozbz#1424422 as it's broken.
|
|
|
|
|
|
2018-06-22 08:20:35 +00:00
|
|
|
|
* Fri Jun 22 2018 Martin Stransky <stransky@redhat.com> - 61.0-3
|
|
|
|
|
- Update to 61.0 Build 3
|
|
|
|
|
|
2018-06-21 11:00:16 +00:00
|
|
|
|
* Thu Jun 21 2018 Martin Stransky <stransky@redhat.com> - 61.0-2
|
|
|
|
|
- Disabled system hunspell due to rhbz#1593494
|
|
|
|
|
|
2018-06-19 09:35:42 +00:00
|
|
|
|
* Tue Jun 19 2018 Martin Stransky <stransky@redhat.com> - 61.0-1
|
|
|
|
|
- Updated to 61.0
|
|
|
|
|
- Created firefox-wayland subpackage with wayland launcher.
|
|
|
|
|
|
2018-06-11 09:17:05 +00:00
|
|
|
|
* Mon Jun 11 2018 Jan Horak <jhorak@redhat.com> - 60.0.2-1
|
|
|
|
|
- Update to 60.0.2
|
|
|
|
|
|
2018-06-04 11:41:12 +00:00
|
|
|
|
* Mon Jun 4 2018 Martin Stransky <stransky@redhat.com> - 60.0.1-6
|
|
|
|
|
- Fixed mozbz#1466473, rhbz#1585300 - Fix GL detection.
|
|
|
|
|
- Fixed desktop file names (rhbz#1585369).
|
|
|
|
|
|
2018-05-30 20:05:15 +00:00
|
|
|
|
* Wed May 30 2018 Martin Stransky <stransky@redhat.com> - 60.0.1-5
|
|
|
|
|
- Added workaround for mozbz#1464823 which makes GL layer
|
|
|
|
|
compositor usable on Wayland.
|
|
|
|
|
|
2018-05-29 12:37:47 +00:00
|
|
|
|
* Tue May 29 2018 Martin Stransky <stransky@redhat.com> - 60.0.1-4
|
|
|
|
|
- Added fix for mozbz#1464808 - Set default D&D action to move
|
|
|
|
|
on Wayland.
|
|
|
|
|
|
2018-05-25 13:23:41 +00:00
|
|
|
|
* Fri May 25 2018 Martin Stransky <stransky@redhat.com> - 60.0.1-3
|
|
|
|
|
- Added fix for mozbz#1436242 (rhbz#1577277) - Firefox IPC crashes.
|
2018-05-25 13:54:30 +00:00
|
|
|
|
- Added fix for mozbz#1462640 - Sandbox disables eglGetDisplay()
|
|
|
|
|
call on Wayland/EGL backend.
|
2018-05-25 13:23:41 +00:00
|
|
|
|
|
2018-05-25 10:50:35 +00:00
|
|
|
|
* Fri May 25 2018 Martin Stransky <stransky@redhat.com> - 60.0.1-2
|
|
|
|
|
- Enable Wayland backend.
|
|
|
|
|
|
2018-05-23 12:41:06 +00:00
|
|
|
|
* Wed May 23 2018 Jan Horak <jhorak@redhat.com> - 60.0.1-1
|
|
|
|
|
- Update to 60.0.1
|
|
|
|
|
|
2018-05-16 11:53:39 +00:00
|
|
|
|
* Wed May 16 2018 Martin Stransky <stransky@redhat.com> - 60.0-6
|
|
|
|
|
- Added patch from rhbz#1498561 - second arch (ppc*) crashes.
|
|
|
|
|
|
2018-05-16 10:08:20 +00:00
|
|
|
|
* Wed May 16 2018 Martin Stransky <stransky@redhat.com> - 60.0-5
|
|
|
|
|
- Disabled jemalloc on second arches.
|
|
|
|
|
|
2018-05-07 14:36:17 +00:00
|
|
|
|
* Thu May 3 2018 Martin Stransky <stransky@redhat.com> - 60.0-4
|
|
|
|
|
- Updated to Firefox 60 build 2
|
|
|
|
|
|
2018-05-03 11:43:55 +00:00
|
|
|
|
* Thu May 3 2018 Martin Stransky <stransky@redhat.com> - 60.0-3
|
|
|
|
|
- Added patch from mozbz#1375074 - fixes aarch64 baseline JIT crashes
|
|
|
|
|
|
2018-05-03 11:25:19 +00:00
|
|
|
|
* Thu May 3 2018 Martin Stransky <stransky@redhat.com> - 60.0-2
|
|
|
|
|
- Make Wayland backend optional and disable it by default due to WebGL issues.
|
|
|
|
|
|
2018-05-02 11:19:18 +00:00
|
|
|
|
* Wed May 2 2018 Martin Stransky <stransky@redhat.com> - 60.0-1
|
2018-05-02 11:12:34 +00:00
|
|
|
|
- Update to Firefox 60 build 1
|
|
|
|
|
- Ship firefox-wayland launch script
|
|
|
|
|
|
2018-04-30 12:57:16 +00:00
|
|
|
|
* Mon Apr 30 2018 Martin Stransky <stransky@redhat.com> - 60.0-0.5
|
|
|
|
|
- Build with Wayland backend enabled.
|
|
|
|
|
|
2018-04-30 12:26:28 +00:00
|
|
|
|
* Mon Apr 30 2018 Martin Stransky <stransky@redhat.com> - 60.0-0.4
|
2018-04-30 10:07:49 +00:00
|
|
|
|
- Added patches for correct popups position at CSD mode (mozilla-1457691).
|
|
|
|
|
|
2018-04-27 08:45:34 +00:00
|
|
|
|
* Fri Apr 27 2018 Martin Stransky <stransky@redhat.com> - 60.0-0.2
|
|
|
|
|
- Update to 60.0 Beta 16
|
|
|
|
|
|
2018-04-24 09:33:36 +00:00
|
|
|
|
* Tue Apr 24 2018 Martin Stransky <stransky@redhat.com> - 60.0-0.1
|
2018-04-26 10:10:52 +00:00
|
|
|
|
- Update to 60.0 Beta 15
|
2018-04-24 09:33:36 +00:00
|
|
|
|
|