summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--waterfox/distribution.ini2
-rw-r--r--waterfox/waterfox-mozconfig2
-rw-r--r--waterfox/waterfox-webrtc-gtest-libv4l2.patch12
-rw-r--r--waterfox/waterfox.spec135
4 files changed, 63 insertions, 88 deletions
diff --git a/waterfox/distribution.ini b/waterfox/distribution.ini
index 6f41252..07ddedc 100644
--- a/waterfox/distribution.ini
+++ b/waterfox/distribution.ini
@@ -1,7 +1,7 @@
[Global]
id=stackrpms
version=1.0
-about=Waterfox for Fedora
+about=Waterfox _BRANCH_ for Fedora
[Preferences]
app.distributor=stackrpms
diff --git a/waterfox/waterfox-mozconfig b/waterfox/waterfox-mozconfig
index 7fb292a..b28966d 100644
--- a/waterfox/waterfox-mozconfig
+++ b/waterfox/waterfox-mozconfig
@@ -2,8 +2,6 @@
ac_add_options --enable-default-toolkit=cairo-gtk3
-ac_add_options --prefix="$PREFIX"
-ac_add_options --libdir="$LIBDIR"
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
ac_add_options --disable-strip
diff --git a/waterfox/waterfox-webrtc-gtest-libv4l2.patch b/waterfox/waterfox-webrtc-gtest-libv4l2.patch
deleted file mode 100644
index fb09b9d..0000000
--- a/waterfox/waterfox-webrtc-gtest-libv4l2.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up Waterfox-ff4597172229f8d71940c3885b74b903b7b1821a/media/webrtc/trunk/gtest/moz.build.l4vl2 Waterfox-ff4597172229f8d71940c3885b74b903b7b1821a/media/webrtc/trunk/gtest/moz.build
---- Waterfox-ff4597172229f8d71940c3885b74b903b7b1821a/media/webrtc/trunk/gtest/moz.build.l4vl2 2018-12-17 10:39:21.000000000 -0200
-+++ Waterfox-ff4597172229f8d71940c3885b74b903b7b1821a/media/webrtc/trunk/gtest/moz.build 2019-01-08 17:34:47.260911090 -0200
-@@ -48,6 +48,8 @@ if CONFIG['MOZ_SYSTEM_JPEG']:
- else:
- USE_LIBS += ['media_libjpeg']
-
-+OS_LIBS += CONFIG['MOZ_LIBV4L2_LIBS']
-+
- if CONFIG['MOZ_SYSTEM_LIBVPX']:
- OS_LIBS += CONFIG['MOZ_LIBVPX_LIBS']
- else:
diff --git a/waterfox/waterfox.spec b/waterfox/waterfox.spec
index 3f85188..051cfd9 100644
--- a/waterfox/waterfox.spec
+++ b/waterfox/waterfox.spec
@@ -1,12 +1,12 @@
-%global commit 68014c079a1d4afa26aaad13466fcc76d0f6dcc4
+%global commit 8864e433baf07e995e7047e840d8f94d8f1b2496
%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global date 20191016
+%global date 20191205
%global with_snapshot 1
%global branch classic
-%global freebsd_rev 480450
-%global freebsd_root %{name}-FreeBSD-patches-r%{freebsd_rev}
+%global freebsd_rev 20191102
+%global freebsd_root %{name}-FreeBSD-patches-%{freebsd_rev}
%if 0%{?with_snapshot}
%global gver .%{date}git%{shortcommit}
@@ -34,7 +34,6 @@ ExcludeArch: armv7hl
%global system_libvpx 0
%endif
%global system_webp 1
-%global system_vorbis 1
%global system_libicu 0
%global system_jpeg 1
@@ -100,10 +99,6 @@ ExcludeArch: armv7hl
%if 0%{?system_webp}
%global webp_version 1.0.0
%endif
-%if 0%{?system_vorbis}
-%global ogg_version 1.3.3
-%global vorbis_version 1.3.5
-%endif
%if 0%{?system_nss}
%global nspr_version 4.17.0
@@ -152,13 +147,12 @@ BuildRequires: %{scl_buildreq}
%endif
%if 0%{?rhel} >= 7
%global system_webp 0
-%global system_vorbis 0
%endif
Summary: Waterfox Web browser
Name: waterfox
-Version: 2019.10
-Release: 12.%{branch}%{?gver}%{?dist}
+Version: 2019.12
+Release: 11.%{branch}%{?gver}%{?dist}
URL: https://www.waterfox.net
License: MPLv1.1 or GPLv2+ or LGPLv2+
@@ -172,6 +166,7 @@ Source0: %{vc_url}/archive/%{version}-%{branch}/%{name}-%{version}-%{bran
# FreeBSD patches
# https://www.freshports.org/www/waterfox
# rev=revision ./waterfox-FreeBSD-patches-snapshot.sh
+# https://github.com/MrAlex94/Waterfox/issues/1220
Source600: https://dl.bintray.com/phantomx/tarballs/%{freebsd_root}.tar.xz
Source10: waterfox-mozconfig
@@ -222,10 +217,6 @@ Patch420: https://hg.mozilla.org/mozilla-central/raw-rev/97dae871389b#/mo
# Upstream updates/PRs/Reverts
#Patch???: %%{vc_url}/commit/commit.patch#/%%{name}-gh-commit.patch
-## These seems to breaking LTO
-Patch450: %{vc_url}/commit/8f87cbc0938fec17726dd09b4af2648c084fdbf7.patch#/%{name}-gh-8f87cbc.patch
-Patch451: %{vc_url}/commit/8eacc27e9529f29dea26625ca2a28a9b9aff62c4.patch#/%{name}-gh-8eacc27.patch
-Patch452: %{vc_url}/commit/94dc86561e44725210db9491ca7a06ed0322dff6.patch#/%{name}-gh-94dc865.patch
# Debian patches
Patch500: mozilla-440908.patch
@@ -242,9 +233,7 @@ Patch700: %{name}-nolangpacks.patch
# https://github.com/MrAlex94/Waterfox/pull/547.patch, down
Patch701: %{name}-waterfoxdir-1.patch
Patch702: %{name}-waterfoxdir-2.patch
-Patch703: %{name}-webrtc-gtest-libv4l2.patch
-Patch704: %{name}-fix-testing-file.patch
-
+Patch703: %{name}-fix-testing-file.patch
%if 0%{?system_nss}
BuildRequires: pkgconfig(nspr) >= %{nspr_version}
@@ -287,17 +276,12 @@ BuildRequires: pkgconfig(libnotify) >= %{libnotify_version}
BuildRequires: pkgconfig(dri)
BuildRequires: pkgconfig(libcurl)
BuildRequires: dbus-glib-devel
-BuildRequires: pkgconfig(libv4l2)
%if 0%{?system_libvpx}
BuildRequires: pkgconfig(vpx) >= %{libvpx_version}
%endif
%if 0%{?system_webp}
BuildRequires: pkgconfig(libwebp) >= %{webp_version}
%endif
-%if 0%{?system_vorbis}
-BuildRequires: pkgconfig(ogg) >= %{ogg_version}
-BuildRequires: pkgconfig(vorbis) >= %{vorbis_version}
-%endif
BuildRequires: autoconf213
BuildRequires: pkgconfig(libpulse)
%if 0%{?system_libicu}
@@ -439,10 +423,6 @@ This package contains results of tests executed during build.
%patch419 -p1 -b .mozilla-1320560
%patch420 -p1 -b .mozilla-1389436
-%patch450 -p1 -R
-%patch451 -p1 -R
-%patch452 -p1 -R
-
# Debian extension patch
%patch500 -p1 -b .440908
@@ -490,8 +470,7 @@ done
%patch700 -p1 -b .nolangpacks
%patch701 -p1 -b .waterfoxdir-1
%patch702 -p1 -b .waterfoxdir-2
-%patch703 -p1 -b .lv4l2
-%patch704 -p1 -b .fix-testing-file
+%patch703 -p1 -b .fix-testing-file
# Patch for big endian platforms only
%if 0%{?big_endian}
@@ -499,9 +478,15 @@ done
%patch36 -p2 -b .xlocale
%endif
+cp %{SOURCE26} .
+sed -e 's|_BRANCH_|%{channel}|g' -i distribution.ini
+
rm -f .mozconfig
cp %{SOURCE10} .mozconfig
+echo "ac_add_options --prefix=\"%{_prefix}\"" >> .mozconfig
+echo "ac_add_options --libdir=\"%{_libdir}\"" >> .mozconfig
+
%if 0%{?build_with_pgo}
echo "mk_add_options MOZ_PGO=1" >> .mozconfig
echo "mk_add_options PROFILE_GEN_SCRIPT='EXTRA_TEST_ARGS=10 \$(MAKE) -C \$(MOZ_OBJDIR) pgo-profile-run'" >> .mozconfig
@@ -616,14 +601,6 @@ echo "ac_add_options --with-system-webp" >> .mozconfig
echo "ac_add_options --without-system-webp" >> .mozconfig
%endif
-%if 0%{?system_vorbis}
-echo "ac_add_options --with-system-ogg" >> .mozconfig
-echo "ac_add_options --with-system-vorbis" >> .mozconfig
-%else
-echo "ac_add_options --without-system-ogg" >> .mozconfig
-echo "ac_add_options --without-system-vorbis" >> .mozconfig
-%endif
-
%if 0%{?system_libicu}
echo "ac_add_options --with-system-icu" >> .mozconfig
%else
@@ -732,7 +709,7 @@ MOZ_OPT_FLAGS="$(echo "$MOZ_OPT_FLAGS" | sed -e 's/-O2/-O3/' -e 's/ -g\b/ -g1/')
%if 0%{?build_with_clang}
RPM_FLTO_FLAGS="-flto=thin -Wl,--thinlto-jobs=$RPM_NCPUS"
%else
-RPM_FLTO_FLAGS="-flto=$RPM_NCPUS -fuse-linker-plugin -flifetime-dse=1 -fdisable-ipa-cdtor"
+RPM_FLTO_FLAGS="-flto=$RPM_NCPUS -fuse-linker-plugin -flifetime-dse=1"
%endif
MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS $RPM_FLTO_FLAGS"
MOZ_LINK_FLAGS="$MOZ_OPT_FLAGS"
@@ -758,37 +735,36 @@ MOZ_LINK_FLAGS="-Wl,--no-keep-memory"
%endif
%ifarch %{arm} %{ix86}
-export RUSTFLAGS="-Cdebuginfo=0"
+echo "export RUSTFLAGS=\"-Cdebuginfo=0"\" >> .mozconfig
%endif
%if 0%{?build_with_clang}
-export LLVM_PROFDATA="llvm-profdata"
-export CC=clang
-export CXX=clang++
-export AR="llvm-ar"
-export NM="llvm-nm"
-export RANLIB="llvm-ranlib"
+echo "export LLVM_PROFDATA=\"llvm-profdata"\" >> .mozconfig
+echo "export CC=clang" >> .mozconfig
+echo "export CXX=clang++" >> .mozconfig
+echo "export AR=\"llvm-ar\"" >> .mozconfig
+echo "export NM=\"llvm-nm\"" >> .mozconfig
+echo "export RANLIB=\"llvm-ranlib\"" >> .mozconfig
%else
-export CC=gcc
-export CXX=g++
-export AR="gcc-ar"
-export NM="gcc-nm"
-export RANLIB="gcc-ranlib"
+echo "export CC=gcc" >> .mozconfig
+echo "export CXX=g++" >> .mozconfig
+echo "export AR=\"gcc-ar\"" >> .mozconfig
+echo "export NM=\"gcc-nm\"" >> .mozconfig
+echo "export RANLIB=\"gcc-ranlib\"" >> .mozconfig
%endif
-export CFLAGS=$MOZ_OPT_FLAGS
-export CXXFLAGS=$MOZ_OPT_FLAGS
-export LDFLAGS=$MOZ_LINK_FLAGS
+echo "export CFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
+echo "export CXXFLAGS=\"$MOZ_OPT_FLAGS\"" >> .mozconfig
+echo "export LDFLAGS=\"$MOZ_LINK_FLAGS\"" >> .mozconfig
-export PREFIX='%{_prefix}'
-export LIBDIR='%{_libdir}'
+echo "export MOZ_MAKE_FLAGS=\"$MOZ_SMP_FLAGS\"" >> .mozconfig
+echo "export MOZ_SERVICES_SYNC=1" >> .mozconfig
+echo "export MOZ_NOSPAM=1" >> .mozconfig
+echo "export STRIP=%{_prefix}/bin/true" >> .mozconfig
-export MOZ_MAKE_FLAGS="$MOZ_SMP_FLAGS"
-export MOZ_SERVICES_SYNC="1"
-export MOZ_NOSPAM=1
-export STRIP=%{_prefix}/bin/true
%if 0%{?build_with_lto}
-export TMPDIR="$(pwd)/tmpdir"
+TMPDIR="$(pwd)/tmpdir"
+echo "export TMPDIR=\"$TMPDIR\"" >> .mozconfig
mkdir -p "$TMPDIR"
%endif
@@ -865,12 +841,12 @@ mkdir -p %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications}
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE20}
# set up the waterfox start script
-rm -rf %{buildroot}%{_bindir}/waterfox
+rm -rf %{buildroot}%{_bindir}/%{name}
sed -e 's,/__PREFIX__,%{_prefix},g' %{SOURCE21} \
- > %{buildroot}%{_bindir}/waterfox
+ > %{buildroot}%{_bindir}/%{name}
chmod 755 %{buildroot}%{_bindir}/waterfox
-install -p -D -m 644 %{SOURCE23} %{buildroot}%{_mandir}/man1/waterfox.1
+install -p -D -m 644 %{SOURCE23} %{buildroot}%{_mandir}/man1/%{name}.1
rm -f %{buildroot}/%{mozappdir}/waterfox-config
rm -f %{buildroot}/%{mozappdir}/update-settings.ini
@@ -878,7 +854,7 @@ rm -f %{buildroot}/%{mozappdir}/update-settings.ini
for s in 16 22 24 32 48 64 128 256; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
cp -p browser/branding/unofficial/default${s}.png \
- %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/waterfox.png
+ %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
done
# Register as an application to be visible in the software center
@@ -988,7 +964,7 @@ cp %{SOURCE12} %{buildroot}%{mozappdir}/browser/defaults/preferences
# Add distribution.ini
mkdir -p %{buildroot}%{mozappdir}/distribution
-cp %{SOURCE26} %{buildroot}%{mozappdir}/distribution
+cp distribution.ini %{buildroot}%{mozappdir}/distribution
# Remove copied libraries to speed up build
rm -f %{buildroot}%{mozappdirdev}/sdk/lib/libmozjs.so
@@ -1029,14 +1005,14 @@ if [ $1 -eq 0 ]; then
fi
%files -f %{name}.lang
-%{_bindir}/waterfox
-%{mozappdir}/waterfox
-%{mozappdir}/waterfox-bin
+%{_bindir}/%{name}
+%{mozappdir}/%{name}
+%{mozappdir}/%{name}-bin
%doc %{_mandir}/man1/*
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/*
-%dir %{_datadir}/waterfox/extensions/*
-%dir %{_libdir}/waterfox/extensions/*
+%dir %{_datadir}/%{name}/extensions/*
+%dir %{_libdir}/%{name}/extensions/*
%{_metainfodir}/*.appdata.xml
%{_datadir}/applications/*.desktop
%dir %{mozappdir}
@@ -1049,6 +1025,7 @@ fi
# That's Windows only
%ghost %{mozappdir}/browser/features/aushelper@mozilla.org.xpi
%attr(644, root, root) %{mozappdir}/browser/blocklist.xml
+%attr(644, root, root) %{mozappdir}/browser/ua-update.json
%dir %{mozappdir}/browser/extensions
%{mozappdir}/browser/extensions/*
%if %{build_langpacks}
@@ -1059,7 +1036,7 @@ fi
%{mozappdir}/run-mozilla.sh
%{mozappdir}/application.ini
%exclude %{mozappdir}/removed-files
-%{_datadir}/icons/hicolor/*/apps/waterfox.png
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{mozappdir}/*.so
%{mozappdir}/gtk2/*.so
%{mozappdir}/defaults/pref/channel-prefs.js
@@ -1083,10 +1060,22 @@ fi
#---------------------------------------------------------------------
%changelog
-* Thu Oct 17 2019 B Stack <bgstack15@gmail.com> - 2019.10-12.classic.20191016git68014c0
+* Wed Dec 11 2019 B Stack <bgstack15@gmail.com> - 2019.12-11.classic
- add el7 and el8 support
- repackage for stackrpms
+* Tue Dec 10 2019 Phantom X <megaphantomx at bol dot com dot br> - 2019.12-1.classic
+- 2019.12
+- Disable broken lto for the time
+- Update FreeBSD patches. No system ogg/vorbis anymore
+
+* Thu Oct 24 2019 Phantom X <megaphantomx at bol dot com dot br> - 2019.10-4.classic.20191020gitf80144e
+- New snapshot
+- Add channel to distribution.ini
+
+* Thu Oct 17 2019 Phantom X <megaphantomx at bol dot com dot br> - 2019.10-3.classic.20191016git68014c0
+- PR to restore user-agent overrides
+
* Wed Oct 16 2019 Phantom X <megaphantomx at bol dot com dot br> - 2019.10-2.classic.20191016git68014c0
- Try to fix crash with LTO, reverting some commits
bgstack15