]> git.pld-linux.org Git - packages/glpk.git/blame - glpk.spec
- up to 4.50 (note: new soname)
[packages/glpk.git] / glpk.spec
CommitLineData
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 3Summary: Solver LP and MIP problems
d1fa44a2 4Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP
b837fa08 5Name: glpk
57912ea2 6Version: 4.50
cd8be234 7Release: 1
70043c89 8License: GPL v3+
b837fa08 9Group: Applications/Math
43d72bd0 10Source0: http://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz
57912ea2 11# Source0-md5: 0c11cf9d53fe1becfb872f298f309ab2
1c7f7226
JB
12Patch0: %{name}-dl.patch
13Patch1: %{name}-sonames.patch
b837fa08 14URL: http://www.gnu.org/software/glpk/glpk.html
1c7f7226 15BuildRequires: autoconf >= 2.50
af9659ab 16BuildRequires: automake
bac46b60 17BuildRequires: gmp-devel
43d72bd0 18BuildRequires: libtool >= 2:2.2
16f8ff30
JB
19BuildRequires: mysql-devel >= 5.5.10
20BuildRequires: unixODBC-devel >= 2.3.1
1c7f7226 21%ifarch %{x8664} ppc64 sparc64 s390x
16f8ff30
JB
22Suggests: libodbc.so.2()(64bit)
23Suggests: libmysqlclient.so.18()(64bit)
1c7f7226 24%else
16f8ff30
JB
25Suggests: libodbc.so.2
26Suggests: libmysqlclient.so.18
1c7f7226 27%endif
b837fa08 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31The GLPK package is intended for solving linear programming (LP) and
a79a4289 32mixed integer linear programming (MIP) problems. It is a set of
33routines organized in the form of a library and written in the ANSI C
34programming language.
b837fa08 35
26ecdac2
JR
36%description -l pl.UTF-8
37Pakiet GLPK służy do rozwiązywania problemów programowania liniowego
38(LP) oraz mieszanych problemów całkowitoliczbowego programowania
39liniowego (MIP). Jest to zestaw narzędzi zorganizowanych w formie
b837fa08 40biblioteki i napisanych w ANSI C.
41
a79a4289 42%package devel
70043c89
JB
43Summary: Solver LP and MIP problems - header file
44Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP - plik nagłówkowy
a79a4289 45Group: Development/Libraries
08c44223 46Requires: %{name} = %{version}-%{release}
a79a4289 47
48%description devel
70043c89 49Solver LP and MIP problems - development files.
a79a4289 50
26ecdac2 51%description devel -l pl.UTF-8
70043c89 52Narzędzie do rozwiązywania problemów LP i MIP - pliki dla
26ecdac2 53programistów.
a79a4289 54
9233632a 55%package static
70043c89
JB
56Summary: Solver LP and MIP problems - static library
57Summary(pl.UTF-8): Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna
9233632a
JR
58Group: Development/Libraries
59Requires: %{name}-devel = %{version}-%{release}
60
61%description static
70043c89 62Solver LP and MIP problems - static library.
9233632a 63
2b0c56e3 64%description static -l pl.UTF-8
43d72bd0 65Narzę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
87rm -rf $RPM_BUILD_ROOT
af9659ab
JB
88
89%{__make} install \
90 DESTDIR=$RPM_BUILD_ROOT
b837fa08 91
92%clean
93rm -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
This page took 0.080829 seconds and 4 git commands to generate.