X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=firefox.spec;h=2b03add1dc8b7c50a85c660c8e1c070dc8b2f70b;hb=959fde7;hp=d8f841ea6b4c68cc89a9e4d630274a6229f76498;hpb=7bdd344a8f7f69010c0f8c5779a568b3d392f601;p=packages%2Ffirefox.git diff --git a/firefox.spec b/firefox.spec index d8f841e..2b03add 100644 --- a/firefox.spec +++ b/firefox.spec @@ -6,10 +6,11 @@ %bcond_without gtk3 # GTK+ 3.x instead of 2.x %bcond_without kerberos # disable krb5 support %bcond_without official # official Firefox branding -%bcond_without pgo # PGO-enabled build (requires working $DISPLAY == :100) +%bcond_with pgo # PGO-enabled build (requires working $DISPLAY == :100) # - disabled shared_js - https://bugzilla.mozilla.org/show_bug.cgi?id=1039964 %bcond_with shared_js # shared libmozjs library [broken] %bcond_without system_icu # build without system ICU +%bcond_with clang # build using Clang/LLVM # On updating version, grab CVE links from: # https://www.mozilla.org/security/known-vulnerabilities/firefox.html @@ -26,12 +27,12 @@ Summary: Firefox web browser Summary(hu.UTF-8): Firefox web böngésző Summary(pl.UTF-8): Firefox - przeglądarka WWW Name: firefox -Version: 55.0.1 +Version: 55.0.2 Release: 1 License: MPL v2.0 Group: X11/Applications/Networking Source0: http://releases.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/source/firefox-%{version}.source.tar.xz -# Source0-md5: 53debc4c7edfaf84b42f040872771d9d +# Source0-md5: d1e65708db51034d2ad090b4bfba7f1c Source3: %{name}.desktop Source4: %{name}.sh Source5: vendor.js @@ -150,6 +151,10 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define filterout_cpp -D_FORTIFY_SOURCE=[0-9]+ +%if %{with clang} +%define filterout_cpp -fvar-tracking-assignments +%endif + # don't satisfy other packages %define _noautoprovfiles %{_libdir}/%{name} @@ -213,6 +218,13 @@ cp -p %{_datadir}/automake/config.* build/autoconf cat << 'EOF' > .mozconfig . $topsrcdir/browser/config/mozconfig +%if %{with clang} +export CC="clang" +export CXX="clang++" +%else +export CC="%{__cc}" +export CXX="%{__cxx}" +%endif export CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64" export CXXFLAGS="%{rpmcxxflags} -D_FILE_OFFSET_BITS=64" @@ -229,7 +241,7 @@ ac_add_options --enable-debugger-info-modules ac_add_options --enable-crash-on-assert %else ac_add_options --disable-debug -ac_add_options --enable-optimize="%{rpmcflags} -Os" +ac_add_options --enable-optimize="%{rpmcflags}%{?with_pgo: -Os}" %endif ac_add_options --disable-strip ac_add_options --disable-install-strip