[mp] Add recomended extra libs for gsl.

pcpa pcpa at fedoraproject.org
Sun Feb 22 17:45:37 UTC 2015


commit a66ce6b6370457e6a02a3872de6a430f85167348
Author: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date:   Sun Feb 22 14:45:32 2015 -0300

    Add recomended extra libs for gsl.

 mp.spec | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/mp.spec b/mp.spec
index 7da6818..2daa748 100644
--- a/mp.spec
+++ b/mp.spec
@@ -7,13 +7,14 @@
 
 Name:		mp
 Version:	1.3.0
-Release:	3%{?dist}
+Release:	4%{?dist}
 License:	MIT and BSD
 Summary:	An open-source library for mathematical programming
 URL:		https://github.com/ampl/mp
 Source0:	https://github.com/ampl/mp/archive/%{commit}/mp-%{commit}.tar.gz
 Source1:	mp.module.in
 Requires:	environment-modules
+BuildRequires:	atlas-devel
 BuildRequires:	cmake
 %if %{with_gecode}
 BuildRequires:	gecode-devel
@@ -80,6 +81,12 @@ ln -s %{_javadir}/jacop/jacop.jar thirdparty/jacop/jacop-`rpm -q --qf "%%{VERSIO
 %patch1 -p1
 
 %build
+%if 0%{?fedora} > 20 || 0%{?rhel} > 6
+export LIBS="-lgsl -L%{_libdir}/atlas -lsatlas"
+%else
+export LIBS="-lgsl L%{_libdir}/atlas -lcblas -latlas"
+%endif
+
 mkdir build
 pushd build
 BUILD=breathe
@@ -140,6 +147,9 @@ make -C build test
 %{_includedir}/mp
 
 %changelog
+* Sun Feb 22 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.0-4
+- Add recomended extra libs for gsl.
+
 * Wed Jan 28 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.3.0-3
 - Enable the jacop interface.
 - Use a better patch for non x86 fpinit (#1186162)


More information about the scm-commits mailing list