Blob Blame History Raw
%global		module		CoinUtils

Name:		coin-or-%{module}
Group:		Applications/Engineering
Summary:	Coin-or Utilities
Version:	2.9.0
Release:	3%{?dist}
License:	EPL
BuildRequires:	bzip2-devel
BuildRequires:	coin-or-Sample
BuildRequires:	doxygen
BuildRequires:	pkgconfig
BuildRequires:	readline-devel
BuildRequires:	zlib-devel

# Properly handle DESTDIR
Patch0:		%{name}-pkgconfig.patch

# Install documentation in standard rpm directory
Patch1:		%{name}-docdir.patch

# Correct undefined non weak symbols
Patch2:		%{name}-underlink.patch

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}
Group:		Development/Libraries
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}
Group:		Documentation
Requires:	%{name} = %{version}-%{release}
BuildArch:	noarch

%description	doc
This package contains the documentation for %{name}.

%setup -q -n %{module}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

make %{?_smpflags} all doxydoc

make install DESTDIR=%{buildroot}
rm %{buildroot}%{_libdir}/*.la
cp -a doxydoc/html %{buildroot}%{_docdir}/%{name}

make tests

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/coinutils_addlibs.txt
%doc %{_docdir}/%{name}/LICENSE
%doc %{_docdir}/%{name}/README

%files		devel

%files		doc
%doc %{_docdir}/%{name}/html

* 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

* 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.