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
3 Summary: Solver LP and MIP problems
4 Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP
9 Group: Applications/Math
10 Source0: http://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz
11 # Source0-md5: 0c11cf9d53fe1becfb872f298f309ab2
12 Patch0: %{name}-dl.patch
13 Patch1: %{name}-sonames.patch
14 URL: http://www.gnu.org/software/glpk/glpk.html
15 BuildRequires: autoconf >= 2.50
16 BuildRequires: automake
17 BuildRequires: gmp-devel
18 BuildRequires: libtool >= 2:2.2
19 BuildRequires: mysql-devel >= 5.5.10
20 BuildRequires: unixODBC-devel >= 2.3.1
21 %ifarch %{x8664} ppc64 sparc64 s390x
22 Suggests: libodbc.so.2()(64bit)
23 Suggests: libmysqlclient.so.18()(64bit)
25 Suggests: libodbc.so.2
26 Suggests: libmysqlclient.so.18
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 The GLPK package is intended for solving linear programming (LP) and
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
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
40 biblioteki i napisanych w ANSI C.
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
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
49 Solver LP and MIP problems - development files.
51 %description devel -l pl.UTF-8
52 Narzędzie do rozwiązywania problemów LP i MIP - pliki dla
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
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Solver LP and MIP problems - static library.
64 %description static -l pl.UTF-8
65 Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna.
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 %defattr(644,root,root,755)
100 %doc AUTHORS ChangeLog NEWS README THANKS doc/{*.txt,*.pdf,notes}
101 %attr(755,root,root) %{_bindir}/glpsol
102 %attr(755,root,root) %{_libdir}/libglpk.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libglpk.so.35
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libglpk.so
108 %{_libdir}/libglpk.la
109 %{_includedir}/glpk.h
112 %defattr(644,root,root,755)