f367952
# Filtering of private libraries
f367952
%global privlibs libbrowsercomps
f367952
%global privlibs %{privlibs}|libclearkey
f367952
%global privlibs %{privlibs}|libdbusservice
f367952
%global privlibs %{privlibs}|libmozalloc
f367952
%global privlibs %{privlibs}|libmozgnome
4c9800a
%global privlibs %{privlibs}|liblgpllibs
f367952
f367952
%global __provides_exclude ^(%{privlibs})\\.so
f367952
%global __requires_exclude ^(%{privlibs})\\.so
f367952
#
f367952
sagitter a7fb410
##Active/Deactive language files handling
c2e5d02
%global build_langpacks  0
78aec85
78aec85
%define default_bookmarks_file  %{_datadir}/bookmarks/default-bookmarks.html
sagitter a7fb410
sagitter a7fb410
##Define installation directories
78aec85
%global icecatappdir    %{_libdir}/%{name}
sagitter a7fb410
%global icecat_ver      %{name}-%{version}
sagitter a7fb410
%global icecat_devel    %{name}-devel-%{version}
sagitter a7fb410
sagitter a7fb410
##Define language files directory
sagitter a7fb410
%global langpackdir     %{icecatappdir}/langpacks
sagitter a7fb410
8aab9fe
%global toolkit_gtk3      1
8aab9fe
43af98f
# Builds for debugging
211f094
%global debug_build       0
43af98f
78aec85
# Big endian platforms
78aec85
%ifarch ppc64 s390x
78aec85
# Javascript Intl API is not supported on big endian platforms right now:
78aec85
# https://bugzilla.mozilla.org/show_bug.cgi?id=1322212
6edc822
%global big_endian        1
78aec85
%endif
78aec85
78aec85
# Use system sqlite?
78aec85
%global system_sqlite     1
78aec85
78aec85
%if %{?system_sqlite}
78aec85
%global sqlite_version 3.8.4.2
78aec85
# The actual sqlite version (see #480989):
78aec85
%global sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo 65536)
78aec85
%endif
78aec85
78aec85
# Use system libicu?
80d566c
%if 0%{?fedora} > 28
78aec85
%global system_libicu      1
78aec85
%else
78aec85
%global system_libicu      0
78aec85
%endif
78aec85
78aec85
# Use system nspr/nss?
78aec85
%global system_nss        1
78aec85
78aec85
%if %{?system_nss}
1063c33
%global nspr_version 4.17.0
1063c33
# NSS/NSPR quite often ends in build override, so as requirement the version
1063c33
# we're building against could bring us some broken dependencies from time to time.
1063c33
#%%global nspr_build_version %%(pkg-config --silence-errors --modversion nspr 2>/dev/null || echo 65536)
1063c33
%global nspr_build_version %{nspr_version}
1063c33
%global nss_version 3.34
1063c33
#%%global nss_build_version %%(pkg-config --silence-errors --modversion nss 2>/dev/null || echo 65536)
1063c33
%global nss_build_version %{nss_version}
78aec85
%endif
78aec85
c2e5d02
## Audio backends
cdd01b1
%bcond_without pulseaudio
c2e5d02
%bcond_without jack
cdd01b1
sagitter a7fb410
Name:    icecat
0a2348a
Version: 52.8.1
7311577
Release: 3%{?dist}
sagitter a7fb410
Summary: GNU version of Firefox browser
sagitter a7fb410
sagitter a7fb410
## Tri-licensing scheme for Gnuzilla/IceCat in parentheses, and licenses for the extensions included
78aec85
License: (MPLv1.1 or GPLv2+ or LGPLv2+) and GPLv3+ and MIT and BSD and ISC and ASL 2.0 and MPLv2.0
sagitter a7fb410
URL:     http://www.gnu.org/software/gnuzilla/
c2e5d02
c2e5d02
## Source archive created by scripts based on Gnuzilla files.
c2e5d02
## Modified files are hosted in a dedicated fork repository:
c2e5d02
## https://fedorapeople.org/cgit/sagitter/public_git/icecat.git/
0a2348a
Source0: https://sagitter.fedorapeople.org/icecat/v%{version}/%{name}-%{version}-gnu1.tar.bz2
sagitter a7fb410
Source1: %{name}.desktop
sagitter a7fb410
Source2: %{name}.png
sagitter f6527ea
Source3: %{name}-mozconfig-common
sagitter a7fb410
8aab9fe
%if %{build_langpacks}
0cfa165
##Language files downloaded by source7 script
a92b0ea
Source4:  %{name}-%{version}-langpacks.tar.gz
8aab9fe
%endif
527f1bb
Source7:  %{name}-lang_download.sh
sagitter a7fb410
sagitter a7fb410
##All license files
sagitter a7fb410
##Download from http://www.gnu.org/licenses
sagitter a7fb410
##Download from http://www.mozilla.org/MPL/1.1/index.txt
sagitter abfa85b
##Download from https://www.mozilla.org/MPL/2.0/index.txt
sagitter f6527ea
Source5: %{name}-COPYING-licensefiles.tar.gz
sagitter a7fb410
sagitter a7fb410
##manpage file
sagitter f6527ea
Source6: %{name}.1
sagitter a7fb410
0a2348a
# Whitelisting errors
0a2348a
# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#whitelist
0a2348a
Source8: %{name}.rpmlintrc
0a2348a
78aec85
# Build patches
78aec85
Patch0:         firefox-install-dir.patch
78aec85
Patch3:         mozilla-build-arm.patch
b367d8e
sagitter a7fb410
##Using system Python Virtualenv
sagitter 7c80051
Patch1: %{name}-virtualenv.patch
sagitter 7c80051
32e1fcc
# Remove unrecognized flags
32e1fcc
Patch6: %{name}-remove_unrecognized_flags.patch
32e1fcc
78aec85
# Unrecognized file?
78aec85
Patch7: %{name}-fix_jar.patch
4c9800a
78aec85
# Fix files list for installer
78aec85
Patch8: %{name}-fix_installer.patch
bdc44c0
153d3b4
# xlocale.h not provided by glibc-headers
153d3b4
# Set path of libcxx-devel
153d3b4
Patch9: %{name}-locale.patch
153d3b4
78aec85
# https://bugzilla.redhat.com/show_bug.cgi?id=814879#c3
78aec85
Patch18:        xulrunner-24.0-jemalloc-ppc.patch
153d3b4
78aec85
# workaround linking issue on s390 (JSContext::updateMallocCounter(size_t) not found)
78aec85
Patch19:        xulrunner-24.0-s390-inlines.patch
78aec85
Patch20:        firefox-build-prbool.patch
78aec85
Patch26:        build-icu-big-endian.patch
800dd2b
8aab9fe
# Fedora specific patches
78aec85
# Unable to install addons from https pages
78aec85
Patch204:        rhbz-966424.patch
78aec85
Patch219:        rhbz-1173156.patch
78aec85
Patch221:        firefox-fedora-ua.patch
78aec85
Patch224:        mozilla-1170092.patch
78aec85
Patch225:        mozilla-1005640-accept-lang.patch
78aec85
#ARM run-time patch
78aec85
Patch226:        rhbz-1354671.patch
78aec85
78aec85
# Fix depends on p11-kit-trust 0.23.4 and enhanced ca-certificates.rpm
78aec85
Patch227:        rhbz-1400293-fix-mozilla-1324096.patch
8aab9fe
8aab9fe
# Upstream patches
78aec85
Patch304:        mozilla-1253216.patch
78aec85
Patch402:        mozilla-1196777.patch
78aec85
Patch406:        mozilla-256180.patch
78aec85
# Rebase Gtk3 widget code to latest trunk to
78aec85
# fix various rendering problems
78aec85
Patch407:        widget-rebase.patch
e68483c
Patch411:        mozilla-1158076-1.patch
e68483c
Patch412:        mozilla-1158076-2.patch
13c61e3
78aec85
# Debian patches
78aec85
Patch500:        mozilla-440908.patch
be7756a
sagitter a7fb410
BuildRequires:  alsa-lib-devel
78aec85
BuildRequires:  autoconf213
sagitter 7c80051
BuildRequires:  bzip2-devel
sagitter f6527ea
BuildRequires:  cairo-devel
a0958e3
BuildRequires:  ccache
sagitter a7fb410
BuildRequires:  dbus-devel
sagitter a7fb410
BuildRequires:  dbus-glib-devel
c479330
BuildRequires:  dconf
sagitter a7fb410
BuildRequires:  desktop-file-utils
13059f3
BuildRequires:  gcc, gcc-c++
78aec85
BuildRequires:  fedora-bookmarks
sagitter a7fb410
BuildRequires:  freetype-devel
sagitter a7fb410
BuildRequires:  gdk-pixbuf2
sagitter a7fb410
BuildRequires:  glib2-devel
68dd8a9
BuildRequires:  pkgconfig(gtk+-2.0)
8aab9fe
%if %{toolkit_gtk3}
68dd8a9
BuildRequires:  pkgconfig(gtk+-3.0)
8aab9fe
%endif
sagitter dda22cb
BuildRequires:  gstreamer1-devel
sagitter dda22cb
BuildRequires:  gstreamer1-plugins-base-devel
a0958e3
BuildRequires:  gstreamer-devel
a0958e3
BuildRequires:  gstreamer-plugins-base-devel
sagitter a7fb410
BuildRequires:  hunspell-devel
sagitter a7fb410
BuildRequires:  ImageMagick
sagitter 7c80051
BuildRequires:  java-1.8.0-openjdk-headless
sagitter a7fb410
BuildRequires:  intltool
c479330
BuildRequires:  libappstream-glib
sagitter a7fb410
BuildRequires:  libevent-devel
sagitter f6527ea
BuildRequires:  libicu-devel
sagitter a7fb410
BuildRequires:  libIDL-devel
sagitter abfa85b
BuildRequires:  libjpeg-turbo-devel
8a88598
BuildRequires:  libjpeg-devel
sagitter a7fb410
BuildRequires:  libX11-devel
sagitter a7fb410
BuildRequires:  libXt-devel
8aab9fe
BuildRequires:  libXrender-devel
sagitter a7fb410
BuildRequires:  libyuv-devel
sagitter a7fb410
BuildRequires:  libXinerama-devel
sagitter a7fb410
BuildRequires:  libffi-devel
sagitter a7fb410
BuildRequires:  libnotify-devel
sagitter a7fb410
BuildRequires:  libpng-devel
6afc67a
BuildRequires:  libvpx-devel
sagitter 7c80051
BuildRequires:  libzip-devel
8aab9fe
BuildRequires:  mesa-libGL-devel
78aec85
%if %{?system_nss}
78aec85
BuildRequires:  pkgconfig(nspr) >= %{nspr_version}
78aec85
BuildRequires:  pkgconfig(nss) >= %{nss_version}
78aec85
BuildRequires:  nss-static >= %{nss_version}
78aec85
%endif
c2e5d02
153d3b4
# xlocale.h not provided by glibc-headers > 2.24
153d3b4
# Set path of libcxx-devel
153d3b4
BuildRequires:  libcxx-devel
sagitter dcc8ead
BuildRequires:  openjpeg-devel
sagitter 7c80051
BuildRequires:  pango-devel
sagitter a7fb410
BuildRequires:  python2-devel
85f4a69
BuildRequires:  python2-blessings
85f4a69
BuildRequires:  python2-mock
85f4a69
BuildRequires:  python2-ply
85f4a69
BuildRequires:  python2-psutil
85f4a69
BuildRequires:  python2-setuptools
85f4a69
BuildRequires:  python2-virtualenv
13059f3
%if 0%{?fedora} > 27
13059f3
BuildRequires:  python2-which
13059f3
%else
sagitter a7fb410
BuildRequires:  python-which
13059f3
%endif
68dd8a9
BuildRequires:  pkgconfig(gconf-2.0)
68dd8a9
BuildRequires:  pkgconfig(xrender)
68dd8a9
BuildRequires:  pkgconfig(libstartup-notification-1.0)
68dd8a9
BuildRequires:  pkgconfig(dri)
68dd8a9
BuildRequires:  pkgconfig(libcurl)
cdd01b1
%if %{with pulseaudio}
sagitter a7fb410
BuildRequires:  pulseaudio-libs-devel
cdd01b1
%endif
c2e5d02
%if %{with jack}
c2e5d02
BuildRequires:  jack-audio-connection-kit-devel
c2e5d02
%endif
78aec85
BuildRequires:  yasm
78aec85
78aec85
%if %{?system_sqlite}
78aec85
BuildRequires:  pkgconfig(sqlite3) >= %{sqlite_version}
78aec85
Requires:       sqlite >= %{sqlite_build_version}
78aec85
%endif
sagitter a7fb410
c479330
Requires:       dconf
sagitter a7fb410
Requires:       mozilla-filesystem
c2e5d02
78aec85
%if %{?system_nss}
78aec85
Requires:       nspr >= %{nspr_build_version}
78aec85
Requires:       nss >= %{nss_build_version}
78aec85
%endif
78aec85
Requires:       fedora-bookmarks
881984d
Suggests:       mozilla-https-everywhere
c2e5d02
Suggests:       mozilla-ublock-origin
sagitter f6527ea
sagitter a7fb410
Provides:       webclient
sagitter 7c80051
sagitter a7fb410
%description
3c50fcc
GNUZilla Icecat is a fully-free fork of Mozilla Firefox ESR.
32e1fcc
Extensions included to this version of IceCat:
13c61e3
 
6949729
 * LibreJS
13c61e3
   GNU LibreJS aims to address the JavaScript problem described in Richard
13c61e3
   Stallman's article The JavaScript Trap.
13c61e3
 
6949729
 * SpyBlock
13c61e3
   Blocks privacy trackers while in normal browsing mode, and all third party
13c61e3
   requests when in private browsing mode. Based on Adblock Plus.
13c61e3
 
6949729
 * AboutIceCat
13c61e3
   Adds a custom "about:icecat" homepage with links to information about the
13c61e3
   free software and privacy features in IceCat, and check-boxes to enable
13c61e3
   and disable the ones more prone to break websites.
13c61e3
 
6949729
 * HTML5-video-everywhere
13c61e3
   Uses the native video player to play embedded videos from different sources
sagitter abfa85b
b367d8e
 * Fingerprinting countermeasures: Fingerprinting is a series of techniques
c648b94
   allowing to uniquely identify a browser based on specific characteristics of
b367d8e
   that particular instance (like what fonts are available in that machine).
b367d8e
   Unlike cookies the user cannot opt-out of being tracked this way,
b367d8e
   so the browser has to avoid giving away that kind of hints.
b367d8e
sagitter a7fb410
%prep
sagitter 7c80051
%setup -q -n %{name}-%{version}
sagitter a7fb410
e90006b
# Remove reference to non-free files
2806b78
sed -i '/[test_ril_code_quality.py]/d' dom/system/gonk/tests/marionette/manifest.ini
7a1d81f
rm -f dom/system/gonk/tests/marionette/test_ril_code_quality.py
e90006b
sagitter 7c80051
##Copy license files
sagitter f6527ea
tar -xf %{SOURCE5}
sagitter a7fb410
70d664e
##Prevent HTTPS-everywhere addon's installation
70d664e
sed '/https-everywhere/d' -i ./browser/installer/package-manifest.in
70d664e
573a284
#Fix permissions
573a284
find . -type f -name "*.h" -exec chmod 0644 '{}' \;
573a284
find . -type f -name "*.cpp" -exec chmod 0644 '{}' \;
573a284
find . -type f -name "*.cc" -exec chmod 0644 '{}' \;
7a1d81f
find . -type f -name "*.c" -exec chmod 0644 '{}' \;
573a284
find . -type f -name "*.py" | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python2}|'
573a284
78aec85
# Build patches, can't change backup suffix from default because during build
78aec85
# there is a compare of config and js/config directories and .orig suffix is
78aec85
# ignored during this compare.
78aec85
%patch0  -p1
8aab9fe
78aec85
%patch18 -p1 -b .jemalloc-ppc
78aec85
%patch19 -p2 -b .s390-inlines
78aec85
%patch20 -p1 -b .prbool
sagitter dda22cb
78aec85
%patch3  -p1 -b .arm
32e1fcc
78aec85
%patch1 -p0
78aec85
%patch6 -p0
78aec85
%patch7 -p0
78aec85
%patch8 -p0
78aec85
78aec85
# Fedora patches
78aec85
%patch204 -p2 -b .966424
78aec85
%patch219 -p2 -b .rhbz-1173156
78aec85
%patch221 -p2 -b .fedora-ua
78aec85
%patch224 -p1 -b .1170092
78aec85
%patch225 -p1 -b .1005640-accept-lang
78aec85
#ARM run-time patch
78aec85
%ifarch aarch64
78aec85
%patch226 -p1 -b .1354671
bdc44c0
%endif
bdc44c0
78aec85
# Fix depends on p11-kit-trust 0.23.4 and enhanced ca-certificates.rpm
78aec85
%patch227 -p1 -b .rh1400293
dab63ff
78aec85
%patch304 -p1 -b .1253216
78aec85
%patch402 -p1 -b .1196777
78aec85
%patch406 -p0 -b .256180
78aec85
# Rebase Gtk3 widget code to latest trunk to
78aec85
# fix various rendering problems
78aec85
%patch407 -p1 -b .widget-rebase
e68483c
%patch411 -p1 -b .1158076-1
e68483c
%patch412 -p1 -b .1158076-2
68dd8a9
78aec85
# Debian extension patch
78aec85
%patch500 -p1 -b .440908
8a88598
78aec85
# Patch for big endian platforms only
78aec85
%if 0%{?big_endian}
78aec85
%patch26 -p1 -b .icu
153d3b4
%if 0%{?fedora} > 26
153d3b4
%patch9  -p0 -b .locale
153d3b4
%endif
78aec85
%endif
be7756a
sagitter a7fb410
##Remove default configuration and copy the customized one
78aec85
%{__rm} -f .mozconfig
78aec85
cp -p %{SOURCE3} .mozconfig
sagitter a7fb410
78aec85
echo "ac_add_options --enable-official-branding" >> .mozconfig
1e3af9c
1e3af9c
%ifnarch %{arm} 
1e3af9c
echo "ac_add_options --enable-webrtc" >> .mozconfig
1e3af9c
%else
78aec85
echo "ac_add_options --disable-webrtc" >> .mozconfig
1e3af9c
%endif
sagitter a7fb410
78aec85
%if %{with pulseaudio}
78aec85
echo "ac_add_options --enable-pulseaudio" >> .mozconfig
sagitter 7c80051
%endif
sagitter 7c80051
c2e5d02
%if %{with jack}
c2e5d02
echo "ac_add_options --enable-jack" >> .mozconfig
c2e5d02
%endif
c2e5d02
6b171b7
%ifarch s390x
78aec85
echo "ac_add_options --disable-jemalloc" >> .mozconfig
8aab9fe
%endif
8aab9fe
78aec85
%if %{?system_nss}
78aec85
echo "ac_add_options --with-nspr-cflags='%(%{_bindir}/nspr-config --cflags)'" >> .mozconfig
78aec85
echo "ac_add_options --with-nspr-libs='%(%{_bindir}/nspr-config --libs)'" >> .mozconfig
78aec85
echo "ac_add_options --with-system-nss" >>.mozconfig
78aec85
%endif
sagitter 7c80051
%ifarch %{arm}
78aec85
echo "ac_add_options --disable-elf-hack" >> .mozconfig
sagitter a7fb410
%endif
78aec85
%if %{?system_libicu}
78aec85
echo "ac_add_options --with-system-icu" >> .mozconfig
78aec85
%else
78aec85
echo "ac_add_options --without-system-icu" >> .mozconfig
daa372c
%endif
78aec85
echo "ac_add_options --disable-system-cairo" >> .mozconfig
78aec85
echo "ac_add_options --enable-system-hunspell" >> .mozconfig
78aec85
echo "ac_add_options --enable-system-pixman" >> .mozconfig
78aec85
%if %{?system_sqlite}
78aec85
echo "ac_add_options --enable-system-sqlite" >> .mozconfig
8aab9fe
%else
78aec85
echo "ac_add_options --disable-system-sqlite" >> .mozconfig
8aab9fe
%endif
78aec85
echo "ac_add_options --with-system-zlib" >> .mozconfig
78aec85
echo "ac_add_options --with-system-bz2" >> .mozconfig
78aec85
echo "ac_add_options --with-system-libevent=%{_prefix}" >> .mozconfig
78aec85
echo "ac_add_options --enable-llvm-hacks" >> .mozconfig
78aec85
echo "ac_add_options --with-system-libvpx" >> .mozconfig
78aec85
echo "ac_add_options --disable-libjpeg-turbo" >> .mozconfig
78aec85
echo "ac_add_options --with-system-jpeg" >> .mozconfig
78aec85
echo "ac_add_options --disable-crashreporter" >> .mozconfig
78aec85
echo "ac_add_options --disable-eme" >> .mozconfig
8aab9fe
2ed4264
%ifarch aarch64 ppc64 s390x %{arm} %{ix86}
78aec85
echo "ac_add_options --disable-skia" >> .mozconfig
cdd01b1
%endif
cdd01b1
78aec85
%if %{?debug_build}
78aec85
echo "ac_add_options --enable-debug" >> .mozconfig
78aec85
echo "ac_add_options --disable-optimize" >> .mozconfig
78aec85
echo "ac_add_options --enable-dtrace" >> .mozconfig
4c9800a
%else
78aec85
%define optimize_flags "none"
c2e5d02
# Fedora with GCC-7 needs to disable default build flags (mozbz#1342344)
538aff2
%ifnarch s390 s390x
78aec85
%define optimize_flags "-g -O2"
4c9800a
%endif
2ed4264
%ifarch %{arm} s390 s390x
78aec85
# ARMv7 need that (rhbz#1426850)
538aff2
%define optimize_flags "-g -O2 -fno-schedule-insns"
sagitter f6527ea
%endif
78aec85
%ifarch ppc64le aarch64
78aec85
%define optimize_flags "-g -O2"
fed4174
%endif
78aec85
%if %{optimize_flags} != "none"
78aec85
echo 'ac_add_options --enable-optimize=%{?optimize_flags}' >> .mozconfig
78aec85
%else
78aec85
echo 'ac_add_options --enable-optimize' >> .mozconfig
2d55698
%endif
78aec85
echo "ac_add_options --disable-debug" >> .mozconfig
43af98f
%endif
sagitter 0ede272
78aec85
%if %{?debug_build}
78aec85
echo "ac_add_options --enable-debug" >> .mozconfig
78aec85
echo "ac_add_options --disable-optimize" >> .mozconfig
cda295e
%else
78aec85
echo "ac_add_options --disable-debug" >> .mozconfig
cda295e
%endif
78aec85
echo "ac_add_options --disable-strip" >> .mozconfig
78aec85
echo "ac_add_options --disable-install-strip" >> .mozconfig
78aec85
echo "ac_add_options --disable-tests" >> .mozconfig
22216d3
echo "ac_add_options --with-l10n-base=$PWD/l10n" >> .mozconfig
8aab9fe
78aec85
%build
78aec85
%if %{?system_sqlite}
78aec85
# Do not proceed with build if the sqlite require would be broken:
78aec85
# make sure the minimum requirement is non-empty, ...
78aec85
sqlite_version=$(expr "%{sqlite_version}" : '\([0-9]*\.\)[0-9]*\.') || exit 1
78aec85
# ... and that major number of the computed build-time version matches:
78aec85
case "%{sqlite_build_version}" in
78aec85
  "$sqlite_version"*) ;;
78aec85
  *) exit 1 ;;
78aec85
esac
8aab9fe
%endif
8aab9fe
78aec85
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
78aec85
%if 0%{?big_endian}
78aec85
  ./mach python intl/icu_sources_data.py .
78aec85
  ls -l config/external/icu/data
78aec85
  rm -f config/external/icu/data/icudt*l.dat
78aec85
%endif
78aec85
78aec85
# Update the various config.guess to upstream release for aarch64 support
78aec85
find ./ -name config.guess -exec cp /usr/lib/rpm/config.guess {} ';'
78aec85
78aec85
# -fpermissive is needed to build with gcc 4.6+ which has become stricter
78aec85
#
78aec85
# Mozilla builds with -Wall with exception of a few warnings which show up
78aec85
# everywhere in the code; so, don't override that.
78aec85
#
78aec85
# Disable C++ exceptions since Mozilla code is not exception-safe
78aec85
#
78aec85
MOZ_OPT_FLAGS=$(echo "%{optflags}" | %{__sed} -e 's/-Wall//')
78aec85
#rhbz#1037063
78aec85
# -Werror=format-security causes build failures when -Wno-format is explicitly given
78aec85
# for some sources
78aec85
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
78aec85
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
78aec85
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
78aec85
# Disable null pointer gcc6 optimization in gcc6 (rhbz#1328045)
78aec85
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fno-delete-null-pointer-checks"
78aec85
# Use hardened build?
78aec85
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
78aec85
43af98f
%if %{?debug_build}
78aec85
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
43af98f
%endif
2ed4264
%ifarch s390 s390x %{arm}
2ed4264
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/' -e 's/-O2/-O1/')
78aec85
# If MOZ_DEBUG_FLAGS is empty, firefox's build will default it to "-g" which
78aec85
# overrides the -g1 from line above and breaks building on s390
78aec85
# (OOM when linking, rhbz#1238225)
78aec85
export MOZ_DEBUG_FLAGS=" "
78aec85
%endif
2ed4264
%ifarch s390 s390x %{arm} %{power64} aarch64 %{arm}
78aec85
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
028c4a3
%endif
78aec85
export CFLAGS=$MOZ_OPT_FLAGS
78aec85
export CXXFLAGS=$MOZ_OPT_FLAGS
78aec85
export LDFLAGS=$MOZ_LINK_FLAGS
78aec85
78aec85
export PREFIX='%{_prefix}'
78aec85
export LIBDIR='%{_libdir}'
78aec85
export PKG_CONFIG='%{_bindir}/pkg-config'
78aec85
export PYTHON='%{__python2}'
sagitter abfa85b
78aec85
MOZ_SMP_FLAGS=-j1
2963315
# On x86 architectures, Mozilla can build up to 4 jobs at once in parallel,
2963315
# however builds tend to fail on other arches when building in parallel.
2ed4264
%ifarch x86_64 %{power64} aarch64
2963315
[ -z "$RPM_BUILD_NCPUS" ] && \
78aec85
     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
2963315
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
2963315
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
2963315
[ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j8
c2144d4
%endif
710f31e
78aec85
make -f client.mk build STRIP="/bin/true" MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS" MOZ_OPTIMIZE_FLAGS=" -freorder-blocks -fno-reorder-functions" MOZ_SERVICES_SYNC="1"
sagitter a7fb410
sagitter 7c80051
%install
78aec85
# set up our default bookmarks
78aec85
%{__cp} -p %{default_bookmarks_file} objdir/dist/bin/browser/chrome/en-US/locale/browser/bookmarks.html
78aec85
78aec85
make -C objdir install DESTDIR=$RPM_BUILD_ROOT
sagitter a7fb410
sagitter 7c80051
##Resize IceCat icon
sagitter a7fb410
for i in 16 22 24 32 36 48 64 72 96 128 256 ; do
sagitter a7fb410
  mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${i}x${i}/apps
78aec85
  convert -geometry ${i} %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
sagitter a7fb410
done
sagitter a7fb410
sagitter 7c80051
##desktop file installation
361dc4d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
361dc4d
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications
sagitter a7fb410
sagitter 7c80051
##Install man page
sagitter 7c80051
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
sagitter f6527ea
install -p -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_mandir}/man1
sagitter a7fb410
84b37b6
##Make sure locale works for langpacks
78aec85
cat > objdir/dist/bin/browser/defaults/preferences/icecat-l10n.js << EOF
84b37b6
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
84b37b6
EOF
84b37b6
84b37b6
##Extract langpacks, make any mods needed, repack the langpack, and install it.
sagitter 7c80051
%if %{build_langpacks}
sagitter 7c80051
echo > %{name}.lang
sagitter a7fb410
mkdir -p $RPM_BUILD_ROOT%{langpackdir}
sagitter f6527ea
tar xf %{SOURCE4}
dab63ff
 for langpack in `ls langpacks/*.xpi`; do
sagitter a7fb410
  language=`basename $langpack .xpi`
a0958e3
  extensionID=langpack-$language@icecat.mozilla.org
sagitter a7fb410
  mkdir -p $extensionID
sagitter a7fb410
  unzip -qq $langpack -d $extensionID
sagitter a7fb410
  find $extensionID -type f | xargs chmod 644
sagitter a7fb410
sagitter a7fb410
  cd $extensionID
sagitter a7fb410
  zip -qq -r9mX ../${extensionID}.xpi *
sagitter a7fb410
  cd -
sagitter a7fb410
sagitter a7fb410
  install -p -m 644 ${extensionID}.xpi $RPM_BUILD_ROOT%{langpackdir}
sagitter a7fb410
  language=`echo $language | sed -e 's/-/_/g'`
sagitter a7fb410
  echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> %{name}.lang
a0958e3
 done
sagitter a7fb410
rm -rf %{name}-langpacks
sagitter a7fb410
84b37b6
##Install langpack workaround (see #707100, #821169)
sagitter a7fb410
function create_default_langpack() {
sagitter a7fb410
language_long=$1
sagitter a7fb410
language_short=$2
sagitter a7fb410
cd $RPM_BUILD_ROOT%{langpackdir}
a0958e3
ln -s langpack-$language_long@icecat.mozilla.org.xpi langpack-$language_short@icecat.mozilla.org.xpi
sagitter a7fb410
cd -
a0958e3
echo "%%lang($language_short) %{langpackdir}/langpack-$language_short@icecat.mozilla.org.xpi" >> %{name}.lang
sagitter a7fb410
}
78aec85
%endif
78aec85
78aec85
# Remove copied libraries to speed up build
78aec85
ln -sf %{icecatappdir}/libmozjs.so ${RPM_BUILD_ROOT}%{_libdir}/%{icecat_devel}/sdk/lib/libmozjs.so
78aec85
ln -sf %{icecatappdir}/libmozalloc.so ${RPM_BUILD_ROOT}%{_libdir}/%{icecat_devel}/sdk/lib/libmozalloc.so
78aec85
ln -sf %{icecatappdir}/libxul.so ${RPM_BUILD_ROOT}%{_libdir}/%{icecat_devel}/sdk/lib/libxul.so
78aec85
c2e5d02
# Remove useless backup files
c2e5d02
rm -rf ${RPM_BUILD_ROOT}%{icecatappdir}/browser/extensions/SimpleSumOfUs@0xbeef.coffee
c2e5d02
78aec85
# Link identical binaries
78aec85
ln -sf %{icecatappdir}/%{name}-bin ${RPM_BUILD_ROOT}%{icecatappdir}/%{name}
78aec85
78aec85
# Use the system hunspell dictionaries
78aec85
rm -rf ${RPM_BUILD_ROOT}%{icecatappdir}/dictionaries
78aec85
ln -s %{_datadir}/myspell ${RPM_BUILD_ROOT}%{icecatappdir}/dictionaries
sagitter a7fb410
0a2348a
# Remove unused directories
573a284
rm -rf $RPM_BUILD_ROOT%{_libdir}/%{icecat_devel}
573a284
rm -rf $RPM_BUILD_ROOT%{_datadir}/idl/%{icecat_ver}
573a284
rm -rf $RPM_BUILD_ROOT%{_includedir}/%{icecat_ver}
573a284
rm -rf $RPM_BUILD_ROOT%{icecatappdir}/removed-files
sagitter a7fb410
d083ea5
mkdir -p $RPM_BUILD_ROOT%{_datadir}/metainfo
d083ea5
cat > $RPM_BUILD_ROOT%{_datadir}/metainfo/icecat.appdata.xml <
84b37b6
13c61e3
<component type="desktop">
361dc4d
  <id type="desktop">icecat.desktop</id>
84b37b6
  <metadata_license>CC0-1.0</metadata_license>
1dc2ae6
  <summary>GNU version of Firefox browser</summary>
cb7bdf2
  <name>icecat</name>
78aec85
  <project_license>(MPL-1.1 or GPL-2.0+ or LGPL-2.0+) and GPL-3.0+ and MIT and BSD and ISC and ASL-2.0 and MPL-2.0</project_license>
1dc2ae6
  <categories>
1dc2ae6
   <category>Internet</category>
1dc2ae6
   <category>Web Browser</category>
1dc2ae6
  </categories>
84b37b6
  <description>
84b37b6
    

3c50fcc
      GNUzilla is the GNU version of the Mozilla suite, and GNU IceCat is the GNU version of the Firefox ESR browser.
14c49a1
    

14c49a1
    

14c49a1
       Its main advantage is an ethical one: it is entirely free software:
14c49a1
       while the Firefox source code from the Mozilla project is free software,
1dc2ae6
       they distribute and recommend non-free software as plug-ins and addons.
1dc2ae6
       Also their trademark license restricts distribution in several ways incompatible with freedom 0.
84b37b6
    

8aab9fe
    

32e1fcc
       Extensions included to this version of IceCat:
8774e20
        - LibreJS
3f59145
          GNU LibreJS aims to address the JavaScript problem described in Richard
6949729
          Stallman's article The JavaScript Trap.
8774e20
        - SpyBlock
3f59145
          Blocks privacy trackers while in normal browsing mode, and all third party
6949729
          requests when in private browsing mode. Based on Adblock Plus.
8774e20
        - AboutIceCat
3f59145
          Adds a custom "about:icecat" homepage with links to information about the
3f59145
          free software and privacy features in IceCat, and check-boxes to enable
6949729
          and disable the ones more prone to break websites.
8774e20
        - HTML5-video-everywhere
6949729
          Uses the native video player to play embedded videos from different sources
b367d8e
        - Fingerprinting countermeasures: Fingerprinting is a series of techniques
aaac480
          allowing to uniquely identify a browser based on specific characteristics of
b367d8e
          that particular instance (like what fonts are available in that machine).
b367d8e
          Unlike cookies the user cannot opt-out of being tracked this way,
b367d8e
          so the browser has to avoid giving away that kind of hints.
8aab9fe
     

84b37b6
  </description>
84b37b6
  <url type="homepage">http://www.gnu.org/software/gnuzilla/</url>
84b37b6
  <screenshots>
8774e20
    <screenshot type="default">
c2e5d02
     <image>https://sagitter.fedorapeople.org/icecat/icecat-screenshots/icecat1.png</image>
8774e20
    </screenshot>
8774e20
    <screenshot>
c2e5d02
     <image>https://sagitter.fedorapeople.org/icecat/icecat-screenshots/icecat2.png</image>
8774e20
    </screenshot>
8774e20
    <screenshot>
c2e5d02
     <image>https://sagitter.fedorapeople.org/icecat/icecat-screenshots/icecat3.png</image>
8774e20
    </screenshot>
8774e20
    <screenshot>
c2e5d02
     <image>https://sagitter.fedorapeople.org/icecat/icecat-screenshots/icecat4.png</image>
8774e20
    </screenshot>
84b37b6
  </screenshots>
8774e20
  <updatecontact>sagitter_at_fedoraproject.org</updatecontact>
13c61e3
</component>
84b37b6
EOF
84b37b6
d083ea5
cat > $RPM_BUILD_ROOT%{_datadir}/metainfo/icecat.metainfo.xml <
1dc2ae6
1dc2ae6
<component type="addon">
1dc2ae6
 <id>mozilla-requestpolicy</id>
361dc4d
 <extends>icecat.desktop</extends>
1dc2ae6
 <name>mozilla-requestpolicy</name>
1dc2ae6
 <summary>Extension that gives you control over cross-site requests</summary>
1dc2ae6
 <url type="homepage">https://requestpolicycontinued.github.io/</url>
1dc2ae6
 <url type="bugtracker">https://github.com/requestpolicycontinued/requestpolicy/issues</url>
1dc2ae6
 <metadata_license>CC0-1.0</metadata_license>
1dc2ae6
 <project_license>GPL-3.0+ and LGPL-3.0+</project_license>
1dc2ae6
</component>
1dc2ae6
EOF
a0958e3
78aec85
# Moves defaults/preferences to browser/defaults/preferences
78aec85
%pretrans -p <lua>
78aec85
require 'posix'
78aec85
require 'os'
78aec85
if (posix.stat("%{icecatappdir}/browser/defaults/preferences", "type") == "link") then
78aec85
  posix.unlink("%{icecatappdir}/browser/defaults/preferences")
78aec85
  posix.mkdir("%{icecatappdir}/browser/defaults/preferences")
78aec85
  if (posix.stat("%{icecatappdir}/defaults/preferences", "type") == "directory") then
78aec85
    for i,filename in pairs(posix.dir("%{icecatappdir}/defaults/preferences")) do
78aec85
      os.rename("%{icecatappdir}/defaults/preferences/"..filename, "%{icecatappdir}/browser/defaults/preferences/"..filename)
78aec85
    end
78aec85
    f = io.open("%{icecatappdir}/defaults/preferences/README","w")
78aec85
    if f then
78aec85
      f:write("Content of this directory has been moved to %{icecatappdir}/browser/defaults/preferences.")
78aec85
      f:close()
78aec85
    end
78aec85
  end
78aec85
end
78aec85
sagitter a7fb410
%check
78aec85
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
d083ea5
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/*.appdata.xml
sagitter a7fb410
8aab9fe
%if %{build_langpacks}
sagitter a7fb410
%files -f %{name}.lang
8aab9fe
%else
8aab9fe
%files
8aab9fe
%endif
sagitter abfa85b
%doc Changelog.IceCat README.* AUTHORS
sagitter abfa85b
%license LICENSE LEGAL COPYING-*
78aec85
%{_bindir}/%{name}
78aec85
%{_datadir}/applications/%{name}.desktop
78aec85
%{_datadir}/icons/hicolor/*x*/apps/%{name}*.png
d083ea5
%{_datadir}/metainfo/%{name}.appdata.xml
d083ea5
%{_datadir}/metainfo/%{name}.metainfo.xml
sagitter a7fb410
%{_mandir}/man1/%{name}*
84b37b6
%{icecatappdir}/browser/
84b37b6
%{icecatappdir}/defaults/
78aec85
%{icecatappdir}/dictionaries
84b37b6
%{icecatappdir}/icecat*
84b37b6
%{icecatappdir}/*.so
84b37b6
%{icecatappdir}/*.ini
84b37b6
%{icecatappdir}/omni.ja
84b37b6
%{icecatappdir}/run-icecat.sh
a50c628
%{icecatappdir}/dependentlibs.list
a50c628
%{icecatappdir}/plugin-container
8aab9fe
%{icecatappdir}/gmp-clearkey/
78aec85
%{icecatappdir}/chrome.manifest
78aec85
%{icecatappdir}/fonts/EmojiOneMozilla.ttf
78aec85
%{icecatappdir}/gtk2/*.so
78aec85
%if !%{?system_libicu}
78aec85
%{icecatappdir}/icudt*.dat
78aec85
%endif
78aec85
%if !%{?system_nss}
78aec85
%{icecatappdir}/libfreeblpriv3.chk
78aec85
%{icecatappdir}/libnssdbm3.chk
78aec85
%{icecatappdir}/libsoftokn3.chk
78aec85
%endif
cb7bdf2
%if 0%{build_langpacks}
84b37b6
%dir %{langpackdir}
84b37b6
%endif
sagitter a7fb410
sagitter a7fb410
%changelog
7311577
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 52.8.1-3
7311577
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7311577
48f7b99
* Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 52.8.1-2
48f7b99
- Rebuild for ICU 62
48f7b99
0a2348a
* Thu Jun 07 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.8.1-1
0a2348a
- Update to 52.8.1
0a2348a
- Add icecat.rpmlintrc
0a2348a
7a1d81f
* Wed Jun 06 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.8.0-3
0a2348a
- Source tarball re-created without non-free code
7a1d81f
e90006b
* Tue Jun  5 2018 Tom Callaway <spot@fedoraproject.org> - 52.8.0-2
e90006b
- remove non-free files from tarball
e90006b
573a284
* Sat May 12 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.8.0-1
573a284
- Update to 52.8.0
573a284
f62741d
* Mon Apr 30 2018 Pete Walter <pwalter@fedoraproject.org> - 52.7.3-2
f62741d
- Rebuild for ICU 61.1
f62741d
639deaf
* Tue Mar 27 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.7.3-1
639deaf
- Update to 52.7.3
639deaf
70d664e
* Tue Mar 20 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.7.2-1
70d664e
- Update to 52.7.2
70d664e
d299521
* Sat Mar 10 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.7.0-1
d299521
- Update to 52.7.0
d299521
1e3af9c
* Tue Feb 27 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.6.0-7
1e3af9c
- HTTPS Everywhere updated to 2018.1.11
1e3af9c
- "goteo.org payments with free JS" updated to 1.1
1e3af9c
- "LibreJS compatible Pay.gov" updated to 1.3
1e3af9c
- "Reveal hidden HTML" updated to 1.6
1e3af9c
- Enabled WebRTC, but prevent leaking the LAN ip
1e3af9c
13059f3
* Sun Feb 18 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.6.0-6
13059f3
- Add gcc gcc-c++ BR
13059f3
a61d4b3
* Sun Feb 18 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.6.0-5
a61d4b3
- Rebuild for libevent-2.1.8
a61d4b3
be87cf6
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 52.6.0-4
be87cf6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
be87cf6
af3089d
* Sun Jan 28 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.6.0-3
af3089d
- Rebuild for libvpx again
af3089d
04b766d
* Fri Jan 26 2018 Tom Callaway <spot@fedoraproject.org> - 52.6.0-2
04b766d
- rebuild for new libvpx
04b766d
ef5f96e
* Wed Jan 24 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.6.0-1
ef5f96e
- Update to 52.6.0
ef5f96e
5f188ac
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 52.5.3-4
5f188ac
- Remove obsolete scriptlets
5f188ac
1063c33
* Sun Jan 07 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.5.3-3
ef5f96e
- Set build against NSS-3.34/NSPR-4.17.0 at least
1063c33
85f4a69
* Sun Jan 07 2018 Antonio Trande <sagitterATfedoraproject.org> - 52.5.3-2
85f4a69
- Patched for mozilla bug-1427870
85f4a69
22216d3
* Sun Dec 31 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.5.3-1
22216d3
- Update to 52.5.3
22216d3
- Use 'with-l10n' option
22216d3
c2e5d02
* Fri Dec 29 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.5.2-1
c2e5d02
- Update to 52.5.2
c2e5d02
- WebRTC is always disabled
c2e5d02
- Add JACK audio backend (bz#1528742)
c2e5d02
d083ea5
* Thu Dec 21 2017 Antonio Trande <sagitter@fedoraproject.org> - 52.3.0-4
d083ea5
- Appdata file moved into metainfo data directory
d083ea5
ce43534
* Mon Dec 04 2017 Caolán McNamara <caolanm@redhat.com> - 52.3.0-3
ce43534
- rebuild for hunspell-1.5.2
ce43534
c2e5d02
* Sat Sep 02 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.3.0-2
c23e225
- Enable language files
c23e225
c2e5d02
* Wed Aug 16 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.3.0-1
2120228
- Update to 52.3.0
2120228
c2e5d02
* Thu Aug 03 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.2.1-1
3d25512
- Update to 52.2.1
153d3b4
- ICU source code patched to work on big-endian architectures
3d25512
3fe32b2
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 52.1.0-4
3fe32b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3fe32b2
6abf125
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 52.1.0-3
6abf125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
6abf125
c2e5d02
* Sat May 06 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.1.0-2
aaac480
- Fix language files
aaac480
c648b94
* Sat May 06 2017 Jens Lody <fedora@jenslody.de> - 52.1.0-1
c648b94
- Update to 52.1.0
c648b94
- Remove obsolete firefox-debug.patch
c648b94
- Spec-file: fix typo in description
c648b94
c2e5d02
* Sun Apr 16 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.0.2-3
445496d
- Enable languages
445496d
c2e5d02
* Fri Apr 14 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.0.2-2
e68483c
- Update to 52.0.2
e68483c
- Add patch for mozbz#1158076 - enable dark theme by pref
e68483c
c2e5d02
* Sun Mar 26 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.0.1-5
2ed4264
- Skia support disabled on ARM/ix86 builds (failed for memory exhausted)
2ed4264
c2e5d02
* Sun Mar 26 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.0.1-4
2ed4264
- Downgrade optimization level on ARM builds (failed for memory exhausted)
2ed4264
- Use one job with Make on ix86
104e968
c2e5d02
* Wed Mar 22 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.0.1-3
78aec85
- Added fix for mozbz#1158076
78aec85
c2e5d02
* Mon Mar 20 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.0.1-2
78aec85
- Set cflags/libs options for NSS/NSPR
78aec85
- Add --disable-elf-hack
78aec85
c2e5d02
* Sun Mar 19 2017 Antonio Trande <sagitterATfedoraproject.org> - 52.0.1-1
78aec85
- Update to 52.0.1
78aec85
- All patches synchronized with firefox
78aec85
be7756a
* Mon Mar 06 2017 Jens Lody <fedora@jenslody.de> - 45.7.0-8
be7756a
- aarch64build-fix (taken from mozjs45)
be7756a
- include aarch64 again
be7756a
c2e5d02
* Sun Mar 05 2017 Antonio Trande <sagitterATfedoraproject.org> - 45.7.0-7
3eb1ff9
- Build with language files
3eb1ff9
- Use new source archive
3eb1ff9
- Exclude aarch64
3eb1ff9
211f094
* Sun Mar 05 2017 Jens Lody <fedora@jenslody.de> - 45.7.0-6
211f094
- do not set debug-build-flag
211f094
c2144d4
* Sun Mar 05 2017 Jens Lody <fedora@jenslody.de> - 45.7.0-5
c2144d4
- (Re-)add language-download.script and make Source-tag unconditional.
c2144d4
- Fix debug build.
c2144d4
c2e5d02
* Sat Feb 18 2017 Antonio Trande <sagitterATfedoraproject.org> - 45.7.0-3
1d162a4
- Optimization flags disabled on arm/arm64
1d162a4
c2e5d02
* Thu Feb 16 2017 Jens Lody <fedora@jenslody.de> - - 45.7.0-3
e4c522e
- Fix gcc7 build, with backport of fix for mozb#1269171
e4c522e
396845b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 45.7.0-2
396845b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
396845b
c2e5d02
* Sat Feb 04 2017 Antonio Trande <sagitterATfedoraproject.org> - 45.7.0-1
cda295e
- Update to 45.7.0
cda295e
c2e5d02
* Sat Jan 21 2017 Antonio Trande <sagitterATfedoraproject.org> - 45.5.1-7
cda295e
- Test for trying ICU patch
cda295e
c2e5d02
* Fri Jan 20 2017 Antonio Trande <sagitterATfedoraproject.org> - 45.5.1-6
7c4b83e
- System ICU disabled on Fedora > 25
bb64f82
c2e5d02
* Fri Jan 20 2017 Antonio Trande <sagitterATfedoraproject.org> - 45.5.1-5
9bfff5d
- Patched to make compatible with NSS 3.28.1 (bz#1414987)
9bfff5d
c2e5d02
* Thu Jan 05 2017 Antonio Trande <sagitterATfedoraproject.org> - 45.5.1-4
f7e6a38
- Conformed to new rules for scriptlets
f7e6a38
e704830
* Tue Dec 13 2016 Caolán McNamara <caolanm@redhat.com> - 45.5.1-3
e704830
- rebuild for hunspell-1.5.4
e704830
2d55698
* Fri Dec 02 2016 Antonio Trande <sagitterATfedoraproject.org> - 45.5.1-2
2d55698
- Keep workaround for bz#1332926
2d55698
36f4044
* Fri Dec 02 2016 Antonio Trande <sagitterATfedoraproject.org> - 45.5.1-1
36f4044
- Update to 45.5.1
36f4044
1acca40
* Sun Nov 27 2016 Antonio Trande <sagitterATfedoraproject.org> - 45.3.0-0.6.beta
1acca40
- Debug build
bdc44c0
- Debug builds patched (mozb#1013882)
c0bc22e
- Patched for removing unnecessary warns
1acca40
c448e32
* Sun Sep 04 2016 Antonio Trande <sagitterATfedoraproject.org> - 45.3.0-0.5.beta
c448e32
- Drop obsolete patch
c448e32
16150e6
* Sat Sep 03 2016 Antonio Trande <sagitterATfedoraproject.org> - 45.3.0-0.4.beta
16150e6
- Use MOZ_SMP_FLAGS instead of MOZ_MAKE_FLAGS
16150e6
4c9800a
* Thu Sep 01 2016 Antonio Trande <sagitterATfedoraproject.org> - 45.3.0-0.3.beta
4c9800a
- Update desktop file's translations
4c9800a
- Enable jemalloc
4c9800a
028c4a3
* Thu Sep 01 2016 Antonio Trande <sagitterATfedoraproject.org> - 45.3.0-0.2.beta
028c4a3
- Disable optimization on ARM
028c4a3
68dd8a9
* Mon Aug 29 2016 Antonio Trande <sagitterATfedoraproject.org> - 45.3.0-0.1.beta
68dd8a9
- Update to 45.3.0 (beta)
68dd8a9
- Drop old patches
68dd8a9
- Reset default compiler flags
f367952
- Filtering private libraries
f367952
f367952
* Fri Jul 22 2016 Tom Callaway <spot@fedoraproject.org> - 38.8.0-13
f367952
- rebuild for libvpx 1.6.0
61050b1
68dd8a9
* Wed Jun 29 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-12
68dd8a9
- Optimization level increased to -O1
e2ceb3b
8774e20
* Tue Jun 28 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-11
8774e20
- Fix appadata file's tags
8774e20
0cfa165
* Sun Jun 26 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-10
68dd8a9
- Rebuild with newest icecat-38.8.0-gnu2 source archive (24 June)
0cfa165
791afbb
* Sun Jun 26 2016 Jens Lody <fedora@jenslody.de> - 38.8.0-9
791afbb
- Workaround for #1332926
791afbb
710f31e
* Sat Jun 18 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-8
710f31e
- Set MOZ_SMP_FLAGS
710f31e
2963315
* Sat Jun 18 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-7
2963315
- Undo latest change
2963315
55da082
* Sat Jun 18 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-6
55da082
- Set C++14 standard flag
55da082
99634ee
* Fri Jun 17 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-5
99634ee
- Set C++ standard flag
99634ee
43af98f
* Fri Jun 17 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-4
43af98f
- Disable install stripping
43af98f
- Disable builds for debugging
43af98f
43af98f
* Fri Jun 17 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-3
43af98f
- Enable builds for debugging
43af98f
fa7a969
* Fri May 13 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-2
fa7a969
- Remove additional flag
fa7a969
6949729
* Fri May 13 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.8.0-1
6949729
- Update to 38.8.0
6949729
b143c53
* Mon Apr 18 2016 Caolán McNamara <caolanm@redhat.com> - 38.7.1-4
b143c53
- rebuild for hunspell 1.4.0
b143c53
df5dac3
* Fri Apr 15 2016 David Tardon <dtardon@redhat.com> - 38.7.1-3
fa7a969
- rebuild for ICU 57.1
df5dac3
fed4174
* Sat Apr 09 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.7.1-2
fed4174
- Downgrade optimization level on ARM
fed4174
ba5aff0
* Fri Apr 08 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.7.1-1
ba5aff0
- Update to 38.7.1
ba5aff0
13c61e3
* Thu Feb 04 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.6.0-1
13c61e3
- Update to 38.6.0
13c61e3
- Patched for GCC6 builds
13c61e3
- Cut off Provides bundled libraries except xulrunner
13c61e3
4007787
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 38.5.2-5
13c61e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 
4007787
dd7a95f
* Mon Jan 04 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.5.2-4
13c61e3
- Fix description of appdata file
dd7a95f
a7170a1
* Mon Jan 04 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.5.2-3
a7170a1
- Fix validating of desktop file
a7170a1
361dc4d
* Sun Jan 03 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.5.2-2
dd7a95f
- .desktop .appdata and .metainfo files renamed (bz#1295234)
361dc4d
3c50fcc
* Fri Jan 01 2016 Antonio Trande <sagitterATfedoraproject.org> - 38.5.2-1
3c50fcc
- Update to 38.5.2
3c50fcc
e2eec44
* Fri Dec 18 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.5.0-1
e2eec44
- Update to 38.5.0
e2eec44
55e5bd5
* Tue Dec 08 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.4.0-3
55e5bd5
- Force -fstack-protector-all flag (bz#1283307)
55e5bd5
7da9a0f
* Tue Dec  1 2015 Tom Callaway <spot@fedoraproject.org> - 38.4.0-2
7da9a0f
- rebuild for libvpx 1.5.0
7da9a0f
cb7bdf2
* Tue Nov 17 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.4.0-1
cb7bdf2
- Update to 38.4.0
cb7bdf2
daa372c
* Tue Nov 03 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-12
daa372c
- ARM neon support disabled on aarch64
daa372c
e1e8dd4
* Sat Oct 31 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-11
e1e8dd4
- Rebuild for ICU 56
e1e8dd4
b01b282
* Wed Oct 28 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-10
b01b282
- Rebuild with RPM_LD_FLAGS
b01b282
e9e0dcc
* Wed Oct 28 2015 David Tardon <dtardon@redhat.com> - 38.3.0-9
e9e0dcc
- rebuild for ICU 56.1
e9e0dcc
63b0269
* Tue Oct 20 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-8
63b0269
- Active hardened_build
63b0269
3f59145
* Tue Oct 13 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-7
3f59145
- Rebuilt with updated Addons
3f59145
8a88598
* Mon Oct 12 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-6
8a88598
- Fixed header files directory for freetype-2.6.1
8a88598
310249b
* Mon Oct 12 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-5
310249b
- Languages packaged
310249b
8aab9fe
* Tue Oct 06 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-4
8aab9fe
- WebRTC disabled on extra arches
8aab9fe
8aab9fe
* Tue Oct 06 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-3
8aab9fe
- Updated appdata and manpage files
8aab9fe
8aab9fe
* Mon Oct 05 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-2
8aab9fe
- Disabled crashreporter on F22+
8aab9fe
8aab9fe
* Sat Oct 03 2015 Antonio Trande <sagitterATfedoraproject.org> - 38.3.0-1
8aab9fe
- Update to 38.3.0
8aab9fe
- Patches updated
8aab9fe
- Language files not packaged
8aab9fe
- Build defined for Gtk3 
8aab9fe
7635171
* Thu Aug 13 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.8.0-5
7635171
- Added backported patch for CVE-2015-4473_4482_4488_4489_4491_4492 vulnerabilities
7635171
ac8e1bd
* Thu Aug 13 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.8.0-4
ac8e1bd
- Added backported patch for CVE-2015-4495 vulnerability
ac8e1bd
718865b
* Tue Jul 21 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.8.0-3
718865b
- Fixed on secondary arches
718865b
08a24fc
* Mon Jul 20 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.8.0-2
08a24fc
- Un-bundle libvpx-1.4
08a24fc
c479330
* Fri Jul 17 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.8.0-1
c479330
- Update to 31.8.0
c479330
0344a9c
* Sun Jul 12 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.7.0-8
0344a9c
- Packaged IceCat 31.7 in Fedora 21
0344a9c
14c49a1
* Fri Jul 03 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.7.0-7
14c49a1
- Fix .metainfo.xml file
14c49a1
1dc2ae6
* Thu Jul 02 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.7.0-6
1dc2ae6
- Added .metainfo.xml file
1dc2ae6
800dd2b
* Thu Jun 18 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.7.0-5
800dd2b
- Added options --enable-tree-freetype --enable-stdcxx-compat
800dd2b
- Added patch for Freetype-2.6 headers
800dd2b
4ad2a06
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 31.7.0-4
4ad2a06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4ad2a06
a0958e3
* Sun Jun 14 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.7.0-3
a0958e3
- Re-built locale files
a0958e3
- Re-organized mozconfig options
800dd2b
- Compiled with ccache
a0958e3
a50c628
* Wed Jun 10 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.7.0-2
a50c628
- Unpacked files found
a50c628
84b37b6
* Mon Jun 08 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.7.0-1
84b37b6
- Update to 31.7.0
84b37b6
- Make sure locale works for langpacks
84b37b6
- Set default bookmarks
84b37b6
- Made appdata file
84b37b6
- devel package obsoleted
84b37b6
00c92e4
* Mon May 04 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.6.0-6
00c92e4
- Required VPX from system for < F23
00c92e4
6afc67a
* Sun May 03 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.6.0-5
6afc67a
- libvpx-1.3.0 bundled only in >= F23
6afc67a
bbd1818
* Tue Apr 07 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.6.0-4
bbd1818
- Disable optimization flags (when GCC5 compiles) on ARM
bbd1818
77f32a6
* Tue Apr 07 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.6.0-3
77f32a6
- Compiled against bundle libvpx-1.3.0
77f32a6
77f32a6
* Mon Apr 06 2015 Tom Callaway <spot@fedoraproject.org> - 31.6.0-2
77f32a6
- Rebuild for libvpx 1.4.0
e7be623
a92b0ea
* Sat Apr 04 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.6.0-1
77f32a6
- Update to 31.6.0
a92b0ea
3589741
* Mon Mar 16 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.5.0-2
3589741
- New rebuild to fix profile's storage problem
3589741
dab63ff
* Thu Mar 12 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.5.0-1
dab63ff
- Update to 31.5.0
dab63ff
- Patched to fix Mozilla Bug1021171
dab63ff
- crashreporter disabled on > F21
dab63ff
- Improved .desktop file
dab63ff
Petr Machata 932225e
* Wed Feb 04 2015 Petr Machata <pmachata@redhat.com> - 31.4.0-5
Petr Machata 932225e
- Bump for rebuild.
Petr Machata 932225e
sagitter ee6c887
* Mon Feb 02 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.4.0-4
sagitter ee6c887
- Desktop file missing %%u (bz#1188078)
sagitter ee6c887
sagitter 70e6db4
* Sat Jan 31 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.4.0-3
sagitter 70e6db4
- Annulled the user-agent string customization
sagitter 70e6db4
sagitter e88e7a8
* Thu Jan 29 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.4.0-2
sagitter e88e7a8
- Added %%license macro
sagitter e88e7a8
sagitter abfa85b
* Thu Jan 29 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.4.0-1
sagitter abfa85b
- Update to 31.4.0
sagitter abfa85b
- Added MPLv2.0 license of HTML5-video-everywhere extension
sagitter abfa85b
- Description updated
sagitter abfa85b
1ea24d9
* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 31.2.0-8
1ea24d9
- rebuild for ICU 54.1
1ea24d9
sagitter 4092fdc
* Wed Jan 21 2015 Antonio Trande <sagitterATfedoraproject.org> - 31.2.0-7
sagitter 4092fdc
- Package now requires system-bookmarks (bz#1184297)
sagitter 4092fdc
sagitter dcc8ead
* Wed Nov 26 2014 Antonio Trande <sagitterATfedoraproject.org> - 31.2.0-6
sagitter dcc8ead
- libjpeg-turbo unbundled (bz#1164815)
sagitter dcc8ead
sagitter dda22cb
* Thu Nov 06 2014 Antonio Trande <sagitterATfedoraproject.org> - 31.2.0-5
sagitter dda22cb
- Added -Wno-error=declaration-after-statement
sagitter dda22cb
- Built against GStreamer-1.0
sagitter dda22cb
- Package compiled against bundled JPEG
sagitter dda22cb
sagitter bf04d8d
* Sat Oct 25 2014 Antonio Trande <sagitterATfedoraproject.org> - 31.2.0-4
sagitter bf04d8d
- Removed -fexceptions flags from Fedora optflags
sagitter bf04d8d
sagitter bf04d8d
* Thu Oct 23 2014 Antonio Trande <sagitterATfedoraproject.org> - 31.2.0-3
sagitter 0ede272
- Added -Wformat-security flags
sagitter 0ede272
- Added special link flags for ARM
sagitter 0ede272
sagitter 4720667
* Wed Oct 22 2014 Antonio Trande <sagitterATfedoraproject.org> - 31.2.0-2
sagitter 4720667
- Fixed compiler flags
sagitter 4720667
sagitter f6527ea
* Tue Oct 21 2014 Antonio Trande <sagitterATfedoraproject.org> - 31.2.0-1
sagitter f6527ea
- Update to 31.2.0
sagitter f6527ea
- Added 'configure' options
sagitter f6527ea
- Built against system NSS/NSPR
sagitter f6527ea
sagitter 7c80051
* Thu Oct 16 2014 Antonio Trande <sagitterATfedoraproject.org> - 31.1.1-1
sagitter 7c80051
- Update to 31.1.1
sagitter 7c80051
- New bundled files (bz#1153135)
sagitter 7c80051
- Static sub-package is not built anymore
sagitter 7c80051
- Man-page updated
sagitter 7c80051
- Spyblock addon included
sagitter 7c80051
sagitter a7fb410
* Tue Aug 26 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-14
sagitter a7fb410
- Added "Provides: webclient"
sagitter a7fb410
- Installed manpage file
sagitter a7fb410
sagitter a7fb410
* Tue Aug 19 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-13
sagitter a7fb410
- Removed system xulrunner conditional
sagitter a7fb410
- Ghosted all .xpi language files (handled by %%find_lang)
sagitter a7fb410
- Added BSD, ISC, MIT, Apache2.0 licenses
sagitter a7fb410
sagitter a7fb410
* Sat Aug 09 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-12
sagitter a7fb410
- Removed HTTPS-everywhere RequestPolicy extensions (patch7)
sagitter a7fb410
sagitter a7fb410
* Thu Jul 24 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-11
sagitter a7fb410
- Remove precompiled .egg files
sagitter a7fb410
- Remove bundled jar/class files
sagitter a7fb410
- Delete chrpaths
sagitter a7fb410
- Added 'Public Domain' license
sagitter a7fb410
- Added a patch for using system Python Virtualenv (patch6)
sagitter a7fb410
sagitter a7fb410
* Wed Jul 16 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-10
sagitter a7fb410
- Added freetype2 system-headers list for Fedora>=21 (patch5)
sagitter a7fb410
sagitter a7fb410
* Fri Apr 04 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-9
sagitter a7fb410
- Defined other bundled() Provides
sagitter a7fb410
sagitter a7fb410
* Sat Mar 29 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-8
sagitter a7fb410
- Use system nspr
sagitter a7fb410
sagitter a7fb410
* Wed Mar 26 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-7
sagitter a7fb410
- Removed much more bundled files (added related BR packages)
sagitter a7fb410
- Build browser and xulrunner
sagitter a7fb410
- Added freetype2 reference patch
sagitter a7fb410
sagitter a7fb410
* Thu Feb 27 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-6
sagitter a7fb410
- Sources patched to use system ogg/opus/vorbis libraries
sagitter a7fb410
- Build browser alone
sagitter a7fb410
sagitter a7fb410
* Wed Feb 05 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-5
sagitter a7fb410
- Fix some executable permissions
sagitter a7fb410
- Added some tricks
sagitter a7fb410
- Build browser and xulrunner
sagitter a7fb410
- Defined a conditional macro for xulrunner
sagitter a7fb410
- Built a static sub-package
sagitter a7fb410
- Added COPYING separated license files
sagitter a7fb410
- Added bundled() Provides
sagitter a7fb410
sagitter a7fb410
* Mon Jan 27 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-4
sagitter a7fb410
- Build browser alone
sagitter a7fb410
- Added libffi/libpng linkage from system to .mozconfig file
sagitter a7fb410
- Added a patch to exclude APNG support missing error for libpng
sagitter a7fb410
- Added libpng-devel BR
sagitter a7fb410
sagitter a7fb410
* Tue Jan 14 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-3
sagitter a7fb410
- Removed bundled files
sagitter a7fb410
- Added nspr/nss Requires
sagitter a7fb410
sagitter a7fb410
* Wed Jan 08 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-2
sagitter a7fb410
- Timestamp preserving for the 'install' commands
sagitter a7fb410
- Added a comment interpretation to the License tag
sagitter a7fb410
- Defined all command calls in normal mode 
sagitter a7fb410
sagitter a7fb410
* Sun Jan 05 2014 Antonio Trande <sagitterATfedoraproject.org> - 24.0-1
sagitter a7fb410
- Initial package
sagitter a7fb410