[airsched/el5] Adapted the RPM specification file to EPEL 5.

Denis Arnaud denisarnaud at fedoraproject.org
Tue Dec 25 19:53:31 UTC 2012


commit 1ac9dbf2f7e7bb34d05fcba9ac4ad5cb97b070a8
Author: Denis Arnaud <denis.arnaud_fedora at m4x.org>
Date:   Tue Dec 25 20:53:18 2012 +0100

    Adapted the RPM specification file to EPEL 5.

 airsched.spec |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/airsched.spec b/airsched.spec
index eba02ac..2b93920 100644
--- a/airsched.spec
+++ b/airsched.spec
@@ -15,9 +15,9 @@ URL:            http://%{sfname}.sourceforge.net
 Source0:        http://downloads.sourceforge.net/%{sfname}/%{sfalias}-%{version}.tar.bz2
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
-BuildRequires:  cmake, python-devel
-BuildRequires:  boost-devel, soci-mysql-devel, zeromq-devel, readline-devel
-BuildRequires:  stdair-devel
+BuildRequires:  cmake, python26-devel
+BuildRequires:  boost141-devel, soci-mysql-devel, zeromq-devel
+BuildRequires:  readline-devel, ncurses-devel, stdair-devel
 
 
 %description
@@ -65,19 +65,28 @@ online (http://%{name}.org).
 
 
 %build
-%cmake .
+mkdir -p build
+pushd build
+%cmake -DBOOST_LIBRARYDIR=%{_libdir}/boost141 \
+ -DBOOST_INCLUDEDIR=%{_includedir}/boost141 \
+ -DBoost_ADDITIONAL_VERSIONS="1.41 1.41.0" ..
 make %{?_smp_mflags}
+popd
 
 %install
 rm -rf $RPM_BUILD_ROOT
+pushd build
 make install DESTDIR=$RPM_BUILD_ROOT
+popd
 
 mkdir -p %{mydocs}
 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