]> git.pld-linux.org Git - packages/glpk.git/blob - glpk.spec
- up to 4.50 (note: new soname)
[packages/glpk.git] / glpk.spec
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
5 Name:           glpk
6 Version:        4.50
7 Release:        1
8 License:        GPL v3+
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)
24 %else
25 Suggests:       libodbc.so.2
26 Suggests:       libmysqlclient.so.18
27 %endif
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
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
34 programming language.
35
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.
41
42 %package devel
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}
47
48 %description devel
49 Solver LP and MIP problems - development files.
50
51 %description devel -l pl.UTF-8
52 Narzędzie do rozwiązywania problemów LP i MIP - pliki dla
53 programistów.
54
55 %package static
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}
60
61 %description static
62 Solver LP and MIP problems - static library.
63
64 %description static -l pl.UTF-8
65 Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna.
66
67 %prep
68 %setup -q
69 %patch0 -p1
70 %patch1 -p1
71
72 %build
73 %{__libtoolize}
74 %{__aclocal}
75 %{__autoconf}
76 %{__autoheader}
77 %{__automake}
78 %configure \
79         --enable-dl=dlfcn \
80         --enable-mysql \
81         --enable-odbc=unix \
82         --with-gmp
83
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
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
104
105 %files devel
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libglpk.so
108 %{_libdir}/libglpk.la
109 %{_includedir}/glpk.h
110
111 %files static
112 %defattr(644,root,root,755)
113 %{_libdir}/libglpk.a
This page took 0.05919 seconds and 3 git commands to generate.