[packages/lemon] - handle soplex support (off by default, soplex usage is restricted)

qboosh qboosh at pld-linux.org
Tue Dec 31 16:41:15 CET 2013


commit 8367cb3bf6b9429c5fad2efdf67ffab69ad8eaac
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Dec 31 16:41:38 2013 +0100

    - handle soplex support (off by default, soplex usage is restricted)

 lemon.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/lemon.spec b/lemon.spec
index ffc8858..1574b5f 100644
--- a/lemon.spec
+++ b/lemon.spec
@@ -1,9 +1,10 @@
-# TODO: coin, soplex support
+# TODO: coin support
 #
 # Conditional build:
 %bcond_without	static_libs	# don't build static libraries
 %bcond_with	cplex		# CPLEX support [IBM proprietary]
 %bcond_without	glpk		# GLPK support
+%bcond_with	soplex		# SoPlex support
 #
 Summary:	Library of Efficient Models and Optimization in Networks
 Summary(pl.UTF-8):	Biblioteka wydajnych modeli i optymalizacji w sieciach
@@ -24,6 +25,7 @@ BuildRequires:	ghostscript
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool >= 2:1.5
 BuildRequires:	python
+%{?with_soplex:BuildRequires:	soplex-devel}
 %{?with_glpk:Requires:	glpk >= 4.33}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -49,6 +51,7 @@ Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 %{?with_glpk:Requires:	glpk-devel >= 4.33}
 Requires:	libstdc++-devel
+%{?with_soplex:Requires:	soplex-devel}
 
 %description devel
 Header files for LEMON library.
@@ -93,7 +96,10 @@ Dokumentacja API biblioteki LEMON.
 	--enable-shared \
 	%{!?with_static_libs:--disable-static} \
 	%{!?with_cplex:--without-cplex} \
-	%{!?with_glpk:--without-glpk}
+	%{!?with_glpk:--without-glpk} \
+	%{!?with_soplex:--without-soplex} \
+	%{?with_soplex:--with-soplex-includedir=/usr/include/soplex}
+
 %{__make}
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lemon.git/commitdiff/8367cb3bf6b9429c5fad2efdf67ffab69ad8eaac



More information about the pld-cvs-commit mailing list