]> git.pld-linux.org Git - packages/lemon.git/blobdiff - lemon.spec
- handle soplex support (off by default, soplex usage is restricted)
[packages/lemon.git] / lemon.spec
index 95522c3af9790d09da3e9d9df47588baaafc5ab4..1574b5f7b8a826c83ea4a12ae7cd4c469aaa0739 100644 (file)
@@ -1,8 +1,10 @@
-# TODO: coin, cplex, 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
@@ -23,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)
 
@@ -48,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.
@@ -91,7 +95,11 @@ Dokumentacja API biblioteki LEMON.
 %configure \
        --enable-shared \
        %{!?with_static_libs:--disable-static} \
-       %{!?with_glpk:--without-glpk}
+       %{!?with_cplex:--without-cplex} \
+       %{!?with_glpk:--without-glpk} \
+       %{!?with_soplex:--without-soplex} \
+       %{?with_soplex:--with-soplex-includedir=/usr/include/soplex}
+
 %{__make}
 
 %install
This page took 0.089372 seconds and 4 git commands to generate.