|
|
29a772 |
# Use system sqlite?
|
|
|
29a772 |
%define system_sqlite 1
|
|
|
6ca8db |
%define system_ffi 0
|
|
|
29a772 |
|
|
|
29a772 |
# Use system nss/nspr?
|
|
|
29a772 |
%define system_nss 1
|
|
|
29a772 |
|
|
|
29a772 |
# Enable webm for i686/x86_64 only
|
|
|
29a772 |
%ifarch %{ix86} x86_64
|
|
|
29a772 |
%define enable_webm 1
|
|
|
29a772 |
%else
|
|
|
29a772 |
%define enable_webm 0
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
6ca8db |
# Use system cairo?
|
|
|
6ca8db |
%define system_cairo 0
|
|
|
6ca8db |
|
|
|
29a772 |
# Build as a debug package?
|
|
|
29a772 |
%define debug_build 0
|
|
|
29a772 |
|
|
|
29a772 |
# Do we build a final version?
|
|
|
29a772 |
%define official_branding 1
|
|
|
29a772 |
|
|
|
29a772 |
# Minimal required versions
|
|
|
29a772 |
%if %{?system_nss}
|
|
|
29a772 |
%define nspr_version 4.10
|
|
|
29a772 |
%define nss_version 3.15
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
%define cairo_version 1.10.2
|
|
|
29a772 |
%define freetype_version 2.1.9
|
|
|
29a772 |
|
|
|
29a772 |
# Bookmark variables
|
|
|
29a772 |
%define default_bookmarks_file %{_datadir}/bookmarks/default-bookmarks.html
|
|
|
29a772 |
%define firefox_app_id \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
|
|
|
29a772 |
|
|
|
29a772 |
%define mozappdir %{_libdir}/%{name}
|
|
|
29a772 |
%define langpackdir %{mozappdir}/langpacks
|
|
|
29a772 |
|
|
|
29a772 |
%if %{?system_sqlite}
|
|
|
29a772 |
%define sqlite_version 3.6.22
|
|
|
29a772 |
# The actual sqlite version (see #480989):
|
|
|
29a772 |
%global sqlite_build_version %(pkg-config --silence-errors --modversion sqlite3 2>/dev/null || echo 65536)
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
%define official_branding 1
|
|
|
29a772 |
%define build_langpacks 1
|
|
|
29a772 |
|
|
|
29a772 |
%if %{official_branding}
|
|
|
29a772 |
%define tarballdir mozilla-esr24
|
|
|
29a772 |
%define ext_version esr
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
Summary: Mozilla Firefox Web browser
|
|
|
29a772 |
Name: firefox
|
|
|
6ca8db |
Version: 24.4.0
|
|
|
6ca8db |
Release: 1%{?prever}%{?dist}
|
|
|
29a772 |
URL: http://www.mozilla.org/projects/firefox/
|
|
|
29a772 |
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
|
|
29a772 |
Group: Applications/Internet
|
|
|
29a772 |
# From ftp://ftp.mozilla.org/pub/firefox/releases/%{version}%{?pretag}/source
|
|
|
29a772 |
Source0: firefox-%{version}%{?prever}%{?ext_version}.source.tar.bz2
|
|
|
29a772 |
%if %{build_langpacks}
|
|
|
6ca8db |
Source1: firefox-langpacks-%{version}%{?ext_version}-20140318.tar.bz2
|
|
|
29a772 |
%endif
|
|
|
29a772 |
Source10: firefox-mozconfig
|
|
|
29a772 |
Source11: firefox-mozconfig-branded
|
|
|
29a772 |
Source12: firefox-redhat-default-prefs.js
|
|
|
29a772 |
Source20: firefox.desktop
|
|
|
29a772 |
Source21: firefox.sh.in
|
|
|
29a772 |
Source23: firefox.1
|
|
|
29a772 |
Source100: find-external-requires
|
|
|
29a772 |
|
|
|
29a772 |
# Build patches
|
|
|
29a772 |
Patch0: firefox-install-dir.patch
|
|
|
29a772 |
Patch3: xulrunner-2.0-chromium-types.patch
|
|
|
29a772 |
Patch4: xulrunner-24.0-gcc47.patch
|
|
|
29a772 |
Patch5: xulrunner-24.0-jemalloc-ppc.patch
|
|
|
29a772 |
Patch7: xulrunner-webrtc-secondarch.patch
|
|
|
29a772 |
|
|
|
29a772 |
# RPM specific patches
|
|
|
29a772 |
Patch11: firefox-24.0-default.patch
|
|
|
29a772 |
Patch12: firefox-17.0-enable-addons.patch
|
|
|
29a772 |
Patch13: rhbz-966424.patch
|
|
|
6ca8db |
Patch14: rhbz-1032770.patch
|
|
|
29a772 |
|
|
|
29a772 |
# Upstream patches
|
|
|
29a772 |
Patch100: firefox-5.0-asciidel.patch
|
|
|
29a772 |
Patch200: firefox-duckduckgo.patch
|
|
|
6ca8db |
Patch300: mozilla-906754.patch
|
|
|
29a772 |
|
|
|
29a772 |
%if %{official_branding}
|
|
|
29a772 |
# Required by Mozilla Corporation
|
|
|
29a772 |
|
|
|
29a772 |
%else
|
|
|
29a772 |
# Not yet approved by Mozillla Corporation
|
|
|
29a772 |
|
|
|
29a772 |
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
# ---------------------------------------------------
|
|
|
29a772 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
29a772 |
BuildRequires: desktop-file-utils
|
|
|
29a772 |
|
|
|
29a772 |
BuildRequires: mesa-libGL-devel
|
|
|
29a772 |
BuildRequires: system-bookmarks
|
|
|
29a772 |
Requires: system-bookmarks
|
|
|
29a772 |
Requires: redhat-indexhtml
|
|
|
29a772 |
|
|
|
29a772 |
%if %{?enable_webm}
|
|
|
29a772 |
BuildRequires: libvpx-devel >= 1.0.0
|
|
|
29a772 |
Requires: libvpx >= 1.0.0
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
%if %{?system_sqlite}
|
|
|
29a772 |
BuildRequires: sqlite-devel >= %{sqlite_version}
|
|
|
29a772 |
Requires: sqlite >= %{sqlite_build_version}
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
%if %{?system_nss}
|
|
|
29a772 |
BuildRequires: nspr-devel >= %{nspr_version}
|
|
|
29a772 |
BuildRequires: nss-devel >= %{nss_version}
|
|
|
29a772 |
Requires: nspr >= %{nspr_version}
|
|
|
29a772 |
Requires: nss >= %{nss_version}
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
6ca8db |
%if %{?system_cairo}
|
|
|
29a772 |
BuildRequires: cairo-devel >= %{cairo_version}
|
|
|
6ca8db |
%endif
|
|
|
6ca8db |
|
|
|
29a772 |
BuildRequires: hunspell-devel
|
|
|
29a772 |
Requires: mozilla-filesystem
|
|
|
29a772 |
%if %{?system_sqlite}
|
|
|
29a772 |
BuildRequires: sqlite-devel >= %{sqlite_version}
|
|
|
29a772 |
Requires: sqlite >= %{sqlite_build_version}
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
BuildRequires: libpng-devel
|
|
|
29a772 |
BuildRequires: libjpeg-devel
|
|
|
29a772 |
BuildRequires: zip
|
|
|
29a772 |
BuildRequires: bzip2-devel
|
|
|
29a772 |
BuildRequires: zlib-devel
|
|
|
29a772 |
BuildRequires: libIDL-devel
|
|
|
29a772 |
BuildRequires: gtk2-devel
|
|
|
29a772 |
BuildRequires: gnome-vfs2-devel
|
|
|
29a772 |
BuildRequires: libgnome-devel
|
|
|
29a772 |
BuildRequires: libgnomeui-devel
|
|
|
29a772 |
BuildRequires: krb5-devel
|
|
|
29a772 |
BuildRequires: pango-devel
|
|
|
29a772 |
BuildRequires: freetype-devel >= %{freetype_version}
|
|
|
29a772 |
BuildRequires: libXt-devel
|
|
|
29a772 |
BuildRequires: libXrender-devel
|
|
|
29a772 |
BuildRequires: startup-notification-devel
|
|
|
29a772 |
BuildRequires: alsa-lib-devel
|
|
|
29a772 |
BuildRequires: libnotify-devel
|
|
|
29a772 |
BuildRequires: autoconf213
|
|
|
29a772 |
BuildRequires: mesa-libGL-devel
|
|
|
29a772 |
|
|
|
29a772 |
Requires: liberation-fonts-common
|
|
|
29a772 |
Requires: liberation-sans-fonts
|
|
|
29a772 |
|
|
|
29a772 |
BuildRequires: autoconf213
|
|
|
29a772 |
Obsoletes: mozilla <= 37:1.7.13
|
|
|
29a772 |
Obsoletes: firefox < 24.1.0
|
|
|
29a772 |
Conflicts: firefox < 24.1.0
|
|
|
29a772 |
Provides: webclient
|
|
|
29a772 |
|
|
|
29a772 |
|
|
|
29a772 |
%define _use_internal_dependency_generator 0
|
|
|
29a772 |
%define __find_requires %{SOURCE100}
|
|
|
29a772 |
|
|
|
29a772 |
%description
|
|
|
29a772 |
Mozilla Firefox is an open-source web browser, designed for standards
|
|
|
29a772 |
compliance, performance and portability.
|
|
|
29a772 |
|
|
|
29a772 |
#---------------------------------------------------------------------
|
|
|
29a772 |
|
|
|
29a772 |
%prep
|
|
|
29a772 |
%setup -q -c
|
|
|
29a772 |
cd %{tarballdir}
|
|
|
29a772 |
|
|
|
29a772 |
# Build patches
|
|
|
29a772 |
# We have to keep original patch backup extension to go thru configure without problems with tests
|
|
|
29a772 |
%patch0 -p1 -b .orig
|
|
|
29a772 |
%patch3 -p2 -b .chromium-types.patch
|
|
|
29a772 |
%patch4 -p2 -b .gcc47.patch
|
|
|
29a772 |
%patch5 -p2 -b .jemalloc-ppc.patch
|
|
|
29a772 |
%patch7 -p2 -b .webrtc
|
|
|
29a772 |
|
|
|
29a772 |
# RPM specific patches
|
|
|
29a772 |
%patch11 -p2 -b .default
|
|
|
29a772 |
%patch12 -p1 -b .addons
|
|
|
29a772 |
%patch13 -p1 -b .rhbz-966424
|
|
|
6ca8db |
%patch14 -p1 -b .rhbz-1032770
|
|
|
29a772 |
|
|
|
29a772 |
# For branding specific patches.
|
|
|
29a772 |
%patch100 -p1 -b .asciidel
|
|
|
29a772 |
%patch200 -p1 -b .duckduckgo
|
|
|
29a772 |
|
|
|
6ca8db |
# Upstream patches
|
|
|
6ca8db |
%patch300 -p1 -b .906754
|
|
|
6ca8db |
|
|
|
29a772 |
%if %{official_branding}
|
|
|
29a772 |
# Required by Mozilla Corporation
|
|
|
29a772 |
|
|
|
29a772 |
%else
|
|
|
29a772 |
# Not yet approved by Mozilla Corporation
|
|
|
29a772 |
|
|
|
29a772 |
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
|
|
|
29a772 |
%{__rm} -f .mozconfig
|
|
|
29a772 |
%{__cp} %{SOURCE10} .mozconfig
|
|
|
29a772 |
%if %{official_branding}
|
|
|
29a772 |
%{__cat} %{SOURCE11} >> .mozconfig
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
%if %{?system_sqlite}
|
|
|
29a772 |
echo "ac_add_options --enable-system-sqlite" >> .mozconfig
|
|
|
29a772 |
%else
|
|
|
29a772 |
echo "ac_add_options --disable-system-sqlite" >> .mozconfig
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
%if %{?enable_webm}
|
|
|
29a772 |
echo "ac_add_options --with-system-libvpx" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --enable-webm" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --enable-webrtc" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --enable-ogg" >> .mozconfig
|
|
|
29a772 |
%else
|
|
|
29a772 |
echo "ac_add_options --without-system-libvpx" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --disable-webm" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --disable-webrtc" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --disable-ogg" >> .mozconfig
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
6ca8db |
%if %{?system_cairo}
|
|
|
6ca8db |
echo "ac_add_options --enable-system-cairo" >> .mozconfig
|
|
|
6ca8db |
%else
|
|
|
6ca8db |
echo "ac_add_options --disable-system-cairo" >> .mozconfig
|
|
|
6ca8db |
%endif
|
|
|
6ca8db |
|
|
|
6ca8db |
%if %{?system_ffi}
|
|
|
6ca8db |
echo "ac_add_options --enable-system-ffi" >> .mozconfig
|
|
|
6ca8db |
%endif
|
|
|
6ca8db |
|
|
|
29a772 |
%if %{?system_nss}
|
|
|
29a772 |
echo "ac_add_options --with-system-nspr" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --with-system-nss" >> .mozconfig
|
|
|
29a772 |
%else
|
|
|
29a772 |
echo "ac_add_options --without-system-nspr" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --without-system-nss" >> .mozconfig
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
%ifnarch %{ix86} x86_64
|
|
|
29a772 |
echo "ac_add_options --disable-methodjit" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --disable-monoic" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --disable-polyic" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --disable-tracejit" >> .mozconfig
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
# RHEL 6 mozconfig changes:
|
|
|
29a772 |
echo "ac_add_options --enable-system-hunspell" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --enable-libnotify" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --enable-startup-notification" >> .mozconfig
|
|
|
29a772 |
echo "ac_add_options --enable-jemalloc" >> .mozconfig
|
|
|
29a772 |
|
|
|
29a772 |
# s390(x) fails to start with jemalloc enabled
|
|
|
29a772 |
%ifarch s390 s390x ppc ppc64
|
|
|
29a772 |
echo "ac_add_options --disable-jemalloc" >> .mozconfig
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
6ca8db |
# Debug build flags
|
|
|
6ca8db |
%if %{?debug_build}
|
|
|
6ca8db |
echo "ac_add_options --enable-debug" >> .mozconfig
|
|
|
6ca8db |
echo "ac_add_options --disable-optimize" >> .mozconfig
|
|
|
6ca8db |
echo "ac_add_options --enable-dtrace" >> .mozconfig
|
|
|
6ca8db |
%else
|
|
|
6ca8db |
echo "ac_add_options --disable-debug" >> .mozconfig
|
|
|
6ca8db |
echo "ac_add_options --enable-optimize" >> .mozconfig
|
|
|
6ca8db |
%endif
|
|
|
6ca8db |
|
|
|
29a772 |
#---------------------------------------------------------------------
|
|
|
29a772 |
|
|
|
29a772 |
%build
|
|
|
29a772 |
%if %{?system_sqlite}
|
|
|
29a772 |
# Do not proceed with build if the sqlite require would be broken:
|
|
|
29a772 |
# make sure the minimum requirement is non-empty, ...
|
|
|
29a772 |
sqlite_version=$(expr "%{sqlite_version}" : '\([0-9]*\.\)[0-9]*\.') || exit 1
|
|
|
29a772 |
# ... and that major number of the computed build-time version matches:
|
|
|
29a772 |
case "%{sqlite_build_version}" in
|
|
|
29a772 |
"$sqlite_version"*) ;;
|
|
|
29a772 |
*) exit 1 ;;
|
|
|
29a772 |
esac
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
cd %{tarballdir}
|
|
|
29a772 |
|
|
|
29a772 |
# Mozilla builds with -Wall with exception of a few warnings which show up
|
|
|
29a772 |
# everywhere in the code; so, don't override that.
|
|
|
29a772 |
MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS -fpermissive" | %{__sed} -e 's/-Wall//')
|
|
|
29a772 |
%if %{?debug_build}
|
|
|
29a772 |
MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
|
|
|
29a772 |
%endif
|
|
|
29a772 |
%ifarch s390
|
|
|
29a772 |
MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS" | %{__sed} -e 's/-g/-g1/')
|
|
|
29a772 |
%endif
|
|
|
29a772 |
%ifarch s390 %{arm} ppc
|
|
|
29a772 |
MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
export CFLAGS=$MOZ_OPT_FLAGS
|
|
|
29a772 |
export CXXFLAGS=$MOZ_OPT_FLAGS
|
|
|
29a772 |
export LDFLAGS=$MOZ_LINK_FLAGS
|
|
|
29a772 |
|
|
|
29a772 |
export PREFIX='%{_prefix}'
|
|
|
29a772 |
export LIBDIR='%{_libdir}'
|
|
|
29a772 |
|
|
|
29a772 |
MOZ_SMP_FLAGS=-j1
|
|
|
29a772 |
%ifnarch ppc ppc64 s390 s390x
|
|
|
29a772 |
[ -z "$RPM_BUILD_NCPUS" ] && \
|
|
|
29a772 |
RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
|
|
|
29a772 |
[ "$RPM_BUILD_NCPUS" -ge 2 ] && MOZ_SMP_FLAGS=-j2
|
|
|
29a772 |
[ "$RPM_BUILD_NCPUS" -ge 4 ] && MOZ_SMP_FLAGS=-j4
|
|
|
29a772 |
[ "$RPM_BUILD_NCPUS" -ge 8 ] && MOZ_SMP_FLAGS=-j8
|
|
|
29a772 |
%endif
|
|
|
29a772 |
|
|
|
29a772 |
MOZ_APP_DIR=%{_libdir}/%{name}
|
|
|
29a772 |
make -f client.mk build STRIP="/bin/true" MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS"
|
|
|
29a772 |
|
|
|
29a772 |
#---------------------------------------------------------------------
|
|
|
29a772 |
|
|
|
29a772 |
%install
|
|
|
29a772 |
cd %{tarballdir}
|
|
|
29a772 |
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
29a772 |
|
|
|
29a772 |
# set up our prefs and add it to the package manifest file, so it gets pulled in
|
|
|
29a772 |
# to omni.jar which gets created during make install
|
|
|
29a772 |
%{__cp} %{SOURCE12} objdir/dist/bin/browser/defaults/preferences/all-redhat.js
|
|
|
29a772 |
# This sed call "replaces" firefox.js with all-redhat.js, newline, and itself (&)
|
|
|
29a772 |
# having the net effect of prepending all-redhat.js above firefox.js
|
|
|
29a772 |
%{__sed} -i -e\
|
|
|
29a772 |
's|@BINPATH@/browser/@PREF_DIR@/firefox.js|@BINPATH@/browser/@PREF_DIR@/all-redhat.js\n&|' \
|
|
|
29a772 |
browser/installer/package-manifest.in
|
|
|
29a772 |
|
|
|
29a772 |
# set up our default bookmarks
|
|
|
29a772 |
%{__cp} -p %{default_bookmarks_file} objdir/dist/bin/browser/defaults/profile/bookmarks.html
|
|
|
29a772 |
|
|
|
29a772 |
# Make sure locale works for langpacks
|
|
|
29a772 |
%{__cat} > objdir/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
|
|
|
29a772 |
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
|
|
|
29a772 |
EOF
|
|
|
29a772 |
|
|
|
29a772 |
DESTDIR=$RPM_BUILD_ROOT make -C objdir install
|
|
|
29a772 |
|
|
|
29a772 |
%{__mkdir_p} $RPM_BUILD_ROOT{%{_libdir},%{_bindir},%{_datadir}/applications}
|
|
|
29a772 |
|
|
|
29a772 |
desktop-file-install \
|
|
|
29a772 |
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
29a772 |
--add-category WebBrowser \
|
|
|
29a772 |
--add-category Network \
|
|
|
29a772 |
%{SOURCE20}
|
|
|
29a772 |
|
|
|
29a772 |
# set up the firefox start script
|
|
|
29a772 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/firefox
|
|
|
29a772 |
cp %{SOURCE21} $RPM_BUILD_ROOT%{_bindir}/firefox
|
|
|
29a772 |
%{__chmod} 755 $RPM_BUILD_ROOT%{_bindir}/firefox
|
|
|
29a772 |
|
|
|
29a772 |
%{__install} -p -D -m 644 %{SOURCE23} $RPM_BUILD_ROOT%{_mandir}/man1/firefox.1
|
|
|
29a772 |
|
|
|
29a772 |
%{__rm} -f $RPM_BUILD_ROOT/%{mozappdir}/firefox-config
|
|
|
29a772 |
|
|
|
29a772 |
for s in 16 22 24 32 48 256; do
|
|
|
29a772 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps
|
|
|
29a772 |
%{__cp} -p browser/branding/official/default${s}.png \
|
|
|
29a772 |
$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/firefox.png
|
|
|
29a772 |
done
|
|
|
29a772 |
|
|
|
29a772 |
echo > ../%{name}.lang
|
|
|
29a772 |
%if %{build_langpacks}
|
|
|
29a772 |
# Extract langpacks, make any mods needed, repack the langpack, and install it.
|
|
|
29a772 |
%{__mkdir_p} $RPM_BUILD_ROOT%{langpackdir}
|
|
|
29a772 |
%{__tar} xf %{SOURCE1}
|
|
|
29a772 |
for langpack in `ls firefox-langpacks/*.xpi`; do
|
|
|
29a772 |
language=`basename $langpack .xpi`
|
|
|
29a772 |
extensionID=langpack-$language@firefox.mozilla.org
|
|
|
29a772 |
%{__mkdir_p} $extensionID
|
|
|
29a772 |
unzip $langpack -d $extensionID
|
|
|
29a772 |
find $extensionID -type f | xargs chmod 644
|
|
|
29a772 |
|
|
|
29a772 |
cd $extensionID
|
|
|
29a772 |
zip -r9mX ../${extensionID}.xpi *
|
|
|
29a772 |
cd -
|
|
|
29a772 |
|
|
|
29a772 |
%{__install} -m 644 ${extensionID}.xpi $RPM_BUILD_ROOT%{langpackdir}
|
|
|
29a772 |
language=`echo $language | sed -e 's/-/_/g'`
|
|
|
29a772 |
echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> ../%{name}.lang
|
|
|
29a772 |
done
|
|
|
29a772 |
%{__rm} -rf firefox-langpacks
|
|
|
29a772 |
%endif # build_langpacks
|
|
|
29a772 |
|
|
|
29a772 |
# Keep compatibility with the old preference location.
|
|
|
29a772 |
%{__mkdir_p} $RPM_BUILD_ROOT/%{mozappdir}/defaults/preferences
|
|
|
29a772 |
%{__mkdir_p} $RPM_BUILD_ROOT/%{mozappdir}/browser/defaults
|
|
|
29a772 |
ln -s %{mozappdir}/defaults/preferences $RPM_BUILD_ROOT/%{mozappdir}/browser/defaults/preferences
|
|
|
29a772 |
|
|
|
29a772 |
# System extensions
|
|
|
29a772 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/mozilla/extensions/%{firefox_app_id}
|
|
|
29a772 |
%{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{firefox_app_id}
|
|
|
29a772 |
|
|
|
29a772 |
# Copy over the LICENSE
|
|
|
29a772 |
%{__install} -p -c -m 644 LICENSE $RPM_BUILD_ROOT/%{mozappdir}
|
|
|
29a772 |
|
|
|
29a772 |
# Use the system hunspell dictionaries for RHEL6+
|
|
|
29a772 |
%{__rm} -rf ${RPM_BUILD_ROOT}%{mozappdir}/dictionaries
|
|
|
29a772 |
ln -s %{_datadir}/myspell ${RPM_BUILD_ROOT}%{mozappdir}/dictionaries
|
|
|
29a772 |
|
|
|
29a772 |
#---------------------------------------------------------------------
|
|
|
29a772 |
|
|
|
29a772 |
%clean
|
|
|
29a772 |
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
29a772 |
|
|
|
29a772 |
#---------------------------------------------------------------------
|
|
|
29a772 |
|
|
|
29a772 |
%post
|
|
|
29a772 |
update-desktop-database &> /dev/null || :
|
|
|
29a772 |
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
29a772 |
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
|
|
29a772 |
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
|
|
29a772 |
fi
|
|
|
29a772 |
|
|
|
29a772 |
%postun
|
|
|
29a772 |
if [ $1 -eq 0 ] ; then
|
|
|
29a772 |
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
29a772 |
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
29a772 |
fi
|
|
|
29a772 |
update-desktop-database &> /dev/null || :
|
|
|
29a772 |
|
|
|
29a772 |
%preun
|
|
|
29a772 |
# is it a final removal?
|
|
|
29a772 |
if [ $1 -eq 0 ]; then
|
|
|
29a772 |
%{__rm} -rf %{mozappdir}/components
|
|
|
29a772 |
%{__rm} -rf %{mozappdir}/extensions
|
|
|
29a772 |
%{__rm} -rf %{mozappdir}/langpacks
|
|
|
29a772 |
%{__rm} -rf %{mozappdir}/plugins
|
|
|
29a772 |
fi
|
|
|
29a772 |
|
|
|
29a772 |
%posttrans
|
|
|
29a772 |
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
29a772 |
|
|
|
29a772 |
%files -f %{name}.lang
|
|
|
29a772 |
%defattr(-,root,root,-)
|
|
|
29a772 |
%{_bindir}/firefox
|
|
|
29a772 |
%doc %{_mandir}/man1/*
|
|
|
29a772 |
%dir %{_datadir}/mozilla/extensions/%{firefox_app_id}
|
|
|
29a772 |
%dir %{_libdir}/mozilla/extensions/%{firefox_app_id}
|
|
|
29a772 |
%{_datadir}/icons/hicolor/16x16/apps/firefox.png
|
|
|
29a772 |
%{_datadir}/icons/hicolor/48x48/apps/firefox.png
|
|
|
29a772 |
%{_datadir}/icons/hicolor/22x22/apps/firefox.png
|
|
|
29a772 |
%{_datadir}/icons/hicolor/24x24/apps/firefox.png
|
|
|
29a772 |
%{_datadir}/icons/hicolor/256x256/apps/firefox.png
|
|
|
29a772 |
%{_datadir}/icons/hicolor/32x32/apps/firefox.png
|
|
|
29a772 |
%{_datadir}/applications/%{name}.desktop
|
|
|
29a772 |
%dir %{mozappdir}
|
|
|
29a772 |
%doc %{mozappdir}/LICENSE
|
|
|
29a772 |
%{mozappdir}/browser/chrome
|
|
|
29a772 |
%{mozappdir}/browser/chrome.manifest
|
|
|
29a772 |
%dir %{mozappdir}/browser/components
|
|
|
29a772 |
%{mozappdir}/browser/components/*.so
|
|
|
29a772 |
%{mozappdir}/browser/components/*.manifest
|
|
|
29a772 |
%attr(644, root, root) %{mozappdir}/browser/blocklist.xml
|
|
|
29a772 |
%dir %{mozappdir}/browser/extensions
|
|
|
29a772 |
%{mozappdir}/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
|
|
|
29a772 |
%dir %{mozappdir}/langpacks
|
|
|
29a772 |
%{mozappdir}/browser/icons
|
|
|
29a772 |
%{mozappdir}/browser/searchplugins
|
|
|
29a772 |
%{mozappdir}/browser/omni.ja
|
|
|
29a772 |
%{mozappdir}/firefox
|
|
|
29a772 |
%{mozappdir}/firefox-bin
|
|
|
29a772 |
%{mozappdir}/run-mozilla.sh
|
|
|
29a772 |
%{mozappdir}/application.ini
|
|
|
29a772 |
%dir %{mozappdir}/defaults/preferences
|
|
|
29a772 |
%{mozappdir}/browser/defaults/preferences
|
|
|
29a772 |
%exclude %{mozappdir}/removed-files
|
|
|
29a772 |
%{mozappdir}/webapprt-stub
|
|
|
29a772 |
%dir %{mozappdir}/webapprt
|
|
|
29a772 |
%{mozappdir}/webapprt/omni.ja
|
|
|
29a772 |
%{mozappdir}/webapprt/webapprt.ini
|
|
|
29a772 |
%{mozappdir}/chrome.manifest
|
|
|
29a772 |
%{mozappdir}/components/*.so
|
|
|
29a772 |
%{mozappdir}/components/*.manifest
|
|
|
29a772 |
%{mozappdir}/dictionaries
|
|
|
29a772 |
%{mozappdir}/*.so
|
|
|
29a772 |
%{mozappdir}/mozilla-xremote-client
|
|
|
29a772 |
%{mozappdir}/omni.ja
|
|
|
29a772 |
%{mozappdir}/platform.ini
|
|
|
29a772 |
%{mozappdir}/plugin-container
|
|
|
29a772 |
%{mozappdir}/dependentlibs.list
|
|
|
29a772 |
%exclude %{mozappdir}/defaults/pref/channel-prefs.js
|
|
|
29a772 |
|
|
|
29a772 |
#we don't ship firefox-devel package
|
|
|
29a772 |
%exclude %{_datadir}/idl/*
|
|
|
29a772 |
%exclude %{_includedir}/*
|
|
|
29a772 |
%exclude %{_libdir}/%{name}-devel-*/*
|
|
|
29a772 |
|
|
|
29a772 |
#---------------------------------------------------------------------
|
|
|
29a772 |
|
|
|
29a772 |
%changelog
|
|
|
6ca8db |
* Tue Mar 18 2014 Jan Horak <jhorak@redhat.com> - 24.4.0-1
|
|
|
6ca8db |
- Update to 24.4.0 ESR
|
|
|
6ca8db |
|
|
|
6ca8db |
* Thu Feb 27 2014 Martin Stransky <stransky@redhat.com> - 24.3.0-3
|
|
|
6ca8db |
- fixed rhbz#1054832 - Firefox does not support Camellia cipher
|
|
|
6ca8db |
|
|
|
6ca8db |
* Mon Feb 3 2014 Jan Horak <jhorak@redhat.com> - 24.3.0-1
|
|
|
6ca8db |
- Update to 24.3.0 ESR
|
|
|
6ca8db |
|
|
|
6ca8db |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 24.2.0-3
|
|
|
6ca8db |
- Mass rebuild 2014-01-24
|
|
|
6ca8db |
|
|
|
6ca8db |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 24.2.0-2
|
|
|
6ca8db |
- Mass rebuild 2013-12-27
|
|
|
6ca8db |
|
|
|
6ca8db |
* Mon Dec 9 2013 Martin Stransky <stransky@redhat.com> - 24.2.0-1
|
|
|
6ca8db |
- Update to 24.2.0 ESR
|
|
|
6ca8db |
|
|
|
6ca8db |
* Mon Dec 2 2013 Martin Stransky <stransky@redhat.com> - 24.1.0-5
|
|
|
6ca8db |
- Fixed mozbz#938730 - avoid mix of memory allocators (crashes)
|
|
|
6ca8db |
when using system sqlite
|
|
|
6ca8db |
|
|
|
6ca8db |
* Tue Nov 26 2013 Martin Stransky <stransky@redhat.com> - 24.1.0-4
|
|
|
6ca8db |
- Fixed rhbz#1034541 - No translation being picked up
|
|
|
6ca8db |
from langpacks for firefox
|
|
|
6ca8db |
|
|
|
29a772 |
* Fri Nov 8 2013 Martin Stransky <stransky@redhat.com> - 24.1.0-3
|
|
|
29a772 |
- Conflicts with old, xulrunner based firefox
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Nov 7 2013 Martin Stransky <stransky@redhat.com> - 24.1.0-2
|
|
|
29a772 |
- Ship dependentlibs.list (rhbz#1027782)
|
|
|
29a772 |
- Nss/nspr dependency update
|
|
|
29a772 |
|
|
|
29a772 |
* Wed Nov 6 2013 Martin Stransky <stransky@redhat.com> - 24.1.0-1
|
|
|
29a772 |
- Update to 24.1.0 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Wed Nov 6 2013 Martin Stransky <stransky@redhat.com> - 24.0-2
|
|
|
29a772 |
- Build as stand alone browser, without xulrunner
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Oct 31 2013 Martin Stransky <stransky@redhat.com> - 24.0-1
|
|
|
29a772 |
- Update to 24.0 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Sep 12 2013 Jan Horak <jhorak@redhat.com> - 17.0.9-1
|
|
|
29a772 |
- Update to 17.0.9 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Aug 29 2013 Martin Stransky <stransky@redhat.com> - 17.0.8-2
|
|
|
29a772 |
- Desktop file update
|
|
|
29a772 |
- Spec file tweaks
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Aug 1 2013 Martin Stransky <stransky@redhat.com> - 17.0.8-1
|
|
|
29a772 |
- Update to 17.0.8 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Wed Jul 31 2013 Jan Horak <jhorak@redhat.com> - 17.0.7-2
|
|
|
29a772 |
- Updated manual page
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Jun 20 2013 Jan Horak <jhorak@redhat.com> - 17.0.7-1
|
|
|
29a772 |
- Update to 17.0.7 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Fri May 17 2013 Jan Horak <jhorak@redhat.com> - 17.0.6-1
|
|
|
29a772 |
- Update to 17.0.6 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Fri May 17 2013 Martin Stransky <stransky@redhat.com> - 17.0.5-3
|
|
|
29a772 |
- Removed mozilla prefix from desktop file (rhbz#826960)
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Apr 18 2013 Martin Stransky <stransky@redhat.com> - 17.0.5-2
|
|
|
29a772 |
- Updated XulRunner SDK check
|
|
|
29a772 |
|
|
|
29a772 |
* Fri Mar 29 2013 Jan Horak <jhorak@redhat.com> - 17.0.5-1
|
|
|
29a772 |
- Update to 17.0.5 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Mar 14 2013 Martin Stransky <stransky@redhat.com> - 17.0.4-2
|
|
|
29a772 |
- Fixed rhbz#837606 - firefox has no x-scheme-handler/http mime
|
|
|
29a772 |
|
|
|
29a772 |
* Wed Mar 13 2013 Martin Stransky <stransky@redhat.com> - 17.0.4-1
|
|
|
29a772 |
- Update to 17.0.4 ESR
|
|
|
29a772 |
- Added fix for mozbz#239254 - [Linux] Support disk cache on a local path
|
|
|
29a772 |
|
|
|
29a772 |
* Tue Jan 15 2013 Martin Stransky <stransky@redhat.com> - 17.0.2-3
|
|
|
29a772 |
- Added NM preferences
|
|
|
29a772 |
|
|
|
29a772 |
* Fri Jan 11 2013 Martin Stransky <stransky@redhat.com> - 17.0.2-2
|
|
|
29a772 |
- Updated preferences (NFS, nspluginwrapper)
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Jan 10 2013 Jan Horak <jhorak@redhat.com> - 17.0.2-1
|
|
|
29a772 |
- Update to 17.0.2 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Dec 20 2012 Jan Horak <jhorak@redhat.com> - 17.0.1-1
|
|
|
29a772 |
- Update to 17.0.1 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Mon Oct 8 2012 Jan Horak <jhorak@redhat.com> - 10.0.8-2
|
|
|
29a772 |
- Update to 10.0.8 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Sat Aug 25 2012 Jan Horak <jhorak@redhat.com> - 10.0.7-1
|
|
|
29a772 |
- Update to 10.0.7 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Mon Jul 16 2012 Martin Stransky <stransky@redhat.com> - 10.0.6-1
|
|
|
29a772 |
- Update to 10.0.6 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Mon Jun 25 2012 Martin Stransky <stransky@redhat.com> - 10.0.5-4
|
|
|
29a772 |
- Enabled WebM
|
|
|
29a772 |
|
|
|
29a772 |
* Mon Jun 25 2012 Martin Stransky <stransky@redhat.com> - 10.0.5-2
|
|
|
29a772 |
- Added fix for mozbz#703633, rhbz#818341
|
|
|
29a772 |
|
|
|
29a772 |
* Fri Jun 1 2012 Martin Stransky <stransky@redhat.com> - 10.0.5-1
|
|
|
29a772 |
- Update to 10.0.5 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Sun Apr 22 2012 Martin Stransky <stransky@redhat.com> - 10.0.4-1
|
|
|
29a772 |
- Update to 10.0.4 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Tue Mar 6 2012 Martin Stransky <stransky@redhat.com> - 10.0.3-1
|
|
|
29a772 |
- Update to 10.0.3 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Thu Feb 9 2012 Jan Horak <jhorak@redhat.com> - 10.0.1-1
|
|
|
29a772 |
- Update to 10.0.1 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Tue Feb 7 2012 Martin Stransky <stransky@redhat.com> - 10.0-3
|
|
|
29a772 |
- Update to 10.0 ESR
|
|
|
29a772 |
|
|
|
29a772 |
* Mon Jan 30 2012 Martin Stransky <stransky@redhat.com> - 10.0-1
|
|
|
29a772 |
- Update to 10.0
|
|
|
29a772 |
|
|
|
29a772 |
* Mon Sep 26 2011 Martin Stransky <stransky@redhat.com> - 7.0-5
|
|
|
29a772 |
- Update to 7.0
|
|
|
29a772 |
|
|
|
29a772 |
* Tue Sep 20 2011 Jan Horak <jhorak@redhat.com> - 7.0-4
|
|
|
29a772 |
- Update to 7.0 Beta 6
|
|
|
29a772 |
|
|
|
29a772 |
* Tue Sep 13 2011 Martin Stransky <stransky@redhat.com> - 7.0-2
|
|
|
29a772 |
- Update to 7.0 Beta 4
|
|
|
29a772 |
|
|
|
29a772 |
* Mon Jul 11 2011 Martin Stransky <stransky@redhat.com> - 5.0-1
|
|
|
29a772 |
- Update to 5.0
|
|
|
29a772 |
|
|
|
29a772 |
* Mon Jun 13 2011 Jan Horak <jhorak@redhat.com> - 3.6.18-1
|
|
|
29a772 |
- Fixed #698313 - "background-repeat" css property isn't rendered well
|
|
|
29a772 |
- Update to 3.6.18
|
|
|
29a772 |
|
|
|
29a772 |
* Mon Apr 18 2011 Jan Horak <jhorak@redhat.com> - 3.6.17-1
|
|
|
29a772 |
- Update to 3.6.17
|
|
|
29a772 |
|
|
|
29a772 |
* Tue Mar 8 2011 Jan Horak <jhorak@redhat.com> - 3.6.15-1
|
|
|
29a772 |
- Update to 3.6.15
|
|
|
29a772 |
|
|
|
29a772 |
* Mon Feb 21 2011 Jan Horak <jhorak@redhat.com> - 3.6.14-4
|
|
|
29a772 |
- Update to build3
|
|
|
29a772 |
|
|
|
29a772 |
* Tue Feb 8 2011 Jan Horak <jhorak@redhat.com> - 3.6.14-3
|
|
|
29a772 |
- Update to build2
|
|
|
29a772 |
|
|
|
29a772 |
* Wed Jan 26 2011 Jan Horak <jhorak@redhat.com> - 3.6.14-2
|
|
|
29a772 |
- Update to 3.6.14
|
|
|
29a772 |
|