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