[opus-tools] add compat bits in for el5/6

Peter Robinson pbrobinson at fedoraproject.org
Fri Oct 5 11:08:10 UTC 2012


commit aabab3ae11553a6d263576072dfbd482bc270e15
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Fri Oct 5 12:08:02 2012 +0100

    add compat bits in for el5/6

 opus-tools.spec |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/opus-tools.spec b/opus-tools.spec
index deead8a..d6faf80 100644
--- a/opus-tools.spec
+++ b/opus-tools.spec
@@ -7,6 +7,7 @@ Group:         System Environment/Libraries
 License:       BSD and GPLv2
 URL:           http://www.opus-codec.org/
 Source0:       http://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz
+BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: libogg-devel
 BuildRequires: opus-devel
@@ -27,11 +28,15 @@ This is a set of tools for the opus codec.
 make %{?_smp_mflags}
 
 %install
+rm -rf %{buildroot}
 make install DESTDIR=%{buildroot}
 
 %check
 make check
 
+%clean
+rm -rf %{buildroot}
+
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig


More information about the scm-commits mailing list