parent
f8b206e94a
commit
d6996e636e
@ -0,0 +1,65 @@
|
||||
Name: lpsolve
|
||||
Summary: A Mixed Integer Linear Programming (MILP) solver
|
||||
Version: 5.5.0.11
|
||||
Release: 1%{?dist}
|
||||
Source: http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz
|
||||
Group: System Environment/Libraries
|
||||
URL: http://sourceforge.net/projects/lpsolve
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
License: LGPLv2+
|
||||
|
||||
Patch0: lpsolve-5.5.0.11.cflags.patch
|
||||
|
||||
%description
|
||||
Mixed Integer Linear Programming (MILP) solver lpsolve solves pure linear,
|
||||
(mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.
|
||||
|
||||
%package devel
|
||||
Requires: lpsolve = %{version}-%{release}
|
||||
Summary: Files for developing with lpsolve
|
||||
Group: Development/Libraries
|
||||
|
||||
%description devel
|
||||
Includes and definitions for developing with lpsolve
|
||||
|
||||
%prep
|
||||
%setup -q -n lp_solve_5.5
|
||||
%patch0 -p1 -b .cflags.patch
|
||||
|
||||
%build
|
||||
cd lpsolve55
|
||||
sh -x ccc
|
||||
rm liblpsolve55.a
|
||||
cd ../lp_solve
|
||||
sh -x ccc
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
install -d $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_includedir}/lpsolve
|
||||
install -m 755 \
|
||||
lp_solve/lp_solve $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m 755 \
|
||||
lpsolve55/liblpsolve55.so $RPM_BUILD_ROOT%{_libdir}
|
||||
install -m 644 \
|
||||
lp*.h $RPM_BUILD_ROOT%{_includedir}/lpsolve
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_LGPL.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL-overview.txt
|
||||
%{_bindir}/lp_solve
|
||||
%{_libdir}/*.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/lpsolve
|
||||
|
||||
%changelog
|
||||
* Wed Feb 20 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.11-1
|
||||
- initial version
|
Loading…
Reference in new issue