|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
Name: lpsolve
|
|
|
|
|
Summary: A Mixed Integer Linear Programming (MILP) solver
|
|
|
|
|
Version: 5.5.0.13
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Source: http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
URL: http://sourceforge.net/projects/lpsolve
|
|
|
|
@ -25,6 +25,11 @@ Includes and definitions for developing with lpsolve
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n lp_solve_5.5
|
|
|
|
|
%patch0 -p1 -b .cflags.patch
|
|
|
|
|
#sparc and s390 need -fPIC lets sed it
|
|
|
|
|
%ifarch sparcv9 sparc64 s390 s390x
|
|
|
|
|
sed -i -e 's|-fpic|-fPIC|g' Makefile*
|
|
|
|
|
sed -i -e 's|-fpic|-fPIC|g' lpsolve55/ccc
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
cd lpsolve55
|
|
|
|
@ -61,6 +66,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%{_includedir}/lpsolve
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Jan 02 2009 Dennis Gilmore <dennis@ausil.us> - 5.5.0.13-2
|
|
|
|
|
- use -fPIC on sparc and s390 arches
|
|
|
|
|
|
|
|
|
|
* Mon Aug 04 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.13-1
|
|
|
|
|
- latest version
|
|
|
|
|
|
|
|
|
|