lpsolve-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. Patch0: lpsolve-5.5.0.11.cflags.patch
  11. %description
  12. Mixed Integer Linear Programming (MILP) solver lpsolve solves pure linear,
  13. (mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.
  14. %package devel
  15. Requires: lpsolve = %{version}-%{release}
  16. Summary: Files for developing with lpsolve
  17. Group: Development/Libraries
  18. %description devel
  19. Includes and definitions for developing with lpsolve
  20. %prep
  21. %setup -q -n lp_solve_5.5
  22. %patch0 -p1 -b .cflags.patch
  23. %build
  24. cd lpsolve55
  25. sh -x ccc
  26. rm liblpsolve55.a
  27. cd ../lp_solve
  28. sh -x ccc
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. install -d $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_includedir}/lpsolve
  32. install -m 755 \
  33. lp_solve/lp_solve $RPM_BUILD_ROOT%{_bindir}
  34. install -m 755 \
  35. lpsolve55/liblpsolve55.so $RPM_BUILD_ROOT%{_libdir}
  36. install -m 644 \
  37. lp*.h $RPM_BUILD_ROOT%{_includedir}/lpsolve
  38. %clean
  39. rm -rf $RPM_BUILD_ROOT
  40. %post -p /sbin/ldconfig
  41. %postun -p /sbin/ldconfig
  42. %files
  43. %defattr(-,root,root,-)
  44. %doc README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_LGPL.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL-overview.txt
  45. %{_bindir}/lp_solve
  46. %{_libdir}/*.so
  47. %files devel
  48. %defattr(-,root,root,-)
  49. %{_includedir}/lpsolve
  50. %changelog
  51. * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.5.0.13-1
  52. - initial build for Vine Linux
  53. * Mon Aug 04 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.13-1
  54. - latest version
  55. * Sat Aug 02 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.12-2
  56. - Mar 20 upstream tarball now differs from Mar 14 tarball
  57. * Fri Mar 14 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.12-1
  58. - latest version
  59. * Wed Feb 20 2008 Caolan McNamara <caolanm@redhat.com> - 5.5.0.11-1
  60. - initial version