Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates-src > by-pkgid > 02785597789f0aeb3f78033875cf33f3 > files > 17

firefox-45.7.0-1.mga5.src.rpm

# WARNING: This package is synced with FC

#
# WARNING, READ FIRST:
#
# This is a special package that needs special treatment. Due to the amount of
# security updates it needs, it's common to ship new upstream versions instead of patching.
# That means this package MUST be BUILDABLE for stable official releases.
# This also means only STABLE upstream releases, NO betas.
# This is a discussed topic. Please, do not flame it again.

# Stay on ESR for stable releases and for cauldron before mageia 5.
# /!\ Do not update more than FF 45 for mga6. /!\
# ff 38 -> 45 -> 52

%define toolkit_gtk3      1

# (doktor5000) this switch enables to build with clang
# warning, do not change this, if you don't test and fix firefox afterwards!
# clang can build firefox without issues, but it will be really crashy
# during runtime, even for simple things 
# see https://bugs.mageia.org/show_bug.cgi?id=14062
# and https://bugs.mageia.org/show_bug.cgi?id=13575
%define use_clang 0


# Use system cairo?
%define system_cairo      0

%define major 45
%define ff_epoch 0
# (tpg) set version HERE !!!
%define extra esr
#define extra %nil
%define realver %{version}%extra
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}

# (tpg) MOZILLA_FIVE_HOME
%define mozillalibdir %{_libdir}/%{name}
%define pluginsdir %{_libdir}/mozilla/plugins

# libxul.so is provided by libxulrunnner2.0.
%global __requires_exclude libxul.so

# Minimal required versions
%global cairo_version 1.13.1
%global freetype_version 2.1.9
%global libnotify_version 0.7.0
%global libvpx_version 1.5.0

# this seems fragile, so require the exact version or later (#58754)
%global nspr_version 4.12
%global nspr_build_version %(pkg-config --silence-errors --modversion nspr 2>/dev/null || echo 65536)
%global nss_version 3.21.1
%global nss_build_version %(pkg-config --silence-errors --modversion nss 2>/dev/null || echo 65536)
%global sqlite_version 3.8.8.2
# The actual sqlite version (see #480989):
%global sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo 65536)


%define update_channel %{extra}%major

Summary:	Mozilla Firefox Web browser
Name:		firefox
Version:	%{major}.7.0
Epoch:		%{ff_epoch}
Release:	%mkrel 1
License:	MPLv1.1 or GPLv2+ or LGPLv2+
Group:		Networking/WWW
Url:		https://www.mozilla.org/firefox/organizations/
Source0:	https://ftp.mozilla.org/pub/firefox/releases/%{realver}/source/%{name}-%{realver}.source.tar.xz
Source4:	%{name}.desktop
Source8:	%{name}-searchengines-duckduckgo.xml
Source9:	kde.js
# From Fedora:
Source10:       firefox-mozconfig

# Fedora patches:
Patch3:         mozilla-build-arm.patch
Patch24:	firefox-debug.patch
Patch222:        firefox-gtk3-20.patch
Patch223:        rhbz-1291190-appchooser-crash.patch

# Upstream patches
Patch301:        mozilla-1205199.patch
Patch302:        mozilla-1228540.patch
Patch303:        mozilla-1228540-1.patch
Patch304:        mozilla-1253216.patch

# Gtk3 upstream patches

# Fix Skia Neon stuff on AArch64
# Update https://bugzilla.mozilla.org/show_bug.cgi?id=1142056
# when removed
Patch500:        aarch64-fix-skia.patch

# Mageia patches:
Patch1000:	firefox-lang.patch
# (OpenSuse) add patch to make firefox always use /usr/bin/firefox when "make firefox
# the default web browser" is used fix mdv bug#58784
Patch1005:		firefox-38.0-appname.patch
Patch1006:		firefox-7.0-fix-str-fmt.patch
Patch1008:		firefox-disable-check-default-browser.patch
Patch1010:	firefox-3.5.3-default-mail-handler.patch
# Patches for kde integration of FF
# (doktor5000) if the patches need updating, grab both from the branch corresponding with the current firefox version at
# http://www.rosenauer.org/hg/mozilla
Patch1011:	http://www.rosenauer.org/hg/mozilla/file/tip/mozilla-kde.patch
# (fwang) please modify patch12 with `sed -e 's/MozillaFirefox/firefox/'` to fit our desktop filename
Patch1012:	http://www.rosenauer.org/hg/mozilla/file/tip/firefox-kde.patch

Patch1037:	firefox-38.0-nss-version.patch
Patch1038:	firefox-38.1-freetype-2.6-compatibility.patch
Patch1039:	firefox-43.4.0-optimize-dont-force-O3.patch

BuildRequires:	pkgconfig(nspr) >= %{nspr_version}
BuildRequires:	pkgconfig(nss) >= %{nss_version}
BuildRequires:	nss-static-devel >= %{nss_version}
%if %{?system_cairo}
BuildRequires:	pkgconfig(cairo) >= %{cairo_version}
%endif
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	libjpeg-devel
BuildRequires:	zip
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libIDL-2.0)
%if %{toolkit_gtk3}
BuildRequires:  pkgconfig(gtk+-3.0)
%endif
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(pango)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libnotify) >= %{libnotify_version}
BuildRequires:	pkgconfig(dri)
# BuildRequires:	pkgconfig(libvpx) >= %{libvpx_version}
BuildRequires:	autoconf2.1
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:  pkgconfig(gconf-2.0)
%ifnarch %arm
BuildRequires:	valgrind
BuildRequires:	yasm
%endif
Requires:	%{mklibname nss 3} >= 2:%{nss_build_version}
Requires:	%{mklibname nspr 4} >= 2:%{nspr_build_version}
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-allocators-1.0)
BuildRequires:	python
# BuildRequires:	pkgconfig(sqlite3) >= %{sqlite_version}
# Requires:	%{mklibname sqlite3_ 0} >= %{sqlite_build_version}
BuildRequires:	pkgconfig(libffi)
BuildRequires:	rootcerts >= 1:20130411.00
BuildRequires:	doxygen
BuildRequires:	libiw-devel
BuildRequires:	python-virtualenv
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libproxy-1.0)

Provides:	%{name} = %{epoch}:%{version}
Provides:	mozilla-firefox = %{epoch}:%{version}-%{release}
Provides:	webclient

Requires:	indexhtml
Requires:	xdg-utils
# fixes bug #42096
Requires:	mailcap
Recommends:	hunspell-en
Requires:	%{_lib}notify4
Requires:	gstreamer1.0-libav
# make sure our default bookmarks are present
Requires:	desktop-common-data
# try to fix mga#1344 (automatic installation of proper -l10n package)                                                                                                 
# packages requiring locales-XX will be automatically preferred when locales-XX
# is already installed
Recommends:	firefox-l10n

Recommends:	%{_lib}canberra0
Recommends:	%{_lib}cups2
Obsoletes:	firefox-ext-weave-sync
Obsoletes:	firefox-beta < 25

%description
Mozilla Firefox is an open-source web browser, designed for standards
compliance, performance and portability.

%package	devel
Summary:	Development files for %{name}
Group:		Development/Other
Obsoletes:	firefox-beta-devel < 25

%description	devel
Files and macros mainly for building Firefox extensions.

%prep
%if %{?extra}
#setup -q -n mozilla-%{update_channel}
%setup -q -n firefox-%{version}esr
%else
#setup -q -n mozilla-release
%setup -q -n %name-%version
%endif
# Fedora patches:
%patch24 -p1 -b .debug
%patch3  -p2 -b .arm
%patch223 -p1 -b .appchooser-crash
%patch301 -p1 -b .1205199
%patch302 -p1 -b .1228540
%patch303 -p1 -b .1228540-1
%patch304 -p2 -b .1253216
#patch222 -p1 -b .gtk3-20

%patch500 -p1

# Mageia patches:
%patch1000 -p1 -b .lang
%patch1005 -p1 -b .appname
%patch1008 -p1 -b .disable-software-update
%patch1010 -p1 -b .default-mail-handler
%patch1011 -p1 -b .mozkde
%patch1012 -p1 -b .ffkde

%patch1037 -p0
%patch1038 -p1 -b .freetype-compatibility
%patch1039 -p1 -b .noo3_noos

pushd js/src
autoconf-2.13
popd
autoconf-2.13

# needed to regenerate certdata.c
pushd security/nss/lib/ckfw/builtins
perl ./certdata.perl < /etc/pki/tls/mozilla/certdata.txt
popd

%{__rm} -f .mozconfig
%{__cp} %{SOURCE10} .mozconfig
# Mageia specific options:
cat << EOF >> .mozconfig
ac_add_options --with-system-libevent
ac_add_options --enable-libproxy
ac_add_options --with-system-png
ac_add_options --with-distribution-id=org.mageia
ac_add_options --enable-update-channel=%{update_channel}
%ifarch %arm
ac_add_options --with-valgrind
%endif
EOF

# Options shared with FC:
echo "ac_add_options --enable-official-branding" >> .mozconfig

%if %{toolkit_gtk3}
echo "ac_add_options --enable-default-toolkit=cairo-gtk3" >> .mozconfig
%else
echo "ac_add_options --enable-default-toolkit=cairo-gtk2" >> .mozconfig
%endif

echo "ac_add_options --with-system-nspr" >> .mozconfig
echo "ac_add_options --with-system-nss" >> .mozconfig

# SQLite is too old.
# echo "ac_add_options --enable-system-sqlite" >> .mozconfig

%if %{?system_cairo}
echo "ac_add_options --enable-system-cairo" >> .mozconfig
%else
echo "ac_add_options --disable-system-cairo" >> .mozconfig
%endif

echo "ac_add_options --enable-system-ffi" >> .mozconfig

echo "ac_add_options --enable-gstreamer=1.0" >> .mozconfig

%ifarch %{arm}
echo "ac_add_options --disable-elf-hack" >> .mozconfig
%endif

echo "ac_add_options --disable-debug" >> .mozconfig
echo "ac_add_options --enable-optimize" >> .mozconfig

%ifarch armv7hl
echo "ac_add_options --with-arch=armv7-a" >> .mozconfig
echo "ac_add_options --with-float-abi=hard" >> .mozconfig
echo "ac_add_options --with-fpu=vfpv3-d16" >> .mozconfig
echo "ac_add_options --disable-elf-hack" >> .mozconfig
%endif
%ifarch armv7hnl
echo "ac_add_options --with-arch=armv7-a" >> .mozconfig
echo "ac_add_options --with-float-abi=hard" >> .mozconfig
echo "ac_add_options --with-fpu=neon" >> .mozconfig
echo "ac_add_options --disable-elf-hack" >> .mozconfig
echo "ac_add_options --disable-ion" >> .mozconfig
echo "ac_add_options --disable-yarr-jit" >> .mozconfig
%endif
%ifarch armv5tel
echo "ac_add_options --with-arch=armv5te" >> .mozconfig
echo "ac_add_options --with-float-abi=soft" >> .mozconfig
echo "ac_add_options --disable-elf-hack" >> .mozconfig
echo "ac_add_options --disable-ion" >> .mozconfig
echo "ac_add_options --disable-yarr-jit" >> .mozconfig
%endif

%ifnarch %{ix86} x86_64
echo "ac_add_options --disable-webrtc" >> .mozconfig
%endif

echo "ac_add_options --disable-crashreporter" >> .mozconfig

echo "ac_add_options --with-system-jpeg" >> .mozconfig

# Using the bundled libvpx because the mgav5 one is too old.
# echo "ac_add_options --with-system-libvpx" >> .mozconfig

%build
# -fpermissive is needed to build with gcc 4.6+ which has become stricter
#
# Mozilla builds with -Wall with exception of a few warnings which show up
# everywhere in the code; so, don't override that.
#
# Disable C++ exceptions since Mozilla code is not exception-safe
#
MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS" | %{__sed} -e 's/-Wall//')
#rhbz#1037063
# -Werror=format-security causes build failures when -Wno-format is explicitly given
# for some sources
# Explicitly force the hardening flags for Firefox so it passes the checksec test;
# See also https://fedoraproject.org/wiki/Changes/Harden_All_Packages
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat-security -Wformat -Werror=format-security"
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -fPIC -Wl,-z,relro -Wl,-z,now"
%ifarch %{arm}
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%endif

export CFLAGS=$MOZ_OPT_FLAGS
export CXXFLAGS=$MOZ_OPT_FLAGS
export LDFLAGS=$MOZ_LINK_FLAGS

export PREFIX='%{_prefix}'
export LIBDIR='%{_libdir}'

MOZ_SMP_FLAGS=-j1
# 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.
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le aarch64
[ -z "$RPM_BUILD_NCPUS" ] && \
     RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
MOZ_SMP_FLAGS=-j$RPM_BUILD_NCPUS
%endif

make -f client.mk build STRIP="/bin/true" MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS" MOZ_SERVICES_SYNC="1"

%install
make -C objdir/browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0

# Copy files to buildroot
%{__mkdir_p} %{buildroot}%{mozillalibdir}
cp -rf objdir/dist/firefox/* %{buildroot}%{mozillalibdir}

%{__mkdir_p}  %{buildroot}%{_bindir}
ln -sf %{mozillalibdir}/firefox %{buildroot}%{_bindir}/firefox
pushd %{buildroot}%{_bindir}
	ln -sf firefox mozilla-firefox
popd
mkdir -p %{buildroot}%{mozillalibdir}/browser/defaults/preferences/
install -m 644 %{SOURCE9} %{buildroot}%{mozillalibdir}/browser/defaults/preferences/kde.js

# Create and own %{_libdir}/mozilla/plugins & firefox extensions directories
%{__mkdir_p} %{buildroot}%{pluginsdir}
%{__mkdir_p} %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_appid}
%{__mkdir_p} %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}

# (tpg) desktop entry
%{__mkdir_p} %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop

# (tpg) icons
%{__cp} %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}/%{mozillalibdir}/browser/icons/
for i in 16 22 24 32 48 256; do
%{__mkdir_p} %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
%{__install} -m 644 browser/branding/official/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png ;
done
%{__mkdir_p} %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default48.png %{buildroot}%{_liconsdir}/%{name}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default32.png %{buildroot}%{_iconsdir}/%{name}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}%{_miconsdir}/%{name}.png

# exclusions
rm -f %{buildroot}%{mozillalibdir}/README.txt
rm -f %{buildroot}%{mozillalibdir}/removed-files
rm -f %{buildroot}%{mozillalibdir}/precomplete

# this file is only used when creating a new user profile
install -D -m644 browser/app/profile/prefs.js %{buildroot}%{mozillalibdir}/browser/defaults/profile/prefs.js
cat << EOF >> %{buildroot}%{mozillalibdir}/browser/defaults/profile/prefs.js
user_pref("browser.EULA.override", true);
user_pref("browser.shell.checkDefaultBrowser", false);
user_pref("browser.startup.homepage", "file:///usr/share/indexhtml/index.html");
user_pref("app.update.auto", false);
user_pref("app.update.enabled", false);
user_pref("app.update.autoInstallEnabled", false);
user_pref("browser.showQuitWarning", true);
EOF

# display icon for Firefox button
%{__mkdir_p} %{buildroot}%{mozillalibdir}/browser/defaults/profile/chrome
cat << EOF > %{buildroot}%{mozillalibdir}/browser/defaults/profile/chrome/userChrome.css
#appmenu-toolbar-button {
  list-style-image: url("chrome://branding/content/icon16.png");
}
EOF

# files in this directory are read on every startup, and can change/add
# preferences for existing profiles
# extensions.autoDisableScopes is a new preference added in firefox 8
# it defines "scopes" where newly installed addons are disabled by default
# this is an additive bit field, and the value defaults to 15 (1+2+4+8)
# we need to remove system scope (8) from it so language packs and other addons
# which are installed systemwide won't get marked as 3rd party and disabled
# documentation: http://kb.mozillazine.org/About:config_entries#Extensions.
# or in toolkit/mozapps/extensions/AddonManager.jsm
# we also need to disable the "disable addon selection dialog"
# (doktor5000) - path has changed since FF 21
# http://mike.kaply.com/2013/04/24/major-changes-coming-in-firefox-21/
cat << EOF > %{buildroot}%{mozillalibdir}/browser/defaults/preferences/mga.js
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
pref("extensions.autoDisableScopes", 0);
pref("extensions.shownSelectionUI", true);
EOF
# FIXME: Add it back in mga.js when this search engine will be used by default.
# user_pref("browser.search.selectedEngine","duckduckgo.com");

# use the system myspell dictionaries
rm -fr %{buildroot}%{mozillalibdir}/dictionaries
ln -s %{_datadir}/hunspell %{buildroot}%{mozillalibdir}/dictionaries

# (lm) touch and %ghost bookmarks.html to a proper uninstall
touch %{buildroot}%{mozillalibdir}/browser/defaults/profile/bookmarks.html

# Add stuff to build a plugin to -devel
mkdir -p %{buildroot}%{_includedir}
cp -a dom/plugins/base/np*.h %{buildroot}%{_includedir}
mkdir -p %{buildroot}/%{_datadir}/pkgconfig
cat <<EOF >%{buildroot}/%{_datadir}/pkgconfig/mozilla-plugin.pc
Name: Mozilla Plug-In API
Description: Mozilla Plug-In API
Version: %{version}
Cflags: -I%{_includedir} -DXP_UNIX
EOF

mkdir -p %{buildroot}%{_sys_macros_dir}
cat <<FIN >%{buildroot}%{_sys_macros_dir}/%{name}.macros
# Macros from %{name} package
%%firefox_major              %{version}
%%firefox_epoch              %{ff_epoch}
%%firefox_version            %{version}
%%firefox_mozillapath        %{mozillalibdir}
%%firefox_pluginsdir         %{pluginsdir}
%%firefox_appid              \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%%firefox_extdir             %%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{firefox_appid}; else echo %%{_libdir}/mozilla/extensions/%%{firefox_appid}; fi)
FIN
# temp build fix:
mkdir -p %{buildroot}%{mozillalibdir}/browser/searchplugins
cp -f %{SOURCE8} %{buildroot}%{mozillalibdir}/browser/searchplugins/duckduckgo.xml

%pre
if [ -d %{mozillalibdir}/dictionaries ]; then
    rm -fr %{mozillalibdir}/dictionaries
fi

%post
if [ ! -r /etc/sysconfig/oem ]; then
  case `grep META_CLASS /etc/sysconfig/system` in
    *powerpack) bookmark="mozilla-powerpack.html" ;;
    *desktop) bookmark="mozilla-one.html";;
    *) bookmark="mozilla-download.html";;
  esac
  ln -s -f %{_prefix}/share/mga/bookmarks/mozilla/$bookmark  %{mozillalibdir}/browser/defaults/profile/bookmarks.html
fi

%files
%{_bindir}/%{name}
%{_bindir}/mozilla-firefox
%{_iconsdir}/hicolor/*/apps/*.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/*.desktop
%{mozillalibdir}
%ghost %{mozillalibdir}/browser/defaults/profile/bookmarks.html
%dir %{_libdir}/mozilla
%dir %{pluginsdir}
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
%dir %{_datadir}/mozilla/extensions/%{firefox_appid}

%files devel
%{_sys_macros_dir}/%{name}.macros
%{_includedir}/np*.h
%{_datadir}/pkgconfig/mozilla-plugin.pc


%changelog
* Tue Jan 24 2017 luigiwalser <luigiwalser> 0:45.7.0-1.mga5
+ Revision: 1083267
- 45.7.0
- 45.6.0
- 45.5.1
- 45.5.0
- 45.4.0
- 45.3.0
- 45.2.0
- rebuild without patch222 (firefox-gtk3-20.patch) to try to fix visual issues
- 38.8.0
- 38.7.0
- 38.6.1
- 38.6.0
- 38.5.0
- 38.4.0
- use version-independent mozillalibdir to not break default profile on upgrade
- 38.3.0
- 38.2.1
- 38.2.0
- 38.1.1
- 38.1.0
- 38.0.1

  + ghibo <ghibo>
    - Added Patch for not forcing -O3 optimization flags sporadically thus overriding global CFLAGS which have a lower optimization (e.g -O2) or don't override compilation flags with -Os or -O globally

  + lmenut <lmenut>
    - update and reenable KDE integration patches (mga#18710)

  + tmb <tmb>
    - update to 45.1.1

  + shlomif <shlomif>
    - ESR Version Upgrade because 38.x will be discontinued.
      It also reportedly no longer supported by some web sites.

* Wed May 13 2015 luigiwalser <luigiwalser> 0:31.7.0-1.mga5
+ Revision: 821974
- 31.7.0

* Wed Apr 01 2015 luigiwalser <luigiwalser> 0:31.6.0-1.mga5
+ Revision: 819506
- 31.6.0

* Mon Mar 23 2015 luigiwalser <luigiwalser> 0:31.5.3-1.mga5
+ Revision: 819113
- 31.5.3

* Tue Feb 24 2015 luigiwalser <luigiwalser> 0:31.5.0-1.mga5
+ Revision: 816825
- 31.5.0

* Tue Jan 13 2015 luigiwalser <luigiwalser> 0:31.4.0-1.mga5
+ Revision: 810406
- 31.4.0

* Tue Dec 02 2014 luigiwalser <luigiwalser> 0:31.3.0-1.mga5
+ Revision: 800259
- 31.3.0

* Sat Nov 29 2014 sander85 <sander85> 0:31.2.0-5.mga5
+ Revision: 799848
- Build without java

  + tv <tv>
    - adjust comment for Mga5

* Thu Oct 23 2014 luigiwalser <luigiwalser> 0:31.2.0-4.mga5
+ Revision: 792692
- rebuild for release

* Thu Oct 23 2014 doktor5000 <doktor5000> 0:31.2.0-3.mga5
+ Revision: 792682
- add firefox-31.2-mga-gcc49-mediadata-symbols.patch to fix build

  + luigiwalser <luigiwalser>
    - 31.2.0
    - remove patch 40 (fixed upstream)
    - fix libpng BR version

  + lmenut <lmenut>
    - fix Categories in firefox.desktop
    - add mimetype x-scheme-handler to firefox.desktop

  + umeabot <umeabot>
    - Second Mageia 5 Mass Rebuild

* Thu Sep 25 2014 doktor5000 <doktor5000> 0:31.1.1-1.mga5
+ Revision: 724612
- update to 31.1.1esr
- updated, rediffed and reenabled KDE integration patches
  o updated current upstream location for subsequent updates

* Tue Sep 23 2014 doktor5000 <doktor5000> 0:31.1.0-6.mga5
+ Revision: 721882
- enable support for webRTC (mga#14084, 13587, 12211)
- build against system harfbuzz again

* Sun Sep 21 2014 doktor5000 <doktor5000> 0:31.1.0-5.mga5
+ Revision: 710728
- add patch for undefined reference with gcc > 4.9 (bmo#999496)
- try gcc build again
- disable cpp exceptions (from Fedora) when building with gcc
- try to build against bundled harfbuzz to fix linker issues

* Thu Sep 18 2014 tv <tv> 0:31.1.0-4.mga5
+ Revision: 694170
- gcc build is still broken
- fix build with gcc-4.9
- use %%global for req/prov exclude
- autoconvert to new prov/req excludes
- s/uggests:/Recommends:/

  + umeabot <umeabot>
    - Mageia 5 Mass Rebuild

  + doktor5000 <doktor5000>
    - try to use _disable_ld_no_undefined 1 to enable gcc build
    - try to build with gcc instead of clang to try to fix crash (mga#14062)
    - added macro for clang build
    - added patch to fix "GLib-CRITICAL **: g_slice_set_config: assertion:
      'sys_page_size == 0' failed"
      o disabled for now, will be enabled after the current crashes are fixed

* Sun Sep 07 2014 doktor5000 <doktor5000> 0:31.1.0-2.mga5
+ Revision: 673169
- change Requires on firefox-l10n into Suggests
  o -l10n packages should not be required, to enable normal removal
  o also breaks circular dependency between firefox and firefox-l10n

* Fri Sep 05 2014 fwang <fwang> 0:31.1.0-1.mga5
+ Revision: 672314
- 31.1.0esr

* Sun Aug 24 2014 doktor5000 <doktor5000> 0:31.0-7.mga5
+ Revision: 667194
- try to fix mga#1344 (automatic installation of proper -l10n package)
  o require firefox-l10n
  o firefox-l10n-XX package should be installed according to installed locales-XX package(s)

* Sat Jul 26 2014 tv <tv> 0:31.0-5.mga5
+ Revision: 656603
- requires gstreamer1.0-libav instead of gstreamer libs (Charles A Edwards)

* Tue Jul 22 2014 tv <tv> 0:31.0-4.mga5
+ Revision: 655537
- fix gstreamer requires

* Tue Jul 22 2014 tv <tv> 0:31.0-3.mga5
+ Revision: 655519
- build with gstreamer-1.0 instead of with 0.1

* Tue Jul 22 2014 tv <tv> 0:31.0-2.mga5
+ Revision: 655464
- build with clang as ff can no more be build with gcc-4.9 (mga#13543)
- new ESR release

  + fwang <fwang>
    - with system icu

* Wed Jun 25 2014 tv <tv> 0:30.0-2.mga5
+ Revision: 639708
- try rebuilding with latest gcc (mga#13575)

* Tue Jun 10 2014 fwang <fwang> 0:30.0-1.mga5
+ Revision: 635335
- bump req
- 30.0

* Sat May 10 2014 tv <tv> 0:29.0.1-1.mga5
+ Revision: 621850
- new release

* Tue Apr 29 2014 tv <tv> 0:29.0-1.mga5
+ Revision: 618815
- pkgconfig BR do not have epochs
- new release

* Tue Mar 18 2014 tv <tv> 0:28.0-1.mga5
+ Revision: 604755
- BR pkgconfig(libpulse)
- new release
- rediff patch 4
- drop patch 9

* Fri Feb 14 2014 fwang <fwang> 0:27.0.1-1.mga5
+ Revision: 591043
- 27.0.1

* Sun Feb 09 2014 tv <tv> 0:27.0-1.mga5
+ Revision: 587049
- new release
- typo fix

* Wed Feb 05 2014 fwang <fwang> 0:24.3.0-2.mga5
+ Revision: 583091
- 24.3.0esr

* Fri Jan 10 2014 pterjan <pterjan> 0:24.2.0-2.mga4
+ Revision: 566090
- Ship files needed to build a plugin in -devel

* Wed Dec 18 2013 oden <oden> 0:24.2.0-1.mga4
+ Revision: 558401
- 24.2.0

* Fri Nov 15 2013 fwang <fwang> 0:24.1.1-1.mga4
+ Revision: 551371
- new version 24.1.1esr

* Wed Oct 30 2013 fwang <fwang> 0:24.1.0-1.mga4
+ Revision: 547917
- new version 24.1.0esr

* Mon Oct 21 2013 umeabot <umeabot> 0:24.0-6.mga4
+ Revision: 539492
- Mageia 4 Mass Rebuild

  + oden <oden>
    - use bundled libpng for mga2
    - more backport fixes
    - fix deps
    - make it backportable to at least mga3

  + tv <tv>
    - bump ff-beta obsoletes tags

* Sun Oct 06 2013 doktor5000 <doktor5000> 0:24.0-5.mga4
+ Revision: 492319
- fixed location of Mageia default profile, bookmarks and preferences
  o also fixes disabling of 3rd party addons (enables e.g. language pack) and
    reenables our changes to default preferences
  o fixes mga#11162 - No localized interface in firefox (addon is disabled)
- changed %%setup macro, %%setup -qn doesn't work on Mageia 3, preparation
  for backporting 24ESR to Mageia 3 and 2
- added Requires on desktop-common-data to ensure bookmarks are existent

* Wed Sep 25 2013 fwang <fwang> 0:24.0-4.mga4
+ Revision: 485813
- add more requires

* Mon Sep 23 2013 fwang <fwang> 0:24.0-3.mga4
+ Revision: 484107
- update java br
- force locale language

* Tue Sep 17 2013 fwang <fwang> 0:24.0-2.mga4
+ Revision: 480717
- sync kde patch with opensuse

* Tue Sep 17 2013 fwang <fwang> 0:24.0-1.mga4
+ Revision: 480701
- new version 24.0esr
- drop old unapplied patches

* Sat Aug 17 2013 fwang <fwang> 0:23.0.1-1.mga4
+ Revision: 467055
- new version 23.0.1

* Fri Aug 16 2013 fwang <fwang> 0:23.0-2.mga4
+ Revision: 467025
- build with system libevent

* Tue Aug 06 2013 fwang <fwang> 0:23.0-1.mga4
+ Revision: 464111
- fix nspr version
- new version 23.0

* Tue Jun 25 2013 tv <tv> 0:22.0-2.mga4
+ Revision: 446467
- new release
- rediff patch 8
- temporary disable patch38 (system ogg)

* Thu Jun 20 2013 tv <tv> 0:21.0-2.mga4
+ Revision: 445249
- clean
- fix installing icons
- new version
- drop patches patches 34, 36 & 39
- rediff patches 4, 5, 14 & 38
- temporary disable KDE patches

* Mon Jun 03 2013 shlomif <shlomif> 0:17.0.6-2.mga4
+ Revision: 436211
- Rebuild for libpng-1.6

* Sat May 11 2013 fwang <fwang> 0:17.0.6-1.mga4
+ Revision: 412983
- new version 17.0.6esr

* Sun Apr 07 2013 rtp <rtp> 0:17.0.5-2.mga3
+ Revision: 408952
- fix firefox-17.0-system-ogg.patch

* Tue Apr 02 2013 fwang <fwang> 0:17.0.5-1.mga3
+ Revision: 407104
- new version 17.0.5esr

* Sat Mar 09 2013 fwang <fwang> 0:17.0.4-1.mga3
+ Revision: 402001
- new version 17.0.4esr

* Sat Feb 16 2013 fwang <fwang> 0:17.0.3-1.mga3
+ Revision: 398685
- new version 17.0.3esr

* Sat Jan 26 2013 luigiwalser <luigiwalser> 0:17.0.2-7.mga3
+ Revision: 392340
- fix syntax in duckduckgo xml file

* Mon Jan 21 2013 luigiwalser <luigiwalser> 0:17.0.2-6.mga3
+ Revision: 390635
- build against system ogg/vorbis/theora/opus libraries (from cjw)
- do not use gstreamer for ogg media as this breaks opus (from cjw)
- disable webrtc for now, not yet fixed in system-ogg patch
- use correct upstream tarball

* Thu Jan 17 2013 pterjan <pterjan> 0:17.0.2-5.mga3
+ Revision: 389233
- Add Mageia parameter to DuckDuckGo url

* Mon Jan 14 2013 rtp <rtp> 0:17.0.2-4.mga3
+ Revision: 385395
- Fix arm build

* Sun Jan 13 2013 dmorgan <dmorgan> 0:17.0.2-3.mga3
+ Revision: 379672
- Add back kde integration ( opensuse )

* Fri Jan 11 2013 umeabot <umeabot> 0:17.0.2-2.mga3
+ Revision: 350377
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Jan 08 2013 fwang <fwang> 0:17.0.2-1.mga3
+ Revision: 342336
- new version 17.0.2esr

* Tue Dec 11 2012 lmenut <lmenut> 0:17.0.1-3.mga3
+ Revision: 329825
- install mga.js in defaults/preferences
  (fix mga #7424 - extensions and languages pack are disabled by default)
- remove duplicated ghost in files list

* Sun Dec 02 2012 fwang <fwang> 0:17.0.1-2.mga3
+ Revision: 325454
- update virtual provides

* Sat Dec 01 2012 fwang <fwang> 0:17.0.1-1.mga3
+ Revision: 323613
- new version 17.0.1

* Sat Nov 24 2012 dmorgan <dmorgan> 0:17.0-4.mga3
+ Revision: 321474
- Try to fix duckduckgo search engine

* Fri Nov 23 2012 dmorgan <dmorgan> 0:17.0-3.mga3
+ Revision: 321124
- Enable KDE Integration ( From OpenSuse)

* Wed Nov 21 2012 fwang <fwang> 0:17.0-2.mga3
+ Revision: 319950
- turn to esr branch

* Tue Nov 20 2012 tv <tv> 0:17.0-1.mga3
+ Revision: 319844
- new version
- rediff patches

  + dmorgan <dmorgan>
    - Add duckduckgo search engine support
    - New version 17.0

* Sat Oct 27 2012 fwang <fwang> 0:16.0.2-1.mga3
+ Revision: 310723
- new version 16.0.2

* Wed Oct 17 2012 tv <tv> 0:16.0.1-2.mga3
+ Revision: 307645
- own profile/bookmarks.html, thus fixing leaving directories behind on uninstall
  though the link should be probably done at build time not in %%post

* Fri Oct 12 2012 fwang <fwang> 0:16.0.1-1.mga3
+ Revision: 304776
- new version 16.0.1

* Thu Oct 11 2012 dmorgan <dmorgan> 0:16.0-2.mga3
+ Revision: 304600
- Enable KDE Integration

* Wed Oct 10 2012 tv <tv> 0:16.0-1.mga3
+ Revision: 304073
- disable KDE integration (breaks build)
- drop patch 38 (merged)
- remove patch 37 (merged)
- rediff patch 36
- new release
- drop patch 35 (merged)
- rediff KDE patches

* Sat Sep 08 2012 fwang <fwang> 0:15.0.1-2.mga3
+ Revision: 289805
- new version 15.0.1

* Mon Sep 03 2012 dmorgan <dmorgan> 0:15.0-2.mga3
+ Revision: 287524
- Try to build kde integration support

* Tue Aug 28 2012 dmorgan <dmorgan> 0:15.0-1.mga3
+ Revision: 284631
- New version 15.0

* Mon Aug 06 2012 tv <tv> 0:14.0.1-5.mga3
+ Revision: 279199
- rebuild with compressed debug info

* Thu Aug 02 2012 tv <tv> 0:14.0.1-4.mga3
+ Revision: 277895
- rebuild with mini debug info

* Wed Aug 01 2012 dmorgan <dmorgan> 0:14.0.1-3.mga3
+ Revision: 276864
- Enable gstreamer support

* Tue Jul 31 2012 dmorgan <dmorgan> 0:14.0.1-2.mga3
+ Revision: 276722
- Add h.264 html5 support

* Tue Jul 31 2012 dmorgan <dmorgan> 0:14.0.1-1.mga3
+ Revision: 276610
- Use system nss-nspr ( P36) from spturtle
- New version 14.0.1
- New version 14.0b12
- New version 14.0b10
- New version 14.0b9

* Sat Jun 16 2012 fwang <fwang> 0:13.0.1-1.mga3
+ Revision: 260908
- disable kde integration
- new version 13.0.1

  + dmorgan <dmorgan>
    - Go back to FF 13.0 and add KDE integration support back
    - New version 14.0b6
    - New version 14.0b6

* Sat Jun 02 2012 fwang <fwang> 0:13.0-4.mga3
+ Revision: 253388
- fix tarball dir
- 13.0 final

* Sat Jun 02 2012 dmorgan <dmorgan> 0:13.0-3.b7.1.mga3
+ Revision: 253214
- Fix release

* Fri Jun 01 2012 dmorgan <dmorgan> 0:13.0-2.mga3
+ Revision: 252913
- Remove P9: Merged upstream
- Rediff P8: do not check default browser
- New version 13.0b5

* Tue May 29 2012 fwang <fwang> 0:10.0.4-2.mga3
+ Revision: 248940
- fix firefox-version definition in rpm macro

* Sun Apr 22 2012 fwang <fwang> 0:10.0.4-1.mga2
+ Revision: 232482
- new version 10.0.4esr

* Wed Mar 21 2012 fwang <fwang> 0:10.0.3-1.mga2
+ Revision: 225217
- try to fix build with system nss
- cp from mga1
- new version 10.0.3esr
- display firefox icon for firefox button

* Fri Mar 02 2012 fwang <fwang> 0:10.0.2-5.mga2
+ Revision: 216675
- fix build with latest vpx
- rebuild for new vpx

* Mon Feb 27 2012 fwang <fwang> 0:10.0.2-4.mga2
+ Revision: 215462
- obsoletes devel too

* Wed Feb 22 2012 tv <tv> 0:10.0.2-3.mga2
+ Revision: 211809
- fix nspr require (pkgconfig reports 4.9.0 but package version is 4.9)

* Wed Feb 22 2012 fwang <fwang> 0:10.0.2-2.mga2
+ Revision: 211783
- turn to hunspell, bug#4437
- obsolete beta branch, so users will not confuse about  firefox-esr and firefox-beta

* Fri Feb 17 2012 fwang <fwang> 0:10.0.2-1.mga2
+ Revision: 210043
- new version 10.0.2esr

* Fri Feb 10 2012 fwang <fwang> 0:10.0.1-1.mga2
+ Revision: 206849
- update file list
- new version 10.0.1esr

  + dmorgan <dmorgan>
    - Enable kde integration

* Sun Feb 05 2012 fwang <fwang> 0:10.0-2.mga2
+ Revision: 205048
- suggests several dlopen()ed libs for more features

* Tue Jan 31 2012 fwang <fwang> 0:10.0-1.mga2
+ Revision: 203621
- do not apply kde integration patch, to wait opensue to catch up
- try to build with permissive
- new version 10.0

* Fri Jan 06 2012 tmb <tmb> 0:9.0.1-2.mga2
+ Revision: 192099
- drop suggests on nspluginwrapper

* Thu Dec 22 2011 fwang <fwang> 0:9.0.1-1.mga2
+ Revision: 185617
- new version 9.0.1
- bump sqlite req

* Tue Dec 20 2011 fwang <fwang> 0:9.0-1.mga2
+ Revision: 184831
- commit tarball
- rediff mozilla-kde patch
- new version 9.0

  + doktor5000 <doktor5000>
    - really prevent firefox 8 default preference (extensions.autoDisableScopes)
      from automatically disabling systemwide installed addons
    - hide addons selection dialog permanently
    - added comments about purpose of the .js preferences files we use
    - drop enable-addons.patch, function replaced by mga.js file

* Sun Nov 20 2011 dmorgan <dmorgan> 0:8.0.1-3.mga2
+ Revision: 169618
- Disabled addon check UI (RHBZ #753551)

  + doktor5000 <doktor5000>
    - change firefox 8 default preference (extensions.autoDisableScopes) to not
      automatically disable systemwide installed addons, like language packs

* Wed Nov 16 2011 fwang <fwang> 0:8.0.1-1.mga2
+ Revision: 168118
- new version 8.0.1

* Sun Nov 06 2011 fwang <fwang> 0:8.0-1.mga2
+ Revision: 164134
- new version 8.0

* Fri Sep 30 2011 fwang <fwang> 0:7.0.1-1.mga2
+ Revision: 150409
- new version 7.0.1

* Tue Sep 27 2011 fwang <fwang> 0:7.0-2.mga2
+ Revision: 149306
- sync patch from opensuse

* Tue Sep 27 2011 fwang <fwang> 0:7.0-1.mga2
+ Revision: 149203
- fix str fmt
- fix mozconfig dir
- new version 7.0

* Sun Sep 11 2011 fwang <fwang> 0:6.0.2-2.mga2
+ Revision: 142362
- br system png

* Sun Sep 04 2011 fwang <fwang> 0:6.0.2-1.mga2
+ Revision: 138408
- new version 6.0.2

* Thu Sep 01 2011 dmorgan <dmorgan> 0:6.0.1-2.mga2
+ Revision: 137463
- Rebuild against new rootcerts and nss

* Wed Aug 31 2011 fwang <fwang> 0:6.0.1-1.mga2
+ Revision: 136959
- new version 6.0.1
- use our own ldflags
- enable xinerama
- enable vpx
- disable patch33, does not apply now
- update kde patch from opensuse
- rediff appname patch
- rediff lang patch
- add host and target definition
- enable optimize
- add fedora patch to fix garbage char in title bar (bug#1880)

  + dmorgan <dmorgan>
    - Fix nss minimum required version
    - Fux nspr minimum required version
    - Fix typo
    - Fix BuildRequires
    - Fix BuildRequires
    - Disable png-devel BR
    - Remove old patch
    - Update FF package to build w/o the need of xulrunner ( mdv/opensuse/ ... )
      Add back kde integration patches

  + tv <tv>
    - fix icon path
    - new release

  + lmenut <lmenut>
    - version requires on nss and nspr (like in xulrunner)
    - fix default bookmarks.html
    - use gio instead of gnomevfs
    - enable startup notification
    - own firefox extensions directories
    - use upstream default for user_pref:
       + browser.ctrlTab.previews
       + browser.tabs.insertRelatedAfterCurrent
       + security.ssl.require_safe_negotiation
    - add user_pref(browser.showQuitWarning, true)

  + ahmad <ahmad>
    - Drop BR xulrunner-devel since libxul.so is built here
    - Add BR pkgconfig(libproxy-1.0), pkgconfig(alsa)
    - Use the system myspell dictionaries

  + colin <colin>
    - Install more icon sizes. This should make firefox look better in task switchers.

* Tue Jul 12 2011 fwang <fwang> 0:5.0.1-1.mga2
+ Revision: 122831
- new version 5.0.1

  + ahmad <ahmad>
    - Only suggest nspluginwrapper for x86_64 package:
      o firefox doesn't need a plugin wrapper nowadays that it has a native
        out-of-process-plugin technology
      o nspluginwrapper is only useful for the x86_64 package, to enable using
        32bit-only plugins (e.g. Adobe nppdf or flash player)

  + dmorgan <dmorgan>
    - Udpate kde patch
    - Fix and rediff P1
    - Clean spec file
    - bump yasm dep to 1.0.1

* Fri Jun 24 2011 fwang <fwang> 0:5.0-2.mga2
+ Revision: 112926
- bump xulrunner req

* Mon Jun 20 2011 tv <tv> 0:5.0-1.mga2
+ Revision: 110649
- new release

* Sat Apr 30 2011 tv <tv> 0:4.0.1-4.mga1
+ Revision: 93606
- new release
- update kde patch from MDV:  Enable back kde firefox integration

* Wed Mar 30 2011 rtp <rtp> 0:4.0-4.mga1
+ Revision: 79029
- Arm support :
  * Merge patch from mozilla bug 626035 to fix arm detection
  * Use system libffi (only on arm) because internal one is using vfp insns
  * Disable all javascrits jit (tracejit/methodjit) because arm softfloat support broken
  * Backport alignment fix from mozilla bug 634954

  + rda <rda>
    - Update homepage location

* Tue Mar 22 2011 ahmad <ahmad> 0:4.0-2.mga1
+ Revision: 75375
- update to firefox-4.0
- enable to package beta/rc or final with %%if (Thierry Vignaud)
- remove a duplicate instance of user_pref("browser.startup.homepage"
- remove user_pref("browser.ctrlTab.previews", true); and go with upstream default
- add user_pref("browser.showQuitWarning", true);
- drop the vendor patch in accordance with xulrunner commits, c.f.:
  http://svnweb.mageia.org/packages?view=revision&revision=65726
- don't change upstream search engines prefs until it's decided what Mageia will
  ship by default
- no need to ghost {compreg,xpti}.dat any more, they both moved to the profile
  directory ages ago (Fedora)
- drop firefox-rebuild-databases.pl, it's not needed any more (see above)
- don't compile with --disable-faststart
- build with system-libvpx
- build with system system-pixman

* Sun Mar 20 2011 dmorgan <dmorgan> 0:4.0-0.rc2.1.mga1
+ Revision: 74764
- Update to rc2

* Sat Mar 19 2011 dmorgan <dmorgan> 0:4.0-0.rc1.9.mga1
+ Revision: 74498
- Add patch to enable kde integration ( from Suse )

* Fri Mar 18 2011 dmorgan <dmorgan> 0:4.0-0.rc1.8.mga1
+ Revision: 74105
- disable gnomevfs and enable gio

* Fri Mar 18 2011 ennael <ennael> 0:4.0-0.rc1.7.mga1
+ Revision: 74084
- fix firefox-kde.patch

* Thu Mar 10 2011 tv <tv> 0:4.0-0.rc1.6.mga1
+ Revision: 67799
- fix path in tarball
- new release

* Sun Mar 06 2011 ahmad <ahmad> 0:4.0-0.b12.6.mga1
+ Revision: 65727
- don't set browser.tabs.insertRelatedAfterCurrent to false by default, to be
  more compliant with upstream (they do spend time on usability)

* Tue Mar 01 2011 ahmad <ahmad> 0:4.0-0.b12.5.mga1
+ Revision: 61887
- don't install kde.js, the xulrunner kde-integration patches aren't applied
  so installing this file is useless
- tighten the 'xulrunner' requires, otherwise firefox breaks if xulrunner is
  updated while new firefox isn't built/available on the mirrors yet

  + dmorgan <dmorgan>
    - Revert previous commti
    - Fix release

* Sat Feb 26 2011 tv <tv> 0:4.0-0.b12.4.mga1
+ Revision: 60892
- new release
- new release

* Mon Feb 21 2011 dmorgan <dmorgan> 0:4.0-0.b11.4.mga1
+ Revision: 55433
- Fix sources
- Backport mdv commit 636905
  	- disable elf hack also
- Update to b11

* Sun Feb 13 2011 dmorgan <dmorgan> 0:4.0-0.b10.4.mga1
+ Revision: 51554
- Fixed build with the new omni.jar format and enabled again system nss
  Merge mdv commit 631629

  + ahmad <ahmad>
    - requires a recent enough cairo-devel

* Tue Feb 01 2011 tv <tv> 0:4.0-0.b10.3.mga1
+ Revision: 45615
- add more firefox macro to ease packaging extensions per discussion on cooker@
- fix version in description
- fix URL

* Mon Jan 31 2011 dmorgan <dmorgan> 0:4.0-0.b10.2.mga1
+ Revision: 45197
- now ships boundled weave sync

* Thu Jan 27 2011 erwan <erwan> 0:4.0-0.b10.1.mga1
+ Revision: 42309
- Adding asc file for b10
- New release b10
- Removing older file

* Thu Jan 27 2011 erwan <erwan> 0:4.0-0.b8.1.mga1
+ Revision: 42265
- Removing useless specs

  + blino <blino>
    - imported package firefox