2012-09-04 11:53:20 -04:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2016-08-03 13:32:15 +03:00
|
|
|
%define major 48.0
|
2012-09-04 11:53:20 -04:00
|
|
|
%define ff_epoch 0
|
|
|
|
# (tpg) set version HERE !!!
|
|
|
|
%define realver %{major}
|
|
|
|
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
|
2012-02-01 14:23:54 +04:00
|
|
|
|
|
|
|
# (tpg) MOZILLA_FIVE_HOME
|
2012-09-04 11:53:20 -04:00
|
|
|
%define mozillalibdir %{_libdir}/%{name}-%{major}
|
2012-02-01 14:23:54 +04:00
|
|
|
%define pluginsdir %{_libdir}/mozilla/plugins
|
|
|
|
|
2012-02-01 15:22:14 +04:00
|
|
|
# this seems fragile, so require the exact version or later (#58754)
|
|
|
|
%define sqlite3_version %(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
|
|
|
|
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)
|
2012-09-04 11:53:20 -04:00
|
|
|
%define nspr_version %(pkg-config --modversion nspr &>/dev/null && pkg-config --modversion nspr 2>/dev/null |sed -e 's!\.0!!' || echo 0)
|
|
|
|
|
2012-10-09 07:37:44 +00:00
|
|
|
%define _use_syshunspell 0
|
2012-02-01 15:22:14 +04:00
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
%define update_channel release
|
|
|
|
|
2015-09-25 11:51:45 +03:00
|
|
|
%define toolkit_gtk3 1
|
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
Summary: Next generation web browser
|
2012-02-01 14:23:54 +04:00
|
|
|
Name: firefox
|
2012-09-04 11:53:20 -04:00
|
|
|
Version: %{major}
|
|
|
|
Epoch: %{ff_epoch}
|
2016-01-07 20:06:56 +03:00
|
|
|
Release: 1
|
2012-02-01 14:23:54 +04:00
|
|
|
License: MPLv1+
|
|
|
|
Group: Networking/WWW
|
2012-09-04 11:53:20 -04:00
|
|
|
Url: http://www.mozilla.com/firefox/
|
|
|
|
%if 0%{?prel}
|
2015-09-23 17:16:17 +03:00
|
|
|
Source0: ftp://ftp.mozilla.org/pub/mozilla.org/%{name}/releases/%{realver}/source/%{name}-%{realver}%prel.source.tar.xz
|
2012-09-04 11:53:20 -04:00
|
|
|
%else
|
2015-09-23 17:16:17 +03:00
|
|
|
Source0: ftp://ftp.mozilla.org/pub/mozilla.org/%{name}/releases/%{realver}/source/%{name}-%{realver}.source.tar.xz
|
2012-09-04 11:53:20 -04:00
|
|
|
%endif
|
|
|
|
Source4: %{name}.desktop
|
2012-02-01 14:23:54 +04:00
|
|
|
Source9: kde.js
|
2015-07-03 17:15:53 +03:00
|
|
|
Source1000: README.urpmi
|
2012-09-04 11:53:20 -04:00
|
|
|
# Patches for kde integration of FF
|
2016-08-03 13:32:15 +03:00
|
|
|
Patch11: firefox-48-kde.patch
|
|
|
|
Patch12: mozilla-48-kde.patch
|
2014-12-01 16:15:06 +03:00
|
|
|
#Patch13: mozilla-kde-background.patch
|
2012-09-04 11:53:20 -04:00
|
|
|
Patch34: xulrunner_nojit.patch
|
2015-04-20 13:17:10 +03:00
|
|
|
Patch35: firefox-37-build-with-time-independent-uuids.patch
|
2015-11-11 18:43:25 +03:00
|
|
|
Patch36: firefox-38.0-enable-NTLMv1.patch
|
|
|
|
Patch42: mozilla-42.0-libproxy.patch
|
2013-02-15 16:06:39 +04:00
|
|
|
|
2014-12-16 13:20:16 +03:00
|
|
|
# Fedora specific patches
|
|
|
|
# Unable to install addons from https pages
|
2014-12-16 13:25:09 +03:00
|
|
|
Patch204: rhbz-966424.patch
|
2015-09-25 15:11:05 +03:00
|
|
|
Patch215: firefox-enable-addons.patch
|
|
|
|
Patch219: rhbz-1173156.patch
|
|
|
|
Patch220: rhbz-1014858.patch
|
2015-09-25 11:51:45 +03:00
|
|
|
|
|
|
|
# Gtk3 upstream patches
|
2013-05-21 14:18:43 +04:00
|
|
|
|
2012-02-01 14:23:54 +04:00
|
|
|
BuildRequires: gtk+2-devel
|
2015-09-25 11:51:45 +03:00
|
|
|
%if %{toolkit_gtk3}
|
|
|
|
BuildRequires: gtk+3-devel
|
|
|
|
%endif
|
|
|
|
|
2012-02-01 14:23:54 +04:00
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: zip
|
2013-05-13 14:05:37 +04:00
|
|
|
BuildRequires: pkgconfig(xinerama)
|
|
|
|
BuildRequires: pkgconfig(xscrnsaver)
|
2013-10-31 14:16:04 +04:00
|
|
|
BuildRequires: jpeg-devel
|
2012-09-04 11:53:20 -04:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: glib2-devel
|
2013-05-13 14:05:37 +04:00
|
|
|
BuildRequires: pkgconfig(libIDL-2.0)
|
2012-02-01 14:23:54 +04:00
|
|
|
BuildRequires: makedepend
|
2016-08-03 18:50:25 +03:00
|
|
|
BuildRequires: nss-devel >= 2:3.24
|
2012-11-23 12:00:56 +11:00
|
|
|
BuildRequires: nss-static-devel
|
2016-03-08 20:52:14 +03:00
|
|
|
BuildRequires: nspr-devel >= 2:4.12
|
2012-09-04 11:53:20 -04:00
|
|
|
BuildRequires: startup-notification-devel
|
|
|
|
BuildRequires: dbus-glib-devel
|
2015-09-24 15:43:00 +03:00
|
|
|
BuildRequires: pkgconfig(sqlite3) >= 3.8.10.1
|
2012-09-04 11:53:20 -04:00
|
|
|
%ifnarch %arm %mips
|
2012-02-01 14:23:54 +04:00
|
|
|
BuildRequires: valgrind
|
2016-08-03 17:23:11 +03:00
|
|
|
BuildRequires: pkgconfig(valgrind)
|
2012-02-01 14:23:54 +04:00
|
|
|
BuildRequires: java-rpmbuild
|
2014-12-01 17:24:26 +03:00
|
|
|
BuildRequires: java-1.7.0-openjdk-devel
|
2012-11-23 12:00:56 +11:00
|
|
|
BuildRequires: yasm >= 1.0.1
|
2012-09-04 11:53:20 -04:00
|
|
|
%endif
|
|
|
|
%ifarch %arm
|
|
|
|
BuildRequires: libffi-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: rootcerts >= 1:20110830.00
|
2013-05-13 14:05:37 +04:00
|
|
|
BuildRequires: pkgconfig(xt)
|
2012-09-04 11:53:20 -04:00
|
|
|
%if %_use_syshunspell
|
|
|
|
BuildRequires: hunspell-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: doxygen
|
|
|
|
# BuildRequires: xulrunner-devel >= %xulrunner_version%{?prel:-0.%prel}
|
|
|
|
BuildRequires: pkgconfig(libproxy-1.0)
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
2012-02-01 14:23:54 +04:00
|
|
|
BuildRequires: wget
|
2013-05-13 14:05:37 +04:00
|
|
|
BuildRequires: pkgconfig(libnotify)
|
2015-09-25 13:38:59 +03:00
|
|
|
#BuildRequires: cairo-devel >= 1.10
|
2012-09-19 07:36:21 +00:00
|
|
|
BuildRequires: pkgconfig(gl)
|
2016-03-09 09:56:10 +03:00
|
|
|
#BuildRequires: pkgconfig(vpx)
|
2012-09-04 11:53:20 -04:00
|
|
|
BuildRequires: autoconf2.1
|
2012-11-23 12:00:56 +11:00
|
|
|
BuildRequires: libiw-devel
|
2014-06-10 16:43:04 +04:00
|
|
|
BuildRequires: pkgconfig(gstreamer-1.0)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
|
2012-11-23 12:00:56 +11:00
|
|
|
BuildRequires: pkgconfig(opus)
|
2014-03-19 17:07:59 +04:00
|
|
|
BuildRequires: pkgconfig(libpulse)
|
2014-02-11 18:11:29 +04:00
|
|
|
BuildRequires: bzip2-devel
|
2014-12-16 13:44:35 +03:00
|
|
|
BuildRequires: pkgconfig(theoradec)
|
|
|
|
BuildRequires: pkgconfig(vorbis)
|
2015-09-24 12:40:10 +03:00
|
|
|
BuildRequires: pkgconfig(gconf-2.0)
|
2012-09-04 11:53:20 -04:00
|
|
|
|
|
|
|
%if 0%{?prel}
|
|
|
|
Provides: %{name} = %{epoch}:%{realver}-0.%{prel}
|
|
|
|
%else
|
|
|
|
Provides: %{name} = %{epoch}:%{realver}
|
|
|
|
%endif
|
|
|
|
Provides: mozilla-firefox = %{epoch}:%{version}-%{release}
|
2012-02-01 14:23:54 +04:00
|
|
|
Provides: webclient
|
2012-09-04 11:53:20 -04:00
|
|
|
|
|
|
|
Requires: %{mklibname sqlite3_ 0} >= %{sqlite3_version}
|
|
|
|
Requires: %{mklibname nss 3} >= 2:%{nss_version}
|
|
|
|
Requires: %{mklibname nspr 4} >= 2:%{nspr_version}
|
|
|
|
Requires: indexhtml
|
2012-02-01 14:23:54 +04:00
|
|
|
Requires: xdg-utils
|
2012-09-04 11:53:20 -04:00
|
|
|
# fixes bug #42096
|
|
|
|
Requires: mailcap
|
2013-12-12 15:49:50 +04:00
|
|
|
%if %_use_syshunspell
|
2012-09-04 11:53:20 -04:00
|
|
|
Suggests: hunspell-en
|
2013-12-12 15:49:50 +04:00
|
|
|
%endif
|
2012-09-04 11:53:20 -04:00
|
|
|
Suggests: %{_lib}canberra0
|
|
|
|
Suggests: %{_lib}cups2
|
2012-02-01 14:23:54 +04:00
|
|
|
|
|
|
|
%description
|
2012-10-22 10:39:31 +00:00
|
|
|
The award-winning Web browser is now faster, more secure, and fully
|
|
|
|
customizable to your online life. With Firefox(R), we've added powerful new
|
|
|
|
features that make your online experience even better. It is an 'open source'
|
|
|
|
product which is freely available, and is acquiring a growing proportion of
|
|
|
|
international web browser usage.
|
|
|
|
|
|
|
|
Firefox claims to offer a more secure web browsing experience than other
|
|
|
|
products, with better protection against spyware and other Internet-based
|
|
|
|
security threats. It includes all the standard features of a modern web
|
|
|
|
browser, like Internet searching, tracking recently visited sites, setting up
|
|
|
|
shortcuts to favourite sites, customising the software behaviour and so on.
|
|
|
|
Firefox also includes features like 'tabbed browsing' (opening several web
|
|
|
|
sites as sections within the same window) and methods for controlling pop-up
|
|
|
|
windows, cookies and downloaded files.
|
2012-02-01 14:23:54 +04:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Other
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Files and macros mainly for building Firefox extensions.
|
|
|
|
|
|
|
|
%prep
|
2015-11-11 15:43:57 +03:00
|
|
|
%setup -q
|
2012-02-26 04:57:26 +04:00
|
|
|
|
2012-02-01 14:23:54 +04:00
|
|
|
## KDE INTEGRATION
|
2012-09-04 11:53:20 -04:00
|
|
|
# Disable kde integration , need refactoring
|
2015-10-01 15:56:22 +03:00
|
|
|
%patch11 -p1 -b .kdepatch
|
|
|
|
%patch12 -p1 -b .kdemoz
|
2014-12-16 13:20:59 +03:00
|
|
|
#patch13 -p1 -b .kdebackground
|
2012-02-01 14:23:54 +04:00
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
%ifarch %arm
|
|
|
|
%if "%{_target_cpu}" != "armv7l"
|
|
|
|
%patch34 -p1
|
|
|
|
%endif
|
|
|
|
%endif
|
2015-04-20 13:17:10 +03:00
|
|
|
%patch35 -p1
|
2015-05-21 12:15:26 +03:00
|
|
|
%patch36 -p1
|
2016-06-09 11:43:35 +03:00
|
|
|
#patch42 -p1
|
2012-02-01 14:23:54 +04:00
|
|
|
|
2014-12-16 13:25:09 +03:00
|
|
|
# Fedora patches
|
|
|
|
%patch204 -p2 -b .966424
|
2015-09-25 15:11:05 +03:00
|
|
|
%patch215 -p1 -b .addons
|
|
|
|
%patch219 -p2 -b .rhbz-1173156
|
2015-11-11 16:33:24 +03:00
|
|
|
#patch220 -p1 -b .rhbz-1014858
|
2015-09-25 11:51:45 +03:00
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
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
|
2012-02-01 14:23:54 +04:00
|
|
|
|
|
|
|
%build
|
2012-02-01 15:22:14 +04:00
|
|
|
export MOZCONFIG=`pwd`/mozconfig
|
2012-02-01 14:23:54 +04:00
|
|
|
cat << EOF > $MOZCONFIG
|
|
|
|
mk_add_options MOZILLA_OFFICIAL=1
|
|
|
|
mk_add_options BUILD_OFFICIAL=1
|
2012-09-04 11:53:20 -04:00
|
|
|
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}"
|
|
|
|
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
|
|
|
|
ac_add_options --host=%{_host}
|
|
|
|
ac_add_options --target=%{_target_platform}
|
2014-02-13 12:15:36 +04:00
|
|
|
ac_add_options --enable-optimize
|
2012-02-01 14:23:54 +04:00
|
|
|
ac_add_options --prefix="%{_prefix}"
|
|
|
|
ac_add_options --with-system-nspr
|
|
|
|
ac_add_options --with-system-nss
|
|
|
|
ac_add_options --with-system-zlib
|
2016-03-09 09:56:10 +03:00
|
|
|
ac_add_options --without-system-libvpx
|
2014-02-11 18:11:29 +04:00
|
|
|
ac_add_options --with-system-bz2
|
2012-09-04 11:53:20 -04:00
|
|
|
ac_add_options --enable-gio
|
2012-02-01 14:23:54 +04:00
|
|
|
ac_add_options --disable-updater
|
|
|
|
ac_add_options --disable-tests
|
2015-09-25 11:51:45 +03:00
|
|
|
%if %{toolkit_gtk3}
|
|
|
|
ac_add_options --enable-default-toolkit=cairo-gtk3
|
|
|
|
%else
|
|
|
|
ac_add_options --enable-default-toolkit=cairo-gtk2
|
|
|
|
%endif
|
2012-02-01 14:23:54 +04:00
|
|
|
ac_add_options --enable-official-branding
|
|
|
|
ac_add_options --enable-libproxy
|
2012-09-04 11:53:20 -04:00
|
|
|
ac_add_options --with-system-jpeg
|
2015-09-25 13:38:59 +03:00
|
|
|
ac_add_options --disable-system-cairo
|
2012-09-04 11:53:20 -04:00
|
|
|
ac_add_options --enable-system-sqlite
|
2012-02-26 04:57:26 +04:00
|
|
|
ac_add_options --enable-startup-notification
|
2012-09-04 11:53:20 -04:00
|
|
|
ac_add_options --with-distribution-id=org.rosa
|
|
|
|
ac_add_options --disable-crashreporter
|
|
|
|
ac_add_options --enable-update-channel=%{update_channel}
|
|
|
|
%ifarch %arm
|
|
|
|
%if "%{_target_cpu}" != "armv7l"
|
|
|
|
ac_add_options --disable-methodjit
|
|
|
|
ac_add_options --disable-tracejit
|
2012-05-15 04:44:00 +04:00
|
|
|
%endif
|
2012-09-04 11:53:20 -04:00
|
|
|
ac_add_options --enable-system-ffi
|
|
|
|
%endif
|
|
|
|
%ifnarch %arm %mips
|
|
|
|
ac_add_options --with-valgrind
|
2012-02-28 14:08:45 +04:00
|
|
|
%endif
|
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
EOF
|
2012-02-01 14:23:54 +04:00
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
%__perl -p -i -e 's|\-0|\-9|g' config/make-jars.pl
|
|
|
|
|
|
|
|
export LDFLAGS="%ldflags"
|
|
|
|
make -f client.mk build
|
2012-02-01 14:23:54 +04:00
|
|
|
|
|
|
|
%install
|
2012-09-04 11:53:20 -04:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2014-12-16 13:47:12 +03:00
|
|
|
# Make sure locale works for langpacks
|
|
|
|
%{__cat} > %{_builddir}/obj/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
|
|
|
|
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
|
|
|
|
EOF
|
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
make -C %{_builddir}/obj/browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0
|
2012-02-01 14:23:54 +04:00
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
# Copy files to buildroot
|
|
|
|
%{__mkdir_p} %{buildroot}%{mozillalibdir}
|
|
|
|
cp -rf %{_builddir}/obj/dist/firefox/* %{buildroot}%{mozillalibdir}
|
2012-02-01 14:23:54 +04:00
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
%{__mkdir_p} %{buildroot}%{_bindir}
|
|
|
|
ln -sf %{mozillalibdir}/firefox %{buildroot}%{_bindir}/firefox
|
|
|
|
pushd %{buildroot}%{_bindir}
|
|
|
|
ln -sf firefox mozilla-firefox
|
2012-02-28 14:08:45 +04:00
|
|
|
popd
|
2012-09-04 11:53:20 -04:00
|
|
|
mkdir -p %{buildroot}%{mozillalibdir}/defaults/preferences/
|
|
|
|
install -m 644 %{SOURCE9} %{buildroot}%{mozillalibdir}/defaults/preferences/kde.js
|
2012-02-01 14:23:54 +04:00
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
# 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}
|
2012-02-01 14:23:54 +04:00
|
|
|
|
|
|
|
# (tpg) desktop entry
|
|
|
|
%{__mkdir_p} %{buildroot}%{_datadir}/applications
|
2012-09-04 11:53:20 -04:00
|
|
|
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
2012-02-01 14:23:54 +04:00
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
# (tpg) icons
|
2013-05-20 15:29:24 +04:00
|
|
|
%{__cp} %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}/%{mozillalibdir}/browser/icons/
|
2012-09-04 11:53:20 -04:00
|
|
|
for i in 16 22 24 32 48 256; do
|
|
|
|
# (cg) Not all icon sizes are installed with make install, so just redo it here.
|
2013-05-20 17:50:47 +04:00
|
|
|
%{__install} -m 644 browser/branding/official/default$i.png %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default$i.png
|
2012-02-01 14:23:54 +04:00
|
|
|
%{__mkdir_p} %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
|
2013-05-20 17:50:47 +04:00
|
|
|
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png ;
|
2012-02-01 14:23:54 +04:00
|
|
|
done
|
2012-09-04 11:53:20 -04:00
|
|
|
%{__mkdir_p} %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
|
2013-05-20 12:33:14 +04:00
|
|
|
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
|
2012-02-01 14:23:54 +04:00
|
|
|
|
|
|
|
# exclusions
|
|
|
|
rm -f %{buildroot}%{mozillalibdir}/README.txt
|
|
|
|
rm -f %{buildroot}%{mozillalibdir}/removed-files
|
|
|
|
rm -f %{buildroot}%{mozillalibdir}/precomplete
|
|
|
|
|
2014-04-18 20:51:41 +04:00
|
|
|
cat << EOF >> %{buildroot}%{mozillalibdir}/firefox.cfg
|
|
|
|
#code
|
|
|
|
pref("browser.rights.3.shown", false);
|
2014-04-22 19:44:44 +04:00
|
|
|
defaultPref("browser.startup.homepage", "data:text/html,browser.startup.homepage=file:///usr/share/doc/HTML/index.html");
|
2014-04-18 20:51:41 +04:00
|
|
|
pref("browser.shell.checkDefaultBrowser", false);
|
|
|
|
pref("browser.startup.homepage_override.mstone", "ignore");
|
|
|
|
pref("browser.ctrlTab.previews", true);
|
|
|
|
pref("browser.tabs.insertRelatedAfterCurrent", false);
|
|
|
|
pref("browser.backspace_action", 2);
|
|
|
|
pref("browser.display.use_system_colors", true);
|
|
|
|
pref("browser.download.folderList", 1);
|
|
|
|
pref("browser.link.open_external", 3);
|
|
|
|
pref("app.update.auto", false);
|
|
|
|
pref("app.update.enabled", false);
|
|
|
|
pref("app.update.autoInstallEnabled", false);
|
|
|
|
pref("security.ssl.require_safe_negotiation", false);
|
|
|
|
pref("dom.ipc.plugins.enabled.nswrapper*", false);
|
|
|
|
pref("extensions.autoDisableScopes", 0);
|
|
|
|
pref("extensions.shownSelectionUI", true);
|
|
|
|
pref("network.manage-offline-status", true);
|
2015-09-25 15:11:05 +03:00
|
|
|
pref("layers.offmainthreadcomposition.enabled", false);
|
2015-09-28 12:26:52 +03:00
|
|
|
pref("intl.locale.matchOS", true);
|
2014-04-18 20:51:41 +04:00
|
|
|
EOF
|
|
|
|
cat << EOF >> %{buildroot}%{mozillalibdir}/defaults/pref/config-prefs.js
|
|
|
|
pref("general.config.filename", "firefox.cfg");
|
|
|
|
pref("general.config.obscure_value", 0); // use this to disable the byte-shift
|
2012-10-09 07:46:34 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
# display icon for Firefox button
|
|
|
|
%{__mkdir_p} %{buildroot}%{mozillalibdir}/defaults/profile/chrome
|
|
|
|
cat << EOF > %{buildroot}%{mozillalibdir}/defaults/profile/chrome/userChrome.css
|
|
|
|
#appmenu-toolbar-button {
|
|
|
|
list-style-image: url("chrome://branding/content/icon16.png");
|
|
|
|
}
|
2012-02-01 15:22:14 +04:00
|
|
|
EOF
|
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
# use the system myspell dictionaries
|
|
|
|
rm -fr %{buildroot}%{mozillalibdir}/dictionaries
|
2012-10-09 07:37:44 +00:00
|
|
|
#ln -s %{_datadir}/hunspell %{buildroot}%{mozillalibdir}/dictionaries
|
|
|
|
ln -s %{_datadir}/dict/mozilla/ %{buildroot}%{mozillalibdir}/dictionaries
|
2012-02-01 14:23:54 +04:00
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
# (lm) touch and %ghost bookmarks.html to a proper uninstall
|
|
|
|
touch %{buildroot}%{mozillalibdir}/defaults/profile/bookmarks.html
|
|
|
|
|
2012-02-01 14:23:54 +04:00
|
|
|
mkdir -p %{buildroot}%{_sys_macros_dir}
|
|
|
|
cat <<FIN >%{buildroot}%{_sys_macros_dir}/%{name}.macros
|
|
|
|
# Macros from %{name} package
|
|
|
|
%%firefox_major %{major}
|
2012-09-04 11:53:20 -04:00
|
|
|
%%firefox_epoch %{ff_epoch}
|
|
|
|
%%firefox_version %{major}%{?prel:-0.%prel}
|
2012-02-01 14:23:54 +04:00
|
|
|
%%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
|
|
|
|
|
2015-07-03 17:15:53 +03:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
|
|
install -p -m755 %{SOURCE1000} %{buildroot}%{_docdir}/%{name}
|
2013-02-13 14:54:40 +04:00
|
|
|
|
2012-09-04 11:53:20 -04:00
|
|
|
%pre
|
2013-05-21 11:25:44 +04:00
|
|
|
if [ -d %{mozillalibdir}/browser/dictionaries ]; then
|
|
|
|
rm -fr %{mozillalibdir}/browser/dictionaries
|
2012-09-04 11:53:20 -04:00
|
|
|
fi
|
2012-02-28 14:08:45 +04:00
|
|
|
|
2012-02-01 14:23:54 +04:00
|
|
|
%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
|
2013-05-21 14:18:43 +04:00
|
|
|
ln -s -f ../../../../share/mdk/bookmarks/mozilla/$bookmark %{mozillalibdir}/defaults/profile/bookmarks.html
|
2012-02-01 14:23:54 +04:00
|
|
|
fi
|
|
|
|
|
2012-09-04 17:57:47 +04:00
|
|
|
%files
|
2012-09-04 11:53:20 -04:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/mozilla-firefox
|
2012-02-01 14:23:54 +04:00
|
|
|
%{_iconsdir}/hicolor/*/apps/*.png
|
2012-09-04 11:53:20 -04:00
|
|
|
%{_miconsdir}/%{name}.png
|
|
|
|
%{_iconsdir}/%{name}.png
|
|
|
|
%{_liconsdir}/%{name}.png
|
2012-02-01 14:23:54 +04:00
|
|
|
%{_datadir}/applications/*.desktop
|
2012-09-04 11:53:20 -04:00
|
|
|
%{_libdir}/%{name}-%{major}*
|
2015-07-03 17:15:53 +03:00
|
|
|
%{_docdir}/%{name}/README.urpmi
|
2012-09-04 19:27:40 +04:00
|
|
|
#% ghost %{mozillalibdir}/defaults/profile/bookmarks.html
|
2012-02-01 14:23:54 +04:00
|
|
|
%dir %{_libdir}/mozilla
|
2013-02-13 14:54:40 +04:00
|
|
|
%dir %{_libdir}/mozilla/extensions
|
2012-02-01 14:23:54 +04:00
|
|
|
%dir %{pluginsdir}
|
2012-09-04 11:53:20 -04:00
|
|
|
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
|
|
|
|
%dir %{_datadir}/mozilla/extensions/%{firefox_appid}
|
2012-02-01 14:23:54 +04:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_sys_macros_dir}/%{name}.macros
|