1 Summary: Solver LP and MIP problems
2 Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP
7 Group: Applications/Math
8 Source0: http://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz
9 # Source0-md5: 3ce3e224a8b6e75a1a0b378445830f21
10 Patch0: %{name}-dl.patch
11 Patch1: %{name}-sonames.patch
12 URL: http://www.gnu.org/software/glpk/glpk.html
13 BuildRequires: autoconf >= 2.50
14 BuildRequires: automake
15 BuildRequires: gmp-devel
16 BuildRequires: libtool >= 2:2.2
17 BuildRequires: mysql-devel >= 5.5.10
18 BuildRequires: rpmbuild(macros) >= 1.721
19 BuildRequires: sed >= 4.0
20 BuildRequires: unixODBC-devel >= 2.3.1
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}}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 The GLPK package is intended for solving linear programming (LP) and
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
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
42 biblioteki i napisanych w ANSI C.
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
47 Group: Development/Libraries
48 Requires: %{name} = %{version}-%{release}
51 Solver LP and MIP problems - development files.
53 %description devel -l pl.UTF-8
54 Narzędzie do rozwiązywania problemów LP i MIP - pliki dla
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
60 Group: Development/Libraries
61 Requires: %{name}-devel = %{version}-%{release}
64 Solver LP and MIP problems - static library.
66 %description static -l pl.UTF-8
67 Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna.
74 %{__sed} -i -e 's,@libodbc_soname@,%{libodbc_soname},' \
75 -e 's,@libmysqlclient_soname@,%{libmysqlclient_soname},' configure.ac
92 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
105 %doc AUTHORS ChangeLog NEWS README THANKS doc/{*.txt,*.pdf,notes}
106 %attr(755,root,root) %{_bindir}/glpsol
107 %attr(755,root,root) %{_libdir}/libglpk.so.*.*.*
108 %attr(755,root,root) %ghost %{_libdir}/libglpk.so.40
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libglpk.so
113 %{_libdir}/libglpk.la
114 %{_includedir}/glpk.h
117 %defattr(644,root,root,755)