[packages/mpv] - use %waf macro - rel 2

atler atler at pld-linux.org
Thu Jan 16 12:10:49 CET 2014


commit 4d3f4bbb8ebcdc18a3c724cbcc311f06ac853ba8
Author: Jan Palus <jan.palus at gmail.com>
Date:   Thu Jan 16 12:10:36 2014 +0100

    - use %waf macro
    - rel 2

 mpv.spec | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/mpv.spec b/mpv.spec
index b214313..2b16f3e 100644
--- a/mpv.spec
+++ b/mpv.spec
@@ -1,7 +1,7 @@
 Summary:	Movie player based on MPlayer and mplayer2
 Name:		mpv
 Version:	0.3.3
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Applications/Multimedia
 Source0:	http://github.com/mpv-player/mpv/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
@@ -42,6 +42,7 @@ BuildRequires:	ncurses-devel
 BuildRequires:	pkgconfig
 BuildRequires:	portaudio-devel >= 19
 BuildRequires:	pulseaudio-devel >= 0.9
+BuildRequires:	rpmbuild(macros) >= 1.336
 # version dep to handle packaging issue in PLD
 BuildRequires:	waf >= 1.7.14
 BuildRequires:	wayland-devel >= 1.2.0
@@ -66,10 +67,7 @@ Movie player based on MPlayer and mplayer2.
 %setup -q
 
 %build
-CC="%{__cc}"; export CC
-CFLAGS="%{rpmcflags}"; export CFLAGS
-LINKFLAGS="%{rpmldflags}"; export LINKFLAGS
-waf configure \
+%waf configure \
 		--prefix=%{_prefix} \
 		--bindir=%{_bindir} \
 		--confdir=%{_sysconfdir}/mpv \
@@ -132,12 +130,12 @@ waf configure \
 		--enable-xss \
 		--enable-xv
 
-waf build -v
+%waf build -v
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-waf install --destdir=$RPM_BUILD_ROOT
+%waf install --destdir=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/mpv
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/mpv
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mpv.git/commitdiff/4d3f4bbb8ebcdc18a3c724cbcc311f06ac853ba8



More information about the pld-cvs-commit mailing list