]>
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 |
ec84081a | 4 | Version: 4.27 |
6c0dec7b | 5 | Release: 3 |
70043c89 | 6 | License: GPL v3+ |
b837fa08 | 7 | Group: Applications/Math |
08c44223 | 8 | Source0: ftp://ftp.gnu.org/pub/gnu/glpk/%{name}-%{version}.tar.gz |
ec84081a | 9 | # Source0-md5: aa089dd6a5becd9251d9e716d660316d |
b837fa08 | 10 | URL: http://www.gnu.org/software/glpk/glpk.html |
af9659ab JB |
11 | BuildRequires: autoconf |
12 | BuildRequires: automake | |
ec84081a | 13 | BuildRequires: libiodbc-devel |
14 | BuildRequires: mysql-devel | |
b837fa08 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | The GLPK package is intended for solving linear programming (LP) and | |
a79a4289 | 19 | mixed integer linear programming (MIP) problems. It is a set of |
20 | routines organized in the form of a library and written in the ANSI C | |
21 | programming language. | |
b837fa08 | 22 | |
26ecdac2 JR |
23 | %description -l pl.UTF-8 |
24 | Pakiet GLPK służy do rozwiązywania problemów programowania liniowego | |
25 | (LP) oraz mieszanych problemów całkowitoliczbowego programowania | |
26 | liniowego (MIP). Jest to zestaw narzędzi zorganizowanych w formie | |
b837fa08 | 27 | biblioteki i napisanych w ANSI C. |
28 | ||
a79a4289 | 29 | %package devel |
70043c89 JB |
30 | Summary: Solver LP and MIP problems - header file |
31 | Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP - plik nagłówkowy | |
a79a4289 | 32 | Group: Development/Libraries |
08c44223 | 33 | Requires: %{name} = %{version}-%{release} |
a79a4289 | 34 | |
35 | %description devel | |
70043c89 | 36 | Solver LP and MIP problems - development files. |
a79a4289 | 37 | |
26ecdac2 | 38 | %description devel -l pl.UTF-8 |
70043c89 | 39 | Narzędzie do rozwiązywania problemów LP i MIP - pliki dla |
26ecdac2 | 40 | programistów. |
a79a4289 | 41 | |
9233632a | 42 | %package static |
70043c89 JB |
43 | Summary: Solver LP and MIP problems - static library |
44 | Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna | |
9233632a JR |
45 | Group: Development/Libraries |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
70043c89 | 49 | Solver LP and MIP problems - static library. |
9233632a JR |
50 | |
51 | %description devel -l pl.UTF-8 | |
70043c89 JB |
52 | Narzędzie do rozwiązywania problemów LP i MIP - biblioteka |
53 | statyczna. | |
9233632a | 54 | |
b837fa08 | 55 | %prep |
56 | %setup -q | |
57 | ||
58 | %build | |
6c0dec7b | 59 | %{__libtoolize} --install |
b837fa08 | 60 | %{__aclocal} |
61 | %{__autoconf} | |
62 | %configure | |
63 | ||
64 | %{__make} | |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_includedir}} | |
af9659ab JB |
69 | |
70 | %{__make} install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
b837fa08 | 72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
70043c89 JB |
76 | %post -p /sbin/ldconfig |
77 | %postun -p /sbin/ldconfig | |
9233632a | 78 | |
b837fa08 | 79 | %files |
80 | %defattr(644,root,root,755) | |
70043c89 JB |
81 | %doc AUTHORS ChangeLog NEWS README doc/{*.txt,glpk.ps,gmpl.ps,memo} |
82 | %attr(755,root,root) %{_bindir}/glpsol | |
83 | %attr(755,root,root) %{_libdir}/libglpk.so.*.*.* | |
84 | %attr(755,root,root) %ghost %{_libdir}/libglpk.so.0 | |
a79a4289 | 85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
70043c89 JB |
88 | %attr(755,root,root) %{_libdir}/libglpk.so |
89 | %{_libdir}/libglpk.la | |
90 | %{_includedir}/glpk.h | |
9233632a JR |
91 | |
92 | %files static | |
93 | %defattr(644,root,root,755) | |
70043c89 | 94 | %{_libdir}/libglpk.a |