]>
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 |
fe5adb2a | 4 | Version: 4.61 |
b30b4c76 | 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 |
fe5adb2a | 9 | # Source0-md5: 3ce3e224a8b6e75a1a0b378445830f21 |
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 | 17 | BuildRequires: mysql-devel >= 5.5.10 |
fe5adb2a JB |
18 | BuildRequires: rpmbuild(macros) >= 1.721 |
19 | BuildRequires: sed >= 4.0 | |
16f8ff30 | 20 | BuildRequires: unixODBC-devel >= 2.3.1 |
fe5adb2a JB |
21 | %if 0%{?_soname_prov:1} |
22 | %define libodbc_soname libodbc.so.2 | |
23 | %define libmysqlclient_soname libmysqlclient.so.18 | |
24 | # BRs to verify current sonames (bump the above if not satisfied) | |
25 | BuildRequires: %{_soname_prov %{libodbc_soname}} | |
26 | BuildRequires: %{_soname_prov %{libmysqlclient_soname}} | |
27 | Suggests: %{_soname_prov %{libodbc_soname}} | |
28 | Suggests: %{_soname_prov %{libmysqlclient_soname}} | |
1c7f7226 | 29 | %endif |
b837fa08 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | The GLPK package is intended for solving linear programming (LP) and | |
a79a4289 | 34 | mixed integer linear programming (MIP) problems. It is a set of |
35 | routines organized in the form of a library and written in the ANSI C | |
36 | programming language. | |
b837fa08 | 37 | |
26ecdac2 JR |
38 | %description -l pl.UTF-8 |
39 | Pakiet GLPK służy do rozwiązywania problemów programowania liniowego | |
40 | (LP) oraz mieszanych problemów całkowitoliczbowego programowania | |
41 | liniowego (MIP). Jest to zestaw narzędzi zorganizowanych w formie | |
b837fa08 | 42 | biblioteki i napisanych w ANSI C. |
43 | ||
a79a4289 | 44 | %package devel |
70043c89 JB |
45 | Summary: Solver LP and MIP problems - header file |
46 | Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP - plik nagłówkowy | |
a79a4289 | 47 | Group: Development/Libraries |
08c44223 | 48 | Requires: %{name} = %{version}-%{release} |
a79a4289 | 49 | |
50 | %description devel | |
70043c89 | 51 | Solver LP and MIP problems - development files. |
a79a4289 | 52 | |
26ecdac2 | 53 | %description devel -l pl.UTF-8 |
70043c89 | 54 | Narzędzie do rozwiązywania problemów LP i MIP - pliki dla |
26ecdac2 | 55 | programistów. |
a79a4289 | 56 | |
9233632a | 57 | %package static |
70043c89 JB |
58 | Summary: Solver LP and MIP problems - static library |
59 | Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna | |
9233632a JR |
60 | Group: Development/Libraries |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
70043c89 | 64 | Solver LP and MIP problems - static library. |
9233632a | 65 | |
2b0c56e3 | 66 | %description static -l pl.UTF-8 |
43d72bd0 | 67 | Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna. |
9233632a | 68 | |
b837fa08 | 69 | %prep |
70 | %setup -q | |
1c7f7226 JB |
71 | %patch0 -p1 |
72 | %patch1 -p1 | |
b837fa08 | 73 | |
fe5adb2a JB |
74 | %{__sed} -i -e 's,@libodbc_soname@,%{libodbc_soname},' \ |
75 | -e 's,@libmysqlclient_soname@,%{libmysqlclient_soname},' configure.ac | |
76 | ||
b837fa08 | 77 | %build |
1c7f7226 | 78 | %{__libtoolize} |
b837fa08 | 79 | %{__aclocal} |
80 | %{__autoconf} | |
1c7f7226 JB |
81 | %{__autoheader} |
82 | %{__automake} | |
83 | %configure \ | |
84 | --enable-dl=dlfcn \ | |
85 | --enable-mysql \ | |
86 | --enable-odbc=unix \ | |
cd8be234 | 87 | --with-gmp |
b837fa08 | 88 | |
89 | %{__make} | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
af9659ab JB |
93 | |
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
b837fa08 | 96 | |
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
70043c89 JB |
100 | %post -p /sbin/ldconfig |
101 | %postun -p /sbin/ldconfig | |
9233632a | 102 | |
b837fa08 | 103 | %files |
104 | %defattr(644,root,root,755) | |
1c7f7226 | 105 | %doc AUTHORS ChangeLog NEWS README THANKS doc/{*.txt,*.pdf,notes} |
70043c89 JB |
106 | %attr(755,root,root) %{_bindir}/glpsol |
107 | %attr(755,root,root) %{_libdir}/libglpk.so.*.*.* | |
c724775e | 108 | %attr(755,root,root) %ghost %{_libdir}/libglpk.so.40 |
a79a4289 | 109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
70043c89 JB |
112 | %attr(755,root,root) %{_libdir}/libglpk.so |
113 | %{_libdir}/libglpk.la | |
114 | %{_includedir}/glpk.h | |
9233632a JR |
115 | |
116 | %files static | |
117 | %defattr(644,root,root,755) | |
70043c89 | 118 | %{_libdir}/libglpk.a |