[stdair/el6] The build is done out of the source tree.

Denis Arnaud denisarnaud at fedoraproject.org
Tue Oct 18 13:56:55 UTC 2011


commit 0f2fc8c874080f069dbf2f2f298d3fc7ef5a7570
Author: Denis Arnaud <denis.arnaud_fedora at m4x.org>
Date:   Tue Oct 18 15:56:43 2011 +0200

    The build is done out of the source tree.

 stdair.spec |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/stdair.spec b/stdair.spec
index 111c7ba..1cbe287 100644
--- a/stdair.spec
+++ b/stdair.spec
@@ -59,12 +59,17 @@ online (http://%{name}.org).
 
 
 %build
+mkdir -p build
+pushd build
 %cmake .
 make %{?_smp_mflags}
+popd
 
 %install
 rm -rf $RPM_BUILD_ROOT
+pushd build
 make install DESTDIR=$RPM_BUILD_ROOT
+popd
 
 # Fix some permissions
 find $RPM_BUILD_ROOT%{_libexecdir}/%{name} -type f -name '*.sh' -exec chmod +x {} \;
@@ -74,7 +79,9 @@ mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html %{mydocs}
 rm -f %{mydocs}/html/installdox
 
 %check
+pushd build
 #ctest
+popd
 
 %clean
 rm -rf $RPM_BUILD_ROOT


More information about the scm-commits mailing list