Name: glpk Version: 4.65 Release: 1%{?_dist_release} Summary: GNU Linear Programming Kit Summary(ja): GNU 線形計画法キット Group: System Environment/Libraries License: GPLv3 URL: http://www.gnu.org/software/glpk/glpk.html Source0: ftp://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: gmp-devel BuildRequires: zlib-devel BuildRequires: libtool-ltdl-devel %description The GLPK (GNU Linear Programming Kit) package is intended for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library. GLPK supports the GNU MathProg language, which is a subset of the AMPL language. The GLPK package includes the following main components: * Revised simplex method. * Primal-dual interior point method. * Branch-and-bound method. * Translator for GNU MathProg. * Application program interface (API). * Stand-alone LP/MIP solver. %package devel Summary: Development headers and files for GLPK Summary(ja): GLPK の開発用ファイル Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: gmp-devel %description devel The glpk-devel package contains libraries and headers for developing applications which use GLPK (GNU Linear Programming Kit). %package utils Summary: GLPK-related utilities and examples Summary(ja): GLPK に関連するユーティリティとサンプル集 Group: Applications/Engineering Requires: %{name} = %{version}-%{release} %description utils The glpk-utils package contains the standalone solver programs glpksol and tspsol that use GLPK (GNU Linear Programming Kit). %package static Summary: Static version of GLPK libraries Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static The glpk-static package contains the statically linkable version of the GLPK (GNU Linear Programming Kit) libraries. %prep %setup -q %build %configure --enable-dl --with-gmp make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install prefix=$RPM_BUILD_ROOT%{_prefix} \ bindir=$RPM_BUILD_ROOT%{_bindir} libdir=$RPM_BUILD_ROOT%{_libdir} \ includedir=$RPM_BUILD_ROOT%{_includedir}/%{name} rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la ## Clean up directories that are included in docs make clean rm -Rf examples/.deps examples/Makefile* doc/*.dvi doc/*.latex %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS README doc %{_libdir}/*.so.* %files devel %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS README doc %{_includedir}/glpk %{_libdir}/*.so #exclude %{_libdir}/*.la %files utils %defattr(-,root,root) %doc COPYING examples %{_bindir}/* %files static %defattr(-,root,root) %{_libdir}/*.a %changelog * Tue Jan 29 2019 Toshiaki Ara 4.65-1 - new upstream release * Sun Oct 29 2017 Toshiaki Ara 4.63-1 - new upstream release - deleted --with-zlib * Sat Nov 29 2014 Ryoichi INAGAKI 4.47-2 - rebuilt with gmp 5.1.3 * Thu Mar 15 2012 NAKAMURA Kenta 4.47-1 - new upstream release * Sat Apr 24 2010 Ryoichi INAGAKI 4.43-1 - new upstream release - built with new toolchain - added static sub-package * Wed Apr 15 2009 Ryoichi INAGAKI 4.37-1 - new upstream release - added --with-gmp and --with-zlib - built with libtool-2.2.6a - removed static library - added Japanese summary * Fri May 16 2008 Ryoichi INAGAKI 4.28-1 - new upstream release * Wed Jan 02 2008 NAKAMURA Kenta 4.24-1vl1 - New release. * Wed Aug 15 2007 Ryoichi INAGAKI 4.20-1vl3 - rebuilt for VineSeed * Wed Aug 15 2007 Ryoichi INAGAKI 4.20-1vl2 - added BuildRequires: gmp-devel * Mon Aug 6 2007 Ryoichi INAGAKI 4.20-1vl1 - initial build for Vine * Fri Jul 27 2007 Quentin Spencer 4.20-1 - New release. - Split static libs into separate package. * Thu Jun 28 2007 Quentin Spencer 4.18-1 - New release. * Wed Mar 28 2007 Quentin Spencer 4.15-1 - New release. Shared libraries are now supported. * Tue Dec 12 2006 Quentin Spencer 4.13-1 - New release. * Tue Aug 29 2006 Quentin Spencer 4.11-2 - Rebuild for FC6. * Tue Jul 25 2006 Quentin Spencer 4.11-1 - New release. * Fri May 12 2006 Quentin Spencer 4.10-1 - New release. * Tue Feb 14 2006 Quentin Spencer 4.9-2 - Add dist tag * Tue Feb 14 2006 Quentin Spencer 4.9-1 - New release. * Tue Aug 09 2005 Quentin Spencer 4.8-3 - Remove utils dependency on base package, since it doesn't exist until shared libraries are enabled. * Tue Aug 09 2005 Quentin Spencer 4.8-2 - Add -fPIC to compile flags. * Fri Jul 22 2005 Quentin Spencer 4.8-1 - First version.