%define lib_major 40 %define lib_name %mklibname %{name} %{lib_major} %define lib_name_devel %mklibname %{name} -d %define lib_name_static_devel %mklibname %{name} -s -d Summary: GLPK glpsol utility Name: glpk Version: 4.65 Release: %mkrel 2 License: GPLv3+ Group: Sciences/Mathematics URL: http://www.gnu.org/software/glpk/glpk.html Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz BuildRequires: gmp-devel BuildRequires: tetex-latex BuildRequires: texinfo-tex BuildRequires: texlive-dist %description The GLPK (GNU Linear Programming Kit) package is intended for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library. This package contains the utility glpsol. %package -n %{lib_name} Summary: GLPK shared libraries Group: Sciences/Mathematics Obsoletes: %{name} < %{version} %description -n %{lib_name} The GLPK (GNU Linear Programming Kit) package is intended for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library. This package contains the library needed to run programs dynamically linked with GLPK. %package -n %{lib_name_devel} Summary: Header files for development with GLPK Group: Development/C Requires: %{lib_name} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{lib_name_devel} The GLPK (GNU Linear Programming Kit) package is intended for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library. This package contains the headers needed to develop applications using GLPK. %package -n %{lib_name_static_devel} Summary: GLPK static libraries Group: Development/C Requires: %{lib_name_devel} = %{version}-%{release} Provides: %{name}-static-devel = %{version}-%{release} %description -n %{lib_name_static_devel} The GLPK (GNU Linear Programming Kit) package is intended for solving large-scale linear programming (LP), mixed integer programming (MIP), and other related problems. It is a set of routines written in ANSI C and organized in the form of a callable library. This package contains the static libraries necessary for developing programs which use GLPK. %prep %setup -q %build %configure2_5x --enable-static %make_build # Trust Knuth to produce a single-pass compiler for a multiple-pass language. pushd doc pdflatex -interaction=nonstopmode -file-line-error-style glpk.tex && \ pdflatex -interaction=nonstopmode -file-line-error-style glpk.tex && \ pdflatex -interaction=nonstopmode -file-line-error-style glpk.tex popd %install %make_install # Clean out the examples directory so we can include it wholesale in %%doc. %__make -C examples distclean %__rm -rf examples/Makefile* rm -f %{buildroot}%{_libdir}/*.la %files %{_bindir}/glpsol %files -n %{lib_name} %{_libdir}/*.so.%{lib_major}{,.*} %files -n %{lib_name_devel} %doc examples doc/*.txt doc/*.pdf AUTHORS ChangeLog NEWS README %license COPYING %{_includedir}/* %{_libdir}/*.so %files -n %{lib_name_static_devel} %{_libdir}/*.a %changelog * Sun Sep 23 2018 umeabot <umeabot> 4.65-2.mga7 (not released yet) + Revision: 1297918 - Mageia 7 Mass Rebuild * Tue Mar 27 2018 kekepower <kekepower> 4.65-1.mga7 + Revision: 1212950 - Update to version 4.65 * Mon Jan 29 2018 daviddavid <daviddavid> 4.64-1.mga7 + Revision: 1197921 - new version: 4.64 - add missing BR on texlive-dist to fix build * Tue Aug 15 2017 daviddavid <daviddavid> 4.63-1.mga7 + Revision: 1141055 - new version: 4.63 * Sat Apr 16 2016 shlomif <shlomif> 4.60-1.mga6 + Revision: 1002961 - New version 4.60 * Mon Feb 08 2016 umeabot <umeabot> 4.47-6.mga6 + Revision: 944052 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot <umeabot> 4.47-5.mga5 + Revision: 745712 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 4.47-4.mga5 + Revision: 679661 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 4.47-3.mga4 + Revision: 504934 - Mageia 4 Mass Rebuild * Sat Jan 12 2013 umeabot <umeabot> 4.47-2.mga3 + Revision: 351838 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Dec 11 2011 fwang <fwang> 4.47-1.mga2 + Revision: 180730 - new version 4.47 * Sun Jan 09 2011 blino <blino> 4.44-2.mga1 + Revision: 2955 - remove old ldconfig scriptlets - imported package glpk * Sun Aug 29 2010 Emmanuel Andry <eandry@mandriva.org> 4.44-1mdv2011.0 + Revision: 574162 - New version 4.44 * Tue Mar 02 2010 Emmanuel Andry <eandry@mandriva.org> 4.43-1mdv2010.1 + Revision: 513628 - New version 4.43 * Wed Jan 13 2010 Frederik Himpe <fhimpe@mandriva.org> 4.42-1mdv2010.1 + Revision: 491049 - update to new version 4.42 * Wed Dec 30 2009 Frederik Himpe <fhimpe@mandriva.org> 4.41-1mdv2010.1 + Revision: 484029 - Update to new version 4.41 - Remove unneeded build hacks (builds with correct CFLAGS now) * Sun Jul 26 2009 Emmanuel Andry <eandry@mandriva.org> 4.39-1mdv2010.0 + Revision: 400454 - New version 4.39 * Mon Apr 13 2009 Lev Givon <lev@mandriva.org> 4.37-1mdv2010.0 + Revision: 366840 - Update to 4.37. - Update to 4.36. - Update to 4.35. * Fri Dec 26 2008 Lev Givon <lev@mandriva.org> 4.34-1mdv2009.1 + Revision: 319365 - Update to 4.34. * Mon Aug 25 2008 Emmanuel Andry <eandry@mandriva.org> 4.30-1mdv2009.0 + Revision: 275804 - New version - check major * Wed Aug 06 2008 Thierry Vignaud <tv@mandriva.org> 4.28-3mdv2009.0 + Revision: 264554 - rebuild early 2009.0 package (before pixel changes) + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Sun May 25 2008 Lev Givon <lev@mandriva.org> 4.28-2mdv2009.0 + Revision: 211204 - Update license. Put glpsol binary in a separate package. * Wed Apr 23 2008 Lev Givon <lev@mandriva.org> 4.28-1mdv2009.0 + Revision: 196931 - Update to 4.28. - Update to 4.27. * Mon Feb 18 2008 Lev Givon <lev@mandriva.org> 4.26-1mdv2008.1 + Revision: 171766 - Update to 4.26. + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Thu Dec 20 2007 Lev Givon <lev@mandriva.org> 4.25-1mdv2008.1 + Revision: 135932 - Update to 4.25. + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Sun Dec 09 2007 Lev Givon <lev@mandriva.org> 4.24-1mdv2008.1 + Revision: 116578 - Update to 4.24. Use new devel library naming policy. - Update to 4.22, add gmp dependency. * Sun Aug 05 2007 Lev Givon <lev@mandriva.org> 4.20-1mdv2008.0 + Revision: 59118 - Update to 4.20. * Tue Mar 06 2007 Emmanuel Andry <eandry@mandriva.org> 4.15-1mdv2007.0 + Revision: 133436 - New version 4.15 - fix major - drop patch (applied upstream) - Import glpk * Wed Dec 07 2005 Lenny Cartier <lenny@mandriva.com> 4.7-2mdk - rebuild * Tue Sep 07 2004 Yoshinori Okuji <yo@nexedi.com> 4.7-1mdk - New upstream release