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