Blob Blame Raw
%global		module		Bcp

Name:		coin-or-%{module}
Group:		Applications/Engineering
Summary:	Branch-Cut-Price Framework
Version:	1.3.8
Release:	1%{?dist}
License:	CPL
BuildRequires:	atlas-devel
BuildRequires:	blas-devel
BuildRequires:	bzip2-devel
BuildRequires:	coin-or-Cgl-devel
BuildRequires:	coin-or-Clp-devel
BuildRequires:	coin-or-CoinUtils-devel
BuildRequires:	coin-or-Osi-devel
BuildRequires:	coin-or-Vol-devel
BuildRequires:	glpk-devel
BuildRequires:	graphviz
BuildRequires:	lapack-devel
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

BCP is a parallel framework for implementing branch, cut, and price algorithms
for solving mixed integer programs (MIPs). BCP provides the user with an
object-oriented framework that can be used to develop an efficient problem
class specific MIP solver without all the implementational effort. involved
with implementing a branch and bound framework from scratch.

%package	devel
Summary:	Development files for %{name}
Group:		Development/Libraries
Requires:	coin-or-CoinUtils-devel
Requires:	%{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

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

make %{?_smp_mflags} all

make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/*.la
mkdir -p %{buildroot}%{_docdir}/%{name}
install -p -m 644 AUTHORS LICENSE README %{buildroot}%{_docdir}/%{name}

make test

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

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

%files		devel

* Fri Mar 28 2014 pcpa <> - 1.3.8-1
- Update to latest upstream release.

* Fri Nov  1 2013 pcpa <> - 1.3.6-2
- Use proper _smp_flags macro (#894586#c6).

* Fri Nov  1 2013 pcpa <> - 1.3.6-1
- Update to latest upstream release.

* Mon Jan 14 2013 pcpa <> - 1.3.4-4
- Update to run make check (#894610#c4).

* Sat Jan 12 2013 pcpa <> - 1.3.4-3
- Rename repackaged tarball.

* Sun Nov 18 2012 pcpa <> - 1.3.4-2
- Rename package to coin-or-Bcp.
- Do not package Thirdy party data or data without clean license.

* Thu Sep 27 2012 pcpa <> - 1.3.4-1
- Initial coinor-Bcp spec.