]>
Commit | Line | Data |
---|---|---|
b837fa08 | 1 | Summary: Solver LP and MIP problems |
d1fa44a2 | 2 | Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP |
b837fa08 | 3 | Name: glpk |
16f8ff30 | 4 | Version: 4.49 |
cd8be234 | 5 | Release: 1 |
70043c89 | 6 | License: GPL v3+ |
b837fa08 | 7 | Group: Applications/Math |
43d72bd0 | 8 | Source0: http://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz |
16f8ff30 | 9 | # Source0-md5: e0275c0e3e0ec5b6ef3d61c391e59170 |
1c7f7226 JB |
10 | Patch0: %{name}-dl.patch |
11 | Patch1: %{name}-sonames.patch | |
b837fa08 | 12 | URL: http://www.gnu.org/software/glpk/glpk.html |
1c7f7226 | 13 | BuildRequires: autoconf >= 2.50 |
af9659ab | 14 | BuildRequires: automake |
bac46b60 | 15 | BuildRequires: gmp-devel |
43d72bd0 | 16 | BuildRequires: libtool >= 2:2.2 |
16f8ff30 JB |
17 | BuildRequires: mysql-devel >= 5.5.10 |
18 | BuildRequires: unixODBC-devel >= 2.3.1 | |
1c7f7226 | 19 | %ifarch %{x8664} ppc64 sparc64 s390x |
16f8ff30 JB |
20 | Suggests: libodbc.so.2()(64bit) |
21 | Suggests: libmysqlclient.so.18()(64bit) | |
1c7f7226 | 22 | %else |
16f8ff30 JB |
23 | Suggests: libodbc.so.2 |
24 | Suggests: libmysqlclient.so.18 | |
1c7f7226 | 25 | %endif |
b837fa08 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | The GLPK package is intended for solving linear programming (LP) and | |
a79a4289 | 30 | mixed integer linear programming (MIP) problems. It is a set of |
31 | routines organized in the form of a library and written in the ANSI C | |
32 | programming language. | |
b837fa08 | 33 | |
26ecdac2 JR |
34 | %description -l pl.UTF-8 |
35 | Pakiet GLPK służy do rozwiązywania problemów programowania liniowego | |
36 | (LP) oraz mieszanych problemów całkowitoliczbowego programowania | |
37 | liniowego (MIP). Jest to zestaw narzędzi zorganizowanych w formie | |
b837fa08 | 38 | biblioteki i napisanych w ANSI C. |
39 | ||
a79a4289 | 40 | %package devel |
70043c89 JB |
41 | Summary: Solver LP and MIP problems - header file |
42 | Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP - plik nagłówkowy | |
a79a4289 | 43 | Group: Development/Libraries |
08c44223 | 44 | Requires: %{name} = %{version}-%{release} |
a79a4289 | 45 | |
46 | %description devel | |
70043c89 | 47 | Solver LP and MIP problems - development files. |
a79a4289 | 48 | |
26ecdac2 | 49 | %description devel -l pl.UTF-8 |
70043c89 | 50 | Narzędzie do rozwiązywania problemów LP i MIP - pliki dla |
26ecdac2 | 51 | programistów. |
a79a4289 | 52 | |
9233632a | 53 | %package static |
70043c89 JB |
54 | Summary: Solver LP and MIP problems - static library |
55 | Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna | |
9233632a JR |
56 | Group: Development/Libraries |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
70043c89 | 60 | Solver LP and MIP problems - static library. |
9233632a | 61 | |
2b0c56e3 | 62 | %description static -l pl.UTF-8 |
43d72bd0 | 63 | Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna. |
9233632a | 64 | |
b837fa08 | 65 | %prep |
66 | %setup -q | |
1c7f7226 JB |
67 | %patch0 -p1 |
68 | %patch1 -p1 | |
b837fa08 | 69 | |
70 | %build | |
1c7f7226 | 71 | %{__libtoolize} |
b837fa08 | 72 | %{__aclocal} |
73 | %{__autoconf} | |
1c7f7226 JB |
74 | %{__autoheader} |
75 | %{__automake} | |
76 | %configure \ | |
77 | --enable-dl=dlfcn \ | |
78 | --enable-mysql \ | |
79 | --enable-odbc=unix \ | |
cd8be234 | 80 | --with-gmp |
b837fa08 | 81 | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
af9659ab JB |
86 | |
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
b837fa08 | 89 | |
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
70043c89 JB |
93 | %post -p /sbin/ldconfig |
94 | %postun -p /sbin/ldconfig | |
9233632a | 95 | |
b837fa08 | 96 | %files |
97 | %defattr(644,root,root,755) | |
1c7f7226 | 98 | %doc AUTHORS ChangeLog NEWS README THANKS doc/{*.txt,*.pdf,notes} |
70043c89 JB |
99 | %attr(755,root,root) %{_bindir}/glpsol |
100 | %attr(755,root,root) %{_libdir}/libglpk.so.*.*.* | |
16f8ff30 | 101 | %attr(755,root,root) %ghost %{_libdir}/libglpk.so.34 |
a79a4289 | 102 | |
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
70043c89 JB |
105 | %attr(755,root,root) %{_libdir}/libglpk.so |
106 | %{_libdir}/libglpk.la | |
107 | %{_includedir}/glpk.h | |
9233632a JR |
108 | |
109 | %files static | |
110 | %defattr(644,root,root,755) | |
70043c89 | 111 | %{_libdir}/libglpk.a |