]> git.pld-linux.org Git - packages/glpk.git/blob - glpk.spec
- updated to 4.61
[packages/glpk.git] / glpk.spec
1 Summary:        Solver LP and MIP problems
2 Summary(pl.UTF-8):      Narzędzie do rozwiązywania problemów LP i MIP
3 Name:           glpk
4 Version:        4.61
5 Release:        1
6 License:        GPL v3+
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}}
29 %endif
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
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
36 programming language.
37
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.
43
44 %package devel
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}
49
50 %description devel
51 Solver LP and MIP problems - development files.
52
53 %description devel -l pl.UTF-8
54 Narzędzie do rozwiązywania problemów LP i MIP - pliki dla
55 programistów.
56
57 %package static
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}
62
63 %description static
64 Solver LP and MIP problems - static library.
65
66 %description static -l pl.UTF-8
67 Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72 %patch1 -p1
73
74 %{__sed} -i -e 's,@libodbc_soname@,%{libodbc_soname},' \
75             -e 's,@libmysqlclient_soname@,%{libmysqlclient_soname},' configure.ac
76
77 %build
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83 %configure \
84         --enable-dl=dlfcn \
85         --enable-mysql \
86         --enable-odbc=unix \
87         --with-gmp
88
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
102
103 %files
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
109
110 %files devel
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libglpk.so
113 %{_libdir}/libglpk.la
114 %{_includedir}/glpk.h
115
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/libglpk.a
This page took 0.080391 seconds and 3 git commands to generate.