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

Denis Arnaud denisarnaud at fedoraproject.org
Tue Dec 25 20:57:21 UTC 2012


commit 579aeba9f1d56c55b6868d6389da65479eb09993
Author: Denis Arnaud <denis.arnaud_fedora at m4x.org>
Date:   Tue Dec 25 21:57:08 2012 +0100

    Adapted the RPM specification file to EPEL 5.

 simfqt.spec |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/simfqt.spec b/simfqt.spec
index 75c9b64..dbd0c30 100644
--- a/simfqt.spec
+++ b/simfqt.spec
@@ -13,9 +13,9 @@ URL:            http://sourceforge.net/projects/%{name}/
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{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
@@ -62,19 +62,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