Disabled system libvpx on Fedora 22 where is 1.3.0

This commit is contained in:
Martin Stransky 2016-03-02 16:31:21 +01:00
parent aeaad2ef80
commit de1fb9d49d
2 changed files with 22 additions and 3 deletions

View File

@ -4,7 +4,6 @@ ac_add_options --prefix="$PREFIX"
ac_add_options --libdir="$LIBDIR" ac_add_options --libdir="$LIBDIR"
ac_add_options --with-system-zlib ac_add_options --with-system-zlib
ac_add_options --with-system-bz2 ac_add_options --with-system-bz2
ac_add_options --with-system-libvpx
ac_add_options --enable-system-hunspell ac_add_options --enable-system-hunspell
ac_add_options --with-pthreads ac_add_options --with-pthreads
ac_add_options --disable-strip ac_add_options --disable-strip

View File

@ -11,6 +11,13 @@
# Use system cairo? # Use system cairo?
%define system_cairo 0 %define system_cairo 0
# Use system libvpx?
%if 0%{?fedora} > 22
%define system_libvpx 1
%else
%define system_libvpx 0
%endif
# Hardened build? # Hardened build?
%if 0%{?fedora} > 20 %if 0%{?fedora} > 20
%define hardened_build 1 %define hardened_build 1
@ -44,7 +51,9 @@
%global cairo_version 1.13.1 %global cairo_version 1.13.1
%global freetype_version 2.1.9 %global freetype_version 2.1.9
%global libnotify_version 0.7.0 %global libnotify_version 0.7.0
%global libvpx_version 1.3.0 %if %{?system_libvpx}
%global libvpx_version 1.4.0
%endif
%if %{?system_nss} %if %{?system_nss}
%global nspr_version 4.10.10 %global nspr_version 4.10.10
@ -78,7 +87,7 @@
Summary: Mozilla Firefox Web browser Summary: Mozilla Firefox Web browser
Name: firefox Name: firefox
Version: 45.0 Version: 45.0
Release: 1%{?pre_tag}%{?dist} Release: 2%{?pre_tag}%{?dist}
URL: https://www.mozilla.org/projects/firefox/ URL: https://www.mozilla.org/projects/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+ License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet Group: Applications/Internet
@ -158,7 +167,9 @@ BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(libnotify) >= %{libnotify_version} BuildRequires: pkgconfig(libnotify) >= %{libnotify_version}
BuildRequires: pkgconfig(dri) BuildRequires: pkgconfig(dri)
BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libcurl)
%if %{?system_libvpx}
BuildRequires: libvpx-devel >= %{libvpx_version} BuildRequires: libvpx-devel >= %{libvpx_version}
%endif
BuildRequires: autoconf213 BuildRequires: autoconf213
BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(icu-i18n) BuildRequires: pkgconfig(icu-i18n)
@ -380,6 +391,12 @@ echo "ac_add_options --without-system-jpeg" >> .mozconfig
echo "ac_add_options --with-system-jpeg" >> .mozconfig echo "ac_add_options --with-system-jpeg" >> .mozconfig
%endif %endif
%if %{?system_libvpx}
echo "ac_add_options --with-system-libvpx" >> .mozconfig
%else
echo "ac_add_options --without-system-libvpx" >> .mozconfig
%endif
#--------------------------------------------------------------------- #---------------------------------------------------------------------
%build %build
@ -766,6 +783,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#--------------------------------------------------------------------- #---------------------------------------------------------------------
%changelog %changelog
* Wed Mar 2 2016 Martin Stransky <stransky@redhat.com> - 45.0-2
- Disabled system libvpx on Fedora 22 where is 1.3.0
* Wed Mar 2 2016 Martin Stransky <stransky@redhat.com> - 45.0-1 * Wed Mar 2 2016 Martin Stransky <stransky@redhat.com> - 45.0-1
- Update to 45.0 - Update to 45.0