Avoid setting optflags twice
%set_build_flags already makes sure that %optflags are correctly passed in and there's no need to sed them in anymore.
This commit is contained in:
parent
d761539169
commit
4700db506f
13
libvpx.spec
13
libvpx.spec
@ -6,7 +6,7 @@
|
||||
Name: libvpx
|
||||
Summary: VP8/VP9 Video Codec SDK
|
||||
Version: 1.8.0
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
License: BSD
|
||||
#Source0: http://downloads.webmproject.org/releases/webm/%{name}-%{version}.tar.bz2
|
||||
Source0: https://github.com/webmproject/libvpx/archive/v%{version}.tar.gz
|
||||
@ -79,10 +79,7 @@ and decoder.
|
||||
%global generic_target 0
|
||||
%endif
|
||||
|
||||
# only found in Fedora 28+
|
||||
%if 0%{?fedora} >= 28
|
||||
%set_build_flags
|
||||
%endif
|
||||
|
||||
%ifarch armv7hl
|
||||
CROSS=armv7hl-redhat-linux-gnueabi- CHOST=armv7hl-redhat-linux-gnueabi-hardfloat ./configure \
|
||||
@ -102,11 +99,6 @@ CROSS=armv7hl-redhat-linux-gnueabi- CHOST=armv7hl-redhat-linux-gnueabi-hardfloat
|
||||
--enable-install-srcs \
|
||||
--prefix=%{_prefix} --libdir=%{_libdir} --size-limit=16384x16384
|
||||
|
||||
# Hack our optflags in.
|
||||
sed -i "s|-O3|%{optflags}|g" libs-%{vpxtarget}.mk
|
||||
sed -i "s|-O3|%{optflags}|g" examples-%{vpxtarget}.mk
|
||||
sed -i "s|-O3|%{optflags}|g" docs-%{vpxtarget}.mk
|
||||
|
||||
%ifarch armv7hl
|
||||
#hackety hack hack
|
||||
sed -i "s|AR=armv7hl-redhat-linux-gnueabi-ar|AR=ar|g" libs-%{vpxtarget}.mk
|
||||
@ -239,6 +231,9 @@ rm -rf %{buildroot}%{_prefix}/src
|
||||
%{_bindir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Feb 05 2019 Pete Walter <pwalter@fedoraproject.org> - 1.8.0-4
|
||||
- Avoid setting optflags twice
|
||||
|
||||
* Tue Feb 05 2019 Pete Walter <pwalter@fedoraproject.org> - 1.8.0-3
|
||||
- Tighten soname glob to avoid accidental soname bumps
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user