glpk-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. Name: glpk
  2. Version: 4.47
  3. Release: 2%{?_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: libtool-ltdl-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. Summary(ja): GLPK の静的ライブラリ
  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. * Sat Nov 29 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.47-2
  89. - rebuilt with gmp 5.1.3
  90. * Thu Mar 15 2012 NAKAMURA Kenta <kenta@vinelinux.org> 4.47-1
  91. - new upstream release
  92. * Sat Apr 24 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.43-1
  93. - new upstream release
  94. - built with new toolchain
  95. - added static sub-package
  96. * Wed Apr 15 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.37-1
  97. - new upstream release
  98. - added --with-gmp and --with-zlib
  99. - built with libtool-2.2.6a
  100. - removed static library
  101. - added Japanese summary
  102. * Fri May 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.28-1
  103. - new upstream release
  104. * Wed Jan 02 2008 NAKAMURA Kenta <kenta@vinelinux.org> 4.24-1vl1
  105. - New release.
  106. * Wed Aug 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.20-1vl3
  107. - rebuilt for VineSeed
  108. * Wed Aug 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.20-1vl2
  109. - added BuildRequires: gmp-devel
  110. * Mon Aug 6 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.20-1vl1
  111. - initial build for Vine
  112. * Fri Jul 27 2007 Quentin Spencer <qspencer@users.sf.net> 4.20-1
  113. - New release.
  114. - Split static libs into separate package.
  115. * Thu Jun 28 2007 Quentin Spencer <qspencer@users.sf.net> 4.18-1
  116. - New release.
  117. * Wed Mar 28 2007 Quentin Spencer <qspencer@users.sf.net> 4.15-1
  118. - New release. Shared libraries are now supported.
  119. * Tue Dec 12 2006 Quentin Spencer <qspencer@users.sf.net> 4.13-1
  120. - New release.
  121. * Tue Aug 29 2006 Quentin Spencer <qspencer@users.sf.net> 4.11-2
  122. - Rebuild for FC6.
  123. * Tue Jul 25 2006 Quentin Spencer <qspencer@users.sf.net> 4.11-1
  124. - New release.
  125. * Fri May 12 2006 Quentin Spencer <qspencer@users.sf.net> 4.10-1
  126. - New release.
  127. * Tue Feb 14 2006 Quentin Spencer <qspencer@users.sf.net> 4.9-2
  128. - Add dist tag
  129. * Tue Feb 14 2006 Quentin Spencer <qspencer@users.sf.net> 4.9-1
  130. - New release.
  131. * Tue Aug 09 2005 Quentin Spencer <qspencer@users.sf.net> 4.8-3
  132. - Remove utils dependency on base package, since it doesn't exist until
  133. shared libraries are enabled.
  134. * Tue Aug 09 2005 Quentin Spencer <qspencer@users.sf.net> 4.8-2
  135. - Add -fPIC to compile flags.
  136. * Fri Jul 22 2005 Quentin Spencer <qspencer@users.sf.net> 4.8-1
  137. - First version.