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