glpk-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. Name: glpk
  2. Version: 4.43
  3. Release: 1%{?_dist_release}
  4. Summary: GNU Linear Programming Kit
  5. Summary(ja): GNU 線形計画法キット
  6. Group: System Environment/Libraries
  7. License: GPLv3
  8. URL: http://www.gnu.org/software/glpk/glpk.html
  9. Source0: ftp://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: gmp-devel
  12. BuildRequires: zlib-devel
  13. %description
  14. The GLPK (GNU Linear Programming Kit) package is intended for solving
  15. large-scale linear programming (LP), mixed integer programming (MIP),
  16. and other related problems. It is a set of routines written in ANSI C
  17. and organized in the form of a callable library.
  18. GLPK supports the GNU MathProg language, which is a subset of the AMPL
  19. language.
  20. The GLPK package includes the following main components:
  21. * Revised simplex method.
  22. * Primal-dual interior point method.
  23. * Branch-and-bound method.
  24. * Translator for GNU MathProg.
  25. * Application program interface (API).
  26. * Stand-alone LP/MIP solver.
  27. %package devel
  28. Summary: Development headers and files for GLPK
  29. Summary(ja): GLPK の開発用ファイル
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. Requires: gmp-devel
  33. %description devel
  34. The glpk-devel package contains libraries and headers for developing
  35. applications which use GLPK (GNU Linear Programming Kit).
  36. %package utils
  37. Summary: GLPK-related utilities and examples
  38. Summary(ja): GLPK に関連するユーティリティとサンプル集
  39. Group: Applications/Engineering
  40. Requires: %{name} = %{version}-%{release}
  41. %description utils
  42. The glpk-utils package contains the standalone solver programs glpksol
  43. and tspsol that use GLPK (GNU Linear Programming Kit).
  44. %package static
  45. Summary: Static version of GLPK libraries
  46. Group: Development/Libraries
  47. Requires: %{name}-devel = %{version}-%{release}
  48. %description static
  49. The glpk-static package contains the statically linkable version of
  50. the GLPK (GNU Linear Programming Kit) libraries.
  51. %prep
  52. %setup -q
  53. %build
  54. %configure --enable-dl --with-gmp --with-zlib
  55. make %{?_smp_mflags}
  56. %install
  57. rm -rf $RPM_BUILD_ROOT
  58. make install prefix=$RPM_BUILD_ROOT%{_prefix} \
  59. bindir=$RPM_BUILD_ROOT%{_bindir} libdir=$RPM_BUILD_ROOT%{_libdir} \
  60. includedir=$RPM_BUILD_ROOT%{_includedir}/%{name}
  61. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  62. ## Clean up directories that are included in docs
  63. make clean
  64. rm -Rf examples/.deps examples/Makefile* doc/*.dvi doc/*.latex
  65. %clean
  66. rm -rf $RPM_BUILD_ROOT
  67. %post -p /sbin/ldconfig
  68. %postun -p /sbin/ldconfig
  69. %files
  70. %defattr(-,root,root)
  71. %doc AUTHORS ChangeLog COPYING NEWS README doc
  72. %{_libdir}/*.so.*
  73. %files devel
  74. %defattr(-,root,root)
  75. %doc AUTHORS ChangeLog COPYING NEWS README doc
  76. %{_includedir}/glpk
  77. %{_libdir}/*.so
  78. #exclude %{_libdir}/*.la
  79. %files utils
  80. %defattr(-,root,root)
  81. %doc COPYING examples
  82. %{_bindir}/*
  83. %files static
  84. %defattr(-,root,root)
  85. %{_libdir}/*.a
  86. %changelog
  87. * Sat Apr 24 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.43-1
  88. - new upstream release
  89. - built with new toolchain
  90. - added static sub-package
  91. * Wed Apr 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.37-1
  92. - new upstream release
  93. - added --with-gmp and --with-zlib
  94. - built with libtool-2.2.6a
  95. - removed static library
  96. - added Japanese summary
  97. * Fri May 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.28-1
  98. - new upstream release
  99. * Wed Jan 02 2008 NAKAMURA Kenta <kenta@vinelinux.org> 4.24-1vl1
  100. - New release.
  101. * Wed Aug 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.20-1vl3
  102. - rebuilt for VineSeed
  103. * Wed Aug 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.20-1vl2
  104. - added BuildRequires: gmp-devel
  105. * Mon Aug 6 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.20-1vl1
  106. - initial build for Vine
  107. * Fri Jul 27 2007 Quentin Spencer <qspencer@users.sf.net> 4.20-1
  108. - New release.
  109. - Split static libs into separate package.
  110. * Thu Jun 28 2007 Quentin Spencer <qspencer@users.sf.net> 4.18-1
  111. - New release.
  112. * Wed Mar 28 2007 Quentin Spencer <qspencer@users.sf.net> 4.15-1
  113. - New release. Shared libraries are now supported.
  114. * Tue Dec 12 2006 Quentin Spencer <qspencer@users.sf.net> 4.13-1
  115. - New release.
  116. * Tue Aug 29 2006 Quentin Spencer <qspencer@users.sf.net> 4.11-2
  117. - Rebuild for FC6.
  118. * Tue Jul 25 2006 Quentin Spencer <qspencer@users.sf.net> 4.11-1
  119. - New release.
  120. * Fri May 12 2006 Quentin Spencer <qspencer@users.sf.net> 4.10-1
  121. - New release.
  122. * Tue Feb 14 2006 Quentin Spencer <qspencer@users.sf.net> 4.9-2
  123. - Add dist tag
  124. * Tue Feb 14 2006 Quentin Spencer <qspencer@users.sf.net> 4.9-1
  125. - New release.
  126. * Tue Aug 09 2005 Quentin Spencer <qspencer@users.sf.net> 4.8-3
  127. - Remove utils dependency on base package, since it doesn't exist until
  128. shared libraries are enabled.
  129. * Tue Aug 09 2005 Quentin Spencer <qspencer@users.sf.net> 4.8-2
  130. - Add -fPIC to compile flags.
  131. * Fri Jul 22 2005 Quentin Spencer <qspencer@users.sf.net> 4.8-1
  132. - First version.