%global module CoinUtils %if 0%{?fedora} >= 33 %global blaslib flexiblas %else %global blaslib openblas %endif Name: coin-or-%{module} Summary: Coin-or Utilities Version: 2.11.4 Release: 3%{?dist} License: EPL-1.0 URL: https://github.com/coin-or/%{module} Source0: %{url}/archive/releases/%{version}/%{module}-%{version}.tar.gz BuildRequires: bzip2-devel BuildRequires: coin-or-Data-Netlib BuildRequires: coin-or-Sample BuildRequires: doxygen BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: glpk-devel BuildRequires: %{blaslib}-devel BuildRequires: pkgconfig BuildRequires: readline-devel BuildRequires: zlib-devel # Install documentation in standard rpm directory Patch0: %{name}-docdir.patch # Prevent a segfault when a problem's status has not been set Patch1: %{name}-status.patch %description CoinUtils (Coin-or Utilities) is an open-source collection of classes and functions that are generally useful to more than one COIN-OR project. These utilities include: * Vector classes * Matrix classes * MPS file reading * Comparing floating point numbers with a tolerance %package devel Summary: Development files for %{name} Requires: coin-or-Sample Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description doc This package contains the documentation for %{name}. %prep %autosetup -p1 -n %{module}-releases-%{version} # The pkgconfig file lists transitive dependencies. Those are necessary when # using static libraries, but not with shared libraries. sed -i 's/ @COINUTILSLIB_PCLIBS@/\nLibs.private:&/' CoinUtils/coinutils.pc.in %build %configure \ --enable-gnu-packages \ --with-blas-incdir=%{_includedir}/%{blaslib} \ --with-blas-lib=-l%{blaslib} \ --with-glpk-incdir=%{_includedir} \ --with-glpk-lib=-lglpk \ --with-lapack-incdir=%{_includedir}/%{blaslib} \ --with-lapack-lib=-l%{blaslib} # Get rid of undesirable hardcoded rpaths; workaround libtool reordering # -Wl,--as-needed after all the libraries. sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ -e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \ -i libtool %make_build all doxydoc %install %make_install rm %{buildroot}%{_libdir}/*.la rm -f %{buildroot}%{_docdir}/%{name}/{LICENSE,coinutils_addlibs.txt} cp -a doxydoc/{html,*.tag} %{buildroot}%{_docdir}/%{name} %check LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %ldconfig_scriptlets %files %{_pkgdocdir}/ %exclude %{_pkgdocdir}/html %exclude %{_pkgdocdir}/coinutils_doxy.tag %license LICENSE %{_libdir}/libCoinUtils.so.3 %{_libdir}/libCoinUtils.so.3.* %files devel %{_includedir}/coin %{_libdir}/libCoinUtils.so %{_libdir}/pkgconfig/coinutils.pc %files doc %{_pkgdocdir}/html/ %{_pkgdocdir}/coinutils_doxy.tag %changelog * Mon Aug 10 2020 Iñaki Úcar - 2.11.4-3 - https://fedoraproject.org/wiki/Changes/FlexiBLAS_as_BLAS/LAPACK_manager * Mon Jul 27 2020 Fedora Release Engineering - 2.11.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Feb 21 2020 Jerry James - 2.11.4-1 - Release 2.11.4 - Drop unnecessary -underlink patch * Tue Jan 28 2020 Fedora Release Engineering - 2.11.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Make doc package arch-dependent * Fri Aug 16 2019 Jerry James - 2.11.3-2 - Fix the pkgconfig file again * Fri Aug 16 2019 Jerry James - 2.11.3-1 - Release 2.11.3 * Wed Jul 24 2019 Fedora Release Engineering - 2.11.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jun 27 2019 Jerry James - 2.11.2-2 - Update project URL - Eliminate unnecessary BRs and Rs - Add -status patch to fix a segfault - Build with openblas and glpk support - Eliminate rpath from the library - Force libtool to not defeat -Wl,--as-needed - Be explicit about library versions as required by latest guidelines - Filter out unnecessary Libs values from pkgconfig files - Package doxygen tag file to enable cross-linking * Mon Apr 22 2019 Antonio Trande - 2.11.2-1 - Release 2.11.2 - Avoid mixed use of %%doc and %%_pkgdocdir - Exclude installation of coin/DATA directory * Thu Jan 31 2019 Fedora Release Engineering - 2.10.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Nov 01 2018 Antonio Trande - 2.10.14-2 - Fix dependence of packages * Thu Nov 01 2018 Antonio Trande - 2.10.14-1 - Release 2.10.14 * Thu Jul 12 2018 Fedora Release Engineering - 2.10.13-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 22 2018 Antonio Trande - 2.10.13-8 - Add gcc gcc-c++ BR * Fri Feb 16 2018 Antonio Trande - 2.10.13-7 - Use %%ldconfig_scriptlets * Wed Feb 07 2018 Fedora Release Engineering - 2.10.13-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 2.10.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.10.13-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 15 2017 Fedora Release Engineering - 2.10.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.10.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Mar 11 2016 pcpa - 2.10.13-1 - Update to latest upstream release (#1301938) * Wed Feb 03 2016 Fedora Release Engineering - 2.10.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Oct 11 2015 pcpa - 2.10.11-1 - Update to latest upstream release (#1270498) * Fri Sep 25 2015 pcpa - 2.10.10-1 - Update to latest upstream release (#1257924) * Sat Jun 20 2015 pcpa - 2.10.8-3 - Full rebuild or coin-or stack. * Wed Jun 17 2015 Fedora Release Engineering - 2.10.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 14 2015 pcpa - 2.10.8-1 - Update to latest upstream release * Sun Apr 12 2015 pcpa - 2.10.7-1 - Update to latest upstream release * Thu Apr 09 2015 David Tardon - 2.10.3-4 - ensure all -devel deps are installed * Sat Feb 21 2015 pcpa - 2.10.3-3 - Rebuild to ensure using latest C++ abi changes. * Sat Feb 14 2015 pcpa - 2.10.3-2 - Rebuild. * Mon Feb 9 2015 pcpa - 2.10.3-1 - Update to latest upstream release. * Sun Feb 08 2015 pcpa - 2.10.2-1 - Update to latest upstream release (#1157434). * Sat Aug 30 2014 pcpa - 2.9.15-1 - Update to latest upstream release (#1089925#c2). * Sat Aug 16 2014 Fedora Release Engineering - 2.9.12-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Jul 16 2014 pcpa - 2.9.12-1 - Update to latest upstream release (#1089925). * Sat Jun 07 2014 Fedora Release Engineering - 2.9.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Dec 16 2013 pcpa - 2.9.7-3 - Correct build with -Werror=format-security (#1037021) * Fri Nov 1 2013 pcpa - 2.9.7-2 - Use proper _smp_flags macro (#894586#c6). - Make package owner of /usr/include/coin (#894586#c6) * Fri Nov 1 2013 pcpa - 2.9.7-1 - Update to latest upstream release. * Wed Aug 7 2013 pcpa - 2.9.0-3 - Switch to unversioned docdir (#993706) * Sat Aug 03 2013 Fedora Release Engineering - 2.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Apr 14 2013 pcpa - 2.9.0-1 - Update to latest upstream release. - Switch to the new upstream tarballs without bundled dependencies. - Split documentation in a new subpackage (#894585#3) - Correct undefined non weak symbols (#894585#3) - Removed unneeded atlas, blas, glpk and lapack build requires (#894585#3) * Mon Jan 14 2013 pcpa - 2.8.8-1 - Add coin-or-Sample to build requires (#894610#c4). - Update to latest upstream release. * Sat Jan 12 2013 pcpa - 2.8.7-3 - Rename repackaged tarball. * Sun Nov 18 2012 pcpa - 2.8.7-2 - Rename package to coin-or-CoinUtils - Do not package Thirdy party data or data without clean license. * Wed Sep 26 2012 pcpa - 2.8.7-1 - Initial coinor-CoinUtils spec.