2008-09-18 14:30:24 +02:00
|
|
|
#
|
2012-04-05 14:18:09 +02:00
|
|
|
# spec file for package glpk
|
2008-09-18 14:30:24 +02:00
|
|
|
#
|
2018-06-27 16:05:10 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2008-09-18 14:30:24 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-21 11:16:13 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-18 14:30:24 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-12-21 11:16:13 +01:00
|
|
|
%define sover 40
|
|
|
|
%define lname libglpk%{sover}
|
2008-09-18 14:30:24 +02:00
|
|
|
Name: glpk
|
2018-06-27 16:05:10 +02:00
|
|
|
Version: 4.65
|
2012-04-05 14:18:09 +02:00
|
|
|
Release: 0
|
2008-09-18 14:30:24 +02:00
|
|
|
Summary: GNU Linear Programming Kit
|
2018-06-27 16:05:10 +02:00
|
|
|
License: GPL-3.0-only
|
2013-08-08 09:02:24 +02:00
|
|
|
Group: Productivity/Scientific/Math
|
2018-06-27 16:05:10 +02:00
|
|
|
URL: https://www.gnu.org/software/glpk/glpk.html
|
2015-11-08 10:51:30 +01:00
|
|
|
Source0: https://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz.sig
|
2017-01-23 17:02:52 +01:00
|
|
|
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=%{name}&download=1#/%{name}.keyring
|
2018-06-27 16:05:10 +02:00
|
|
|
Patch0: glpk-no_random_return.patch
|
2012-04-05 14:18:09 +02:00
|
|
|
BuildRequires: ghostscript
|
2016-04-01 13:56:06 +02:00
|
|
|
BuildRequires: gmp-devel
|
2018-12-21 11:16:13 +01:00
|
|
|
BuildRequires: libiodbc-devel
|
|
|
|
BuildRequires: libmariadb-devel
|
|
|
|
BuildRequires: libtool
|
2012-04-05 14:18:09 +02:00
|
|
|
BuildRequires: texlive
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The GLPK package is intended for solving large-scale linear
|
|
|
|
programming, mixed integer programming, and other related problems. It
|
|
|
|
is a set of routines written in ANSI C and organized in the form of a
|
|
|
|
callable library.
|
|
|
|
|
2014-11-12 18:52:27 +01:00
|
|
|
%package devel
|
2008-09-18 14:30:24 +02:00
|
|
|
Summary: GNU Linear Programming Kit
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-11-12 18:52:27 +01:00
|
|
|
Requires: %{lname} = %{version}
|
2008-09-18 14:30:24 +02:00
|
|
|
|
2014-11-12 18:52:27 +01:00
|
|
|
%description devel
|
2008-09-18 14:30:24 +02:00
|
|
|
The GLPK package is intended for solving large-scale linear
|
|
|
|
programming, mixed integer programming, and other related problems. It
|
|
|
|
is a set of routines written in ANSI C and organized in the form of a
|
|
|
|
callable library.
|
|
|
|
|
2014-11-12 18:52:27 +01:00
|
|
|
%package -n %{lname}
|
2008-09-18 14:30:24 +02:00
|
|
|
Summary: GNU Linear Programming Kit
|
2013-08-08 09:02:24 +02:00
|
|
|
Group: System/Libraries
|
2008-09-18 14:30:24 +02:00
|
|
|
|
2014-11-12 18:52:27 +01:00
|
|
|
%description -n %{lname}
|
2008-09-18 14:30:24 +02:00
|
|
|
The GLPK package is intended for solving large-scale linear
|
|
|
|
programming, mixed integer programming, and other related problems. It
|
|
|
|
is a set of routines written in ANSI C and organized in the form of a
|
|
|
|
callable library.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: GNU Linear Programming Kit
|
2013-08-08 09:02:24 +02:00
|
|
|
Group: Documentation/Other
|
2012-12-07 09:01:13 +01:00
|
|
|
%if 0%{?suse_version} >= 1120 || 0%{?fedora_version}
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
The GLPK package is intended for solving large-scale linear
|
|
|
|
programming, mixed integer programming, and other related problems. It
|
|
|
|
is a set of routines written in ANSI C and organized in the form of a
|
|
|
|
callable library.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-06-27 16:05:10 +02:00
|
|
|
%patch0 -p1
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%build
|
2014-11-12 18:52:27 +01:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2015-10-02 14:56:27 +02:00
|
|
|
%configure \
|
2016-04-01 13:56:06 +02:00
|
|
|
--with-gmp \
|
2018-12-21 11:16:13 +01:00
|
|
|
--enable-dl \
|
|
|
|
--enable-odbc \
|
|
|
|
--enable-mysql \
|
2015-10-02 14:56:27 +02:00
|
|
|
--disable-static
|
2012-12-07 09:01:13 +01:00
|
|
|
make %{?_smp_mflags}
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%install
|
2014-11-12 18:52:27 +01:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2008-09-18 14:30:24 +02:00
|
|
|
|
2013-12-10 17:41:29 +01:00
|
|
|
%check
|
2015-10-02 14:56:27 +02:00
|
|
|
make %{?_smp_mflags} check
|
2013-12-10 17:41:29 +01:00
|
|
|
|
2014-11-12 18:52:27 +01:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/glpsol
|
|
|
|
|
2014-11-12 18:52:27 +01:00
|
|
|
%files -n %{lname}
|
2018-12-21 11:16:13 +01:00
|
|
|
%license AUTHORS COPYING
|
|
|
|
%{_libdir}/libglpk.so.%{sover}*
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/*
|
2013-08-08 09:02:24 +02:00
|
|
|
%{_libdir}/libglpk.so
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%files doc
|
2018-12-21 11:16:13 +01:00
|
|
|
%doc ChangeLog NEWS README
|
|
|
|
%doc doc/*.txt doc/*.pdf
|
|
|
|
%doc examples/*.mod
|
|
|
|
%doc examples/*.c
|
|
|
|
%doc examples/*.dat
|
|
|
|
%doc examples/*.mps
|
|
|
|
%doc examples/*.lp
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%changelog
|