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