From 2936413b915268c6b7510eedee12befc42e534a7 Mon Sep 17 00:00:00 2001 From: leigh123linux Date: Fri, 3 Feb 2017 09:36:17 +0000 Subject: [PATCH] update macros --- gstreamer1-libav.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gstreamer1-libav.spec b/gstreamer1-libav.spec index 212c95b..496eb97 100644 --- a/gstreamer1-libav.spec +++ b/gstreamer1-libav.spec @@ -43,23 +43,22 @@ plug-in. %prep -%setup -q -n gst-libav-%{version} -%patch0 -p1 +%autosetup -q -n gst-libav-%{version} %build -export CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations" +export CFLAGS="%{optflags} -Wno-deprecated-declarations" %configure --disable-dependency-tracking \ --disable-static \ --with-package-name="gst-libav 1.0 rpmfusion rpm" \ --with-package-origin="http://rpmfusion.org/" \ --with-system-libav -make %{?_smp_mflags} V=1 +%make_build V=1 %install %make_install V=1 -rm $RPM_BUILD_ROOT%{_libdir}/gstreamer-1.0/libgst*.la +rm %{buildroot}%{_libdir}/gstreamer-1.0/libgst*.la %files