0897f57
%global		module		CoinUtils
0897f57
0897f57
Name:		coin-or-%{module}
0897f57
Group:		Applications/Engineering
0897f57
Summary:	Coin-or Utilities
0897f57
Version:	2.9.0
0897f57
Release:	1%{?dist}
0897f57
License:	EPL
0897f57
URL:		http://projects.coin-or.org/%{module}
0897f57
Source0:	http://www.coin-or.org/download/pkgsource/%{module}/%{module}-%{version}.tgz
0897f57
BuildRequires:	bzip2-devel
0897f57
BuildRequires:	coin-or-Sample
0897f57
BuildRequires:	doxygen
0897f57
BuildRequires:	pkgconfig
0897f57
BuildRequires:	readline-devel
0897f57
BuildRequires:	zlib-devel
0897f57
0897f57
# Properly handle DESTDIR
0897f57
Patch0:		%{name}-pkgconfig.patch
0897f57
0897f57
# Install documentation in standard rpm directory
0897f57
Patch1:		%{name}-docdir.patch
0897f57
0897f57
# Correct undefined non weak symbols
0897f57
Patch2:		%{name}-underlink.patch
0897f57
0897f57
%description
0897f57
CoinUtils (Coin-or Utilities) is an open-source collection of classes
0897f57
and functions that are generally useful to more than one COIN-OR project.
0897f57
These utilities include:
0897f57
0897f57
  * Vector classes
0897f57
  * Matrix classes
0897f57
  * MPS file reading
0897f57
  * Comparing floating point numbers with a tolerance
0897f57
0897f57
%package	devel
0897f57
Summary:	Development files for %{name}
0897f57
Group:		Development/Libraries
0897f57
Requires:	coin-or-Sample
0897f57
Requires:	%{name}%{?_isa} = %{version}-%{release}
0897f57
0897f57
%description    devel
0897f57
The %{name}-devel package contains libraries and header files for
0897f57
developing applications that use %{name}.
0897f57
0897f57
%package	doc
0897f57
Summary:	Documentation files for %{name}
0897f57
Group:		Documentation
0897f57
Requires:	%{name} = %{version}-%{release}
0897f57
BuildArch:	noarch
0897f57
0897f57
%description	doc
0897f57
This package contains the documentation for %{name}.
0897f57
0897f57
%prep
0897f57
%setup -q -n %{module}-%{version}
0897f57
%patch0 -p1
0897f57
%patch1 -p1
0897f57
%patch2 -p1
0897f57
0897f57
%build
0897f57
%configure
0897f57
make %{?_smpflags} all doxydoc
0897f57
0897f57
%install
0897f57
make install DESTDIR=%{buildroot}
0897f57
rm %{buildroot}%{_libdir}/*.la
0897f57
cp -a doxydoc/html %{buildroot}%{_docdir}/%{name}-%{version}
0897f57
0897f57
%check
0897f57
make tests
0897f57
0897f57
%post -p /sbin/ldconfig
0897f57
0897f57
%postun -p /sbin/ldconfig
0897f57
0897f57
%files
0897f57
%dir %{_docdir}/%{name}-%{version}
0897f57
%doc %{_docdir}/%{name}-%{version}/AUTHORS
0897f57
%doc %{_docdir}/%{name}-%{version}/coinutils_addlibs.txt
0897f57
%doc %{_docdir}/%{name}-%{version}/LICENSE
0897f57
%doc %{_docdir}/%{name}-%{version}/README
0897f57
%{_libdir}/*.so.*
0897f57
0897f57
%files		devel
0897f57
%{_includedir}/coin/*
0897f57
%{_libdir}/*.so
0897f57
%{_libdir}/pkgconfig/*
0897f57
0897f57
%files		doc
0897f57
%doc %{_docdir}/%{name}-%{version}/html
0897f57
0897f57
%changelog
0897f57
* Sun Apr 14 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 2.9.0-1
0897f57
- Update to latest upstream release.
0897f57
- Switch to the new upstream tarballs without bundled dependencies.
0897f57
- Split documentation in a new subpackage (#894585#3)
0897f57
- Correct undefined non weak symbols (#894585#3)
0897f57
- Removed unneeded atlas, blas, glpk and lapack build requires (#894585#3)
0897f57
0897f57
* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 2.8.8-1
0897f57
- Add coin-or-Sample to build requires (#894610#c4).
0897f57
- Update to latest upstream release.
0897f57
0897f57
* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 2.8.7-3
0897f57
- Rename repackaged tarball.
0897f57
0897f57
* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 2.8.7-2
0897f57
- Rename package to coin-or-CoinUtils
0897f57
- Do not package Thirdy party data or data without clean license.
0897f57
0897f57
* Wed Sep 26 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 2.8.7-1
0897f57
- Initial coinor-CoinUtils spec.