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