Accepting request 261322 from home:Dmitry_R:branches:science

- Update to version 4.55
  * Bugfixes, documentation update. See NEWS file for details.

OBS-URL: https://build.opensuse.org/request/show/261322
OBS-URL: https://build.opensuse.org/package/show/science/glpk?expand=0&rev=25
This commit is contained in:
Dmitry Roshchin 2014-11-12 17:52:27 +00:00 committed by Git OBS Bridge
parent e186effeb8
commit f568730655
6 changed files with 33 additions and 36 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ab72c8078402d34d176eda18c3f9a6ef006e223d530897a4d1d73fb4ad12f9a1
size 3098202

Binary file not shown.

3
glpk-4.55.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37090d7f16796ec1034496e182a39d5cc8bb7c9fb5dc48a38b13d620bf2b1de7
size 3424345

BIN
glpk-4.55.tar.gz.sig Normal file

Binary file not shown.

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 12 17:33:27 UTC 2014 - dmitry_r@opensuse.org
- Update to version 4.55
* Bugfixes, documentation update. See NEWS file for details.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 31 06:34:30 UTC 2014 - pgajdos@suse.com Mon Mar 31 06:34:30 UTC 2014 - pgajdos@suse.com

View File

@ -16,22 +16,21 @@
# #
%define lname libglpk36
Name: glpk Name: glpk
%define lname libglpk36 Version: 4.55
Version: 4.54
Release: 0 Release: 0
Summary: GNU Linear Programming Kit Summary: GNU Linear Programming Kit
License: GPL-3.0 License: GPL-3.0
Group: Productivity/Scientific/Math Group: Productivity/Scientific/Math
Url: http://www.gnu.org/software/glpk/glpk.html Url: http://www.gnu.org/software/glpk/glpk.html
#DL-URL: http://ftp.gnu.org/gnu/glpk/
#DL-URL: http://ftp.gnu.org/gnu/glpk/ Source: http://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz
Source: http://ftp.gnu.org/gnu/glpk/%name-%version.tar.gz Source2: http://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz.sig
Source2: http://ftp.gnu.org/gnu/glpk/%name-%version.tar.gz.sig Source3: %{name}.keyring
Source3: %name.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ghostscript BuildRequires: ghostscript
BuildRequires: texlive BuildRequires: texlive
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
The GLPK package is intended for solving large-scale linear The GLPK package is intended for solving large-scale linear
@ -39,33 +38,27 @@ 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 is a set of routines written in ANSI C and organized in the form of a
callable library. callable library.
%package devel
%package devel
Summary: GNU Linear Programming Kit Summary: GNU Linear Programming Kit
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %version Requires: %{lname} = %{version}
%description devel %description devel
The GLPK package is intended for solving large-scale linear The GLPK package is intended for solving large-scale linear
programming, mixed integer programming, and other related problems. It 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 is a set of routines written in ANSI C and organized in the form of a
callable library. callable library.
%package -n %{lname}
%package -n %lname
Summary: GNU Linear Programming Kit Summary: GNU Linear Programming Kit
Group: System/Libraries Group: System/Libraries
%description -n %lname %description -n %{lname}
The GLPK package is intended for solving large-scale linear The GLPK package is intended for solving large-scale linear
programming, mixed integer programming, and other related problems. It 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 is a set of routines written in ANSI C and organized in the form of a
callable library. callable library.
%package doc %package doc
Summary: GNU Linear Programming Kit Summary: GNU Linear Programming Kit
Group: Documentation/Other Group: Documentation/Other
@ -79,32 +72,30 @@ 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 is a set of routines written in ANSI C and organized in the form of a
callable library. callable library.
%prep %prep
%{?gpg_verify: %gpg_verify %{S:2}} %{?gpg_verify: %gpg_verify %{SOURCE2}}
%setup -q %setup -q
%build %build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure --disable-static %configure --disable-static
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install DESTDIR="%buildroot" %make_install
rm $RPM_BUILD_ROOT%{_libdir}/*.la find %{buildroot} -type f -name "*.la" -delete -print
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/examples mkdir -p %{buildroot}%{_docdir}/%{name}/examples
cp examples/*.{mod,c,dat,mps,lp} $RPM_BUILD_ROOT%{_docdir}/%{name}/examples cp examples/*.{mod,c,dat,mps,lp} %{buildroot}%{_docdir}/%{name}/examples
mkdir $RPM_BUILD_ROOT%{_docdir}/%{name}/doc mkdir %{buildroot}%{_docdir}/%{name}/doc
cp doc/{*.txt,*.pdf} $RPM_BUILD_ROOT%{_docdir}/%{name}/doc cp doc/{*.txt,*.pdf} %{buildroot}%{_docdir}/%{name}/doc
cp {AUTHORS,ChangeLog,COPYING,NEWS,README} $RPM_BUILD_ROOT%{_docdir}/%{name} cp {AUTHORS,ChangeLog,COPYING,NEWS,README} %{buildroot}%{_docdir}/%{name}
%check %check
make check make check
%post -n %lname -p /sbin/ldconfig %post -n %{lname} -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -116,7 +107,7 @@ make check
%{_docdir}/%{name}/README %{_docdir}/%{name}/README
%{_bindir}/glpsol %{_bindir}/glpsol
%files -n %lname %files -n %{lname}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libglpk.so.* %{_libdir}/libglpk.so.*