glpk/glpk.spec
Dmitry Roshchin 1181b5dc6f Accepting request 335905 from home:pluskalm:branches:science
- Update to 4.56
  * A new, more efficient and more robust implementation of the 
    primal simplex method was included in the package. This new 
    implementation replaces the old one, which was removed.
  * A bug was fixed in a basis factorization routine. (The bug
    appeared if the basis matrix was structurally singular having
    duplicate row and/or column singletons.) Thanks to Martin Jacob
  * Scripts to build GLPK with Microsoft Visual Studio 2015 were
    added. Thanks to Xypron <xypron.glpk@gmx.de> for contribution
    and testing.
- Cleanup spec file with spec-clener

OBS-URL: https://build.opensuse.org/request/show/335905
OBS-URL: https://build.opensuse.org/package/show/science/glpk?expand=0&rev=27
2015-10-02 12:56:27 +00:00

125 lines
3.6 KiB
RPMSpec

#
# spec file for package glpk
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define lname libglpk36
Name: glpk
Version: 4.56
Release: 0
Summary: GNU Linear Programming Kit
License: GPL-3.0
Group: Productivity/Scientific/Math
Url: http://www.gnu.org/software/glpk/glpk.html
Source0: http://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz
Source1: http://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz.sig
Source2: %{name}.keyring
BuildRequires: ghostscript
BuildRequires: texlive
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
%package devel
Summary: GNU Linear Programming Kit
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
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 -n %{lname}
Summary: GNU Linear Programming Kit
Group: System/Libraries
%description -n %{lname}
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
Group: Documentation/Other
%if 0%{?suse_version} >= 1120 || 0%{?fedora_version}
BuildArch: noarch
%endif
%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
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
--disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
mkdir -p %{buildroot}%{_docdir}/%{name}/examples
cp examples/*.{mod,c,dat,mps,lp} %{buildroot}%{_docdir}/%{name}/examples
mkdir %{buildroot}%{_docdir}/%{name}/doc
cp doc/{*.txt,*.pdf} %{buildroot}%{_docdir}/%{name}/doc
cp {AUTHORS,ChangeLog,COPYING,NEWS,README} %{buildroot}%{_docdir}/%{name}
%check
make %{?_smp_mflags} check
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/AUTHORS
%{_docdir}/%{name}/ChangeLog
%{_docdir}/%{name}/COPYING
%{_docdir}/%{name}/NEWS
%{_docdir}/%{name}/README
%{_bindir}/glpsol
%files -n %{lname}
%defattr(-,root,root)
%{_libdir}/libglpk.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libglpk.so
%files doc
%defattr(-,root,root)
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/doc
%{_docdir}/%{name}/examples
%changelog