glpk/glpk.spec

213 lines
7.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package glpk (Version 4.31)
#
# Copyright (c) 2008 SUSE LINUX Products 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/
#
# norootforbuild
Name: glpk
Version: 4.47
Release: 4
License: GPL v3 only
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Development/Libraries/C and C++
Summary: GNU Linear Programming Kit
Url: http://www.gnu.org/software/glpk/glpk.html
Source: %{name}-%{version}.tar.bz2
Requires: libglpk0 >= %{version}
BuildRequires: ghostscript texlive
%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
License: GPL v3 only
Summary: GNU Linear Programming Kit
Group: Development/Libraries/C and C++
Requires: libglpk0 = %{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 libglpk0
License: GPL v3 only
Summary: GNU Linear Programming Kit
Group: Development/Libraries/C and C++
%description -n libglpk0
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
License: GPL v3 only
Summary: GNU Linear Programming Kit
Group: Development/Libraries/C and C++
Requires: libglpk0 = %{version}
%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
make %{?jobs:-j%jobs}
%install
%makeinstall
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}
%clean
rm -rf "$RPM_BUILD_ROOT"
%post -n libglpk0 -p /sbin/ldconfig
%postun -n libglpk0 -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 libglpk0
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%files doc
%defattr(-,root,root)
%dir %{_docdir}/%{name}
%dir %{_docdir}/%{name}/doc
%doc %{_docdir}/%{name}/doc/*
%dir %{_docdir}/%{name}/examples
%doc %{_docdir}/%{name}/examples/*
%changelog
* Mon Sep 15 2008 pgajdos@suse.cz
- ghostscript instead of ghostscript-mini in the BuildRequires
section
* Thu Sep 11 2008 pgajdos@suse.cz
- updated to 4.31:
* glpspx.h, glpspx01.c, glpspx02.c, glpapi06.c
The dual simplex solver (spx_dual_opt) was replaced by a new
implementation of the two-phase dual simplex method (spx_dual).
Old simplex method routines (spx_prim_opt, spx_prim_feas, and
spx_dual_opt) were removed from the package.
* glpk.h, glpscl.h, glpscl.c, glpapi04.c
New API routine glp_scale_prob was added. It replaces routine
lpx_scale_prob which is deprecated.
* glpk.h, glpini.h, glpini01.c, glpini02.c, glpapi05.c
New API routines glp_std_basis, glp_adv_basis, glp_cpx_basis
were added. They replace routines lpx_std_basis, lpx_adv_basis,
lpx_cpx_basis which are deprecated.
* glpdmp.c
8-byte data alignment was added to the module (sufficient for
both ILP32 and LP64 environments).
* glplib07.c
16-byte data alignment was added to the module to provide
compatibility with LP64 environment (8-byte is not sufficient
due to jmp_buf; thanks to Xypron for investigation).
* glplpx16.c
New version of the routine lpx_write_pb was added. Thanks to
Oscar Gustafsson <oscarg@isy.liu.se> for the contribution.
* glpspx.h, glpspx03.c, glpapi06.c
The primal simplex solver (spx_prim_opt, spx_prim_feas) was
replaced by a new implementation (spx_primal), which currently
provides the same features as the old version.
* glpmpl01.c, glpmpl03.c
Some changes were made in the MathProg translator to allow <,
<=, >=, and > on comparing symbolic values. Thanks to Heinrich
Schuchardt <heinrich.schuchardt@gmx.de> for patches.
* glplpx10.c
Internal routine set_d_eps in the exact LP solver was changed
to prevent approximation errors in case of integral data.
Thanks to Markus Pilz <pilz@cs.uni-bonn.de> for bug report.
* configure.ac
The configure script was changed to disable optional features
by default. For details see file INSTALL.
* glpipp02.c
A bug was fixed in the internal routine reduce_bounds. Thanks
to Anne-Laurence Putz <anne-laurence.putz@eurodecision.com> for
the bug report.
* glpapi01.c
New API routine glp_erase_prob was added.
* glpapi13.c
New API routines glp_read_mps and glp_write_mps were added.
They replace API routines lpx_read_mps, lpx_read_freemps,
lpx_write_mps, and lpx_write_freemps, which are deprecated.
* glpapi14.c
New API routines glp_read_lp and glp_write_lp were added. They
replace API routines lpx_read_cpxlp and lpx_write_cpxlp, which
are deprecated.
* glpsql.c
Minor bug was fixed. Thanks to Xypron <xypron.glpk@gmx.de> for
the bug report.
* Mon Aug 18 2008 pgajdos@suse.cz
- fixed glpk.pdf and gmpl.pdf build [bnc#417864]
* Thu Jul 03 2008 pgajdos@suse.cz
- updated to 4.28:
* Three wrapper routines xdlopen, xdlsym, and xdlclose, which
provide the shared library support, were added.
* A static linking to iODBC and MySQL libraries used in the
MathProg table drivers was replaced by a dynamic linking to
corresponding shared libraries.
* Compressed data file support was added.
* Command-line interface routines were added.
* bug fixes
* Mon May 19 2008 pgajdos@suse.cz
- sort_pool() defined as void [bnc#319454]
(void-function.patch)
* Mon Apr 07 2008 pgajdos@suse.cz
- fixed BuildRequires
* Thu Mar 27 2008 pgajdos@suse.cz
- initial version, moved from OBS (project home:akos_ladanyi)