[521] | 1 | Name: lpsolve |
---|
| 2 | Summary: A Mixed Integer Linear Programming (MILP) solver |
---|
| 3 | Version: 5.5.0.13 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | Source: http://downloads.sourceforge.net/lpsolve/lp_solve_%{version}_source.tar.gz |
---|
| 6 | Group: System Environment/Libraries |
---|
| 7 | URL: http://sourceforge.net/projects/lpsolve |
---|
| 8 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 9 | License: LGPLv2+ |
---|
| 10 | |
---|
| 11 | Patch0: lpsolve-5.5.0.11.cflags.patch |
---|
| 12 | |
---|
| 13 | %description |
---|
| 14 | Mixed Integer Linear Programming (MILP) solver lpsolve solves pure linear, |
---|
| 15 | (mixed) integer/binary, semi-continuous and special ordered sets (SOS) models. |
---|
| 16 | |
---|
| 17 | %package devel |
---|
| 18 | Requires: lpsolve = %{version}-%{release} |
---|
| 19 | Summary: Files for developing with lpsolve |
---|
| 20 | Group: Development/Libraries |
---|
| 21 | |
---|
| 22 | %description devel |
---|
| 23 | Includes and definitions for developing with lpsolve |
---|
| 24 | |
---|
| 25 | %prep |
---|
| 26 | %setup -q -n lp_solve_5.5 |
---|
| 27 | %patch0 -p1 -b .cflags.patch |
---|
| 28 | |
---|
| 29 | %build |
---|
| 30 | cd lpsolve55 |
---|
| 31 | sh -x ccc |
---|
| 32 | rm liblpsolve55.a |
---|
| 33 | cd ../lp_solve |
---|
| 34 | sh -x ccc |
---|
| 35 | |
---|
| 36 | %install |
---|
| 37 | rm -rf $RPM_BUILD_ROOT |
---|
| 38 | install -d $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_includedir}/lpsolve |
---|
| 39 | install -m 755 \ |
---|
| 40 | lp_solve/lp_solve $RPM_BUILD_ROOT%{_bindir} |
---|
| 41 | install -m 755 \ |
---|
| 42 | lpsolve55/liblpsolve55.so $RPM_BUILD_ROOT%{_libdir} |
---|
| 43 | install -m 644 \ |
---|
| 44 | lp*.h $RPM_BUILD_ROOT%{_includedir}/lpsolve |
---|
| 45 | |
---|
| 46 | %clean |
---|
| 47 | rm -rf $RPM_BUILD_ROOT |
---|
| 48 | |
---|
| 49 | %post -p /sbin/ldconfig |
---|
| 50 | |
---|
| 51 | %postun -p /sbin/ldconfig |
---|
| 52 | |
---|
| 53 | %files |
---|
| 54 | %defattr(-,root,root,-) |
---|
| 55 | %doc README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_LGPL.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL-overview.txt |
---|
| 56 | %{_bindir}/lp_solve |
---|
| 57 | %{_libdir}/*.so |
---|
| 58 | |
---|
| 59 | %files devel |
---|
| 60 | %defattr(-,root,root,-) |
---|
| 61 | %{_includedir}/lpsolve |
---|
| 62 | |
---|
| 63 | %changelog |
---|
| 64 | * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.5.0.13-1 |
---|
| 65 | - initial build for Vine Linux |
---|
| 66 | |
---|
| 67 | * Mon Aug 04 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.13-1 |
---|
| 68 | - latest version |
---|
| 69 | |
---|
| 70 | * Sat Aug 02 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.12-2 |
---|
| 71 | - Mar 20 upstream tarball now differs from Mar 14 tarball |
---|
| 72 | |
---|
| 73 | * Fri Mar 14 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.12-1 |
---|
| 74 | - latest version |
---|
| 75 | |
---|
| 76 | * Wed Feb 20 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.11-1 |
---|
| 77 | - initial version |
---|