glpk-vl.spec 5.2 KB

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