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
|
|
|
#
|
2013-03-27 08:31:13 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: glpk
|
2013-03-27 08:31:13 +01:00
|
|
|
Version: 4.48
|
2012-04-05 14:18:09 +02:00
|
|
|
Release: 0
|
2013-03-27 08:31:13 +01:00
|
|
|
%define libmaj 33
|
2008-09-18 14:30:24 +02:00
|
|
|
Summary: GNU Linear Programming Kit
|
2012-04-05 14:18:09 +02:00
|
|
|
License: GPL-3.0
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-09-18 14:30:24 +02:00
|
|
|
Url: http://www.gnu.org/software/glpk/glpk.html
|
2012-12-07 09:01:13 +01:00
|
|
|
|
2008-09-18 14:30:24 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2012-12-07 09:01:13 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-04-05 14:18:09 +02:00
|
|
|
BuildRequires: ghostscript
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: GNU Linear Programming Kit
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-03-27 08:31:13 +01:00
|
|
|
Requires: libglpk%{libmaj} = %{version}
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-03-27 08:31:13 +01:00
|
|
|
%package -n libglpk%{libmaj}
|
2008-09-18 14:30:24 +02:00
|
|
|
Summary: GNU Linear Programming Kit
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
2013-03-27 08:31:13 +01:00
|
|
|
%description -n libglpk%{libmaj}
|
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
|
|
|
|
Group: Development/Libraries/C and C++
|
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
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --enable-static=no
|
2012-12-07 09:01:13 +01:00
|
|
|
make %{?_smp_mflags}
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%install
|
2012-12-07 09:01:13 +01:00
|
|
|
make install DESTDIR="%buildroot"
|
2008-09-18 14:30:24 +02:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
|
|
|
|
cp examples/*.{mod,c,dat,mps,lp} $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
|
|
|
|
mkdir $RPM_BUILD_ROOT%{_docdir}/%{name}/doc
|
|
|
|
dvipdf doc/glpk.dvi doc/glpk.pdf
|
|
|
|
dvipdf doc/gmpl.dvi doc/gmpl.pdf
|
|
|
|
cp doc/{*.txt,*.pdf} $RPM_BUILD_ROOT%{_docdir}/%{name}/doc
|
|
|
|
cp {AUTHORS,ChangeLog,COPYING,NEWS,README} $RPM_BUILD_ROOT%{_docdir}/%{name}
|
|
|
|
|
2013-03-27 08:31:13 +01:00
|
|
|
%post -n libglpk%{libmaj} -p /sbin/ldconfig
|
2008-09-18 14:30:24 +02:00
|
|
|
|
2013-03-27 08:31:13 +01:00
|
|
|
%postun -n libglpk%{libmaj} -p /sbin/ldconfig
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_docdir}/%{name}
|
|
|
|
%{_docdir}/%{name}/AUTHORS
|
|
|
|
%{_docdir}/%{name}/ChangeLog
|
|
|
|
%{_docdir}/%{name}/COPYING
|
|
|
|
%{_docdir}/%{name}/NEWS
|
|
|
|
%{_docdir}/%{name}/README
|
|
|
|
%{_bindir}/glpsol
|
|
|
|
|
2013-03-27 08:31:13 +01:00
|
|
|
%files -n libglpk%{libmaj}
|
2008-09-18 14:30:24 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_docdir}/%{name}
|
2012-12-07 09:01:13 +01:00
|
|
|
%{_docdir}/%{name}/doc
|
|
|
|
%{_docdir}/%{name}/examples
|
2008-09-18 14:30:24 +02:00
|
|
|
|
|
|
|
%changelog
|