|
|
d5db230 |
%global module Dip
|
|
|
d5db230 |
|
|
|
d5db230 |
%if 0%{?fedora} > 21
|
|
|
d5db230 |
%global with_asl 1
|
|
|
d5db230 |
%else
|
|
|
d5db230 |
%global with_asl 0
|
|
|
d5db230 |
%endif
|
|
|
d5db230 |
%global with_mpi 0
|
|
|
d5db230 |
|
|
|
d5db230 |
Name: coin-or-%{module}
|
|
|
d5db230 |
Group: Applications/Engineering
|
|
|
d5db230 |
Summary: Decomposition for Integer Programming
|
|
|
eb1790b |
Version: 0.92.2
|
|
|
eb1790b |
Release: 1%{?dist}
|
|
|
d5db230 |
License: EPL
|
|
|
d5db230 |
URL: http://www.coin-or.org/projects/%{module}.xml
|
|
|
d5db230 |
Source0: http://www.coin-or.org/download/pkgsource/%{module}/%{module}-%{version}.tgz
|
|
|
d5db230 |
BuildRequires: atlas-devel
|
|
|
d5db230 |
BuildRequires: blas-devel
|
|
|
d5db230 |
BuildRequires: bzip2-devel
|
|
|
d5db230 |
BuildRequires: coin-or-Alps-devel
|
|
|
d5db230 |
BuildRequires: coin-or-Cbc-devel
|
|
|
d5db230 |
BuildRequires: coin-or-Cgl-devel
|
|
|
d5db230 |
BuildRequires: coin-or-Clp-devel
|
|
|
d5db230 |
BuildRequires: coin-or-CoinUtils-devel
|
|
|
d5db230 |
%if %{with_mpi}
|
|
|
d5db230 |
BuildRequires: coin-or-Ipopt-openmpi-devel
|
|
|
d5db230 |
%else
|
|
|
d5db230 |
BuildRequires: coin-or-Ipopt-devel
|
|
|
d5db230 |
%endif
|
|
|
d5db230 |
BuildRequires: coin-or-Osi-devel
|
|
|
9e098b8 |
BuildRequires: coin-or-SYMPHONY-devel
|
|
|
d5db230 |
BuildRequires: glpk-devel
|
|
|
d5db230 |
BuildRequires: lapack-devel
|
|
|
d5db230 |
%if %{with_asl}
|
|
|
d5db230 |
BuildRequires: mp-devel
|
|
|
d5db230 |
%endif
|
|
|
d5db230 |
%if %{with_mpi}
|
|
|
d5db230 |
BuildRequires: openmpi-devel
|
|
|
d5db230 |
BuildRequires: scalapack-openmpi-devel
|
|
|
d5db230 |
BuildRequires: openssh-clients
|
|
|
d5db230 |
%endif
|
|
|
d5db230 |
BuildRequires: pkgconfig
|
|
|
d5db230 |
BuildRequires: readline-devel
|
|
|
d5db230 |
BuildRequires: zlib-devel
|
|
|
d5db230 |
|
|
|
d5db230 |
# Install documentation in standard rpm directory
|
|
|
d5db230 |
Patch0: %{name}-docdir.patch
|
|
|
d5db230 |
|
|
|
d5db230 |
# Bad #define generated if svnversion is available
|
|
|
d5db230 |
Patch1: %{name}-svnversion.patch
|
|
|
d5db230 |
|
|
|
d5db230 |
%description
|
|
|
d5db230 |
DIP (Decomposition for Integer Programming) is an open-source extensible
|
|
|
d5db230 |
software framework for implementing decomposition-based bounding algorithms
|
|
|
d5db230 |
for use in solving large-scale discrete optimization problems. The framework
|
|
|
d5db230 |
provides a simple API for experimenting with various decomposition-based
|
|
|
d5db230 |
algorithms, such as Dantzig-Wolfe decomposition, Lagrangian relaxation,
|
|
|
d5db230 |
and various cutting plane methods. Given a compact formulation and a
|
|
|
d5db230 |
relaxation, the framework takes care of all algorithmic details associated
|
|
|
d5db230 |
with implementing any of a wide range of decomposition-based algorithms,
|
|
|
d5db230 |
such as branch and cut, branch and price, branch and cut and price,
|
|
|
d5db230 |
subgradient-based Lagrangian relaxation, branch and relax and cut, and
|
|
|
d5db230 |
decompose and cut. The user can specify customizations, such as methods
|
|
|
d5db230 |
for generating valid inequalities and branching, in terms of the variables
|
|
|
d5db230 |
of the compact formulation, without having to worry about the details of
|
|
|
d5db230 |
any required reformulations.
|
|
|
d5db230 |
|
|
|
d5db230 |
%package devel
|
|
|
d5db230 |
Summary: Development files for %{name}
|
|
|
d5db230 |
Group: Development/Libraries
|
|
|
d5db230 |
Requires: coin-or-CoinUtils-devel
|
|
|
d5db230 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
d5db230 |
|
|
|
d5db230 |
%description devel
|
|
|
d5db230 |
The %{name}-devel package contains libraries and header files for
|
|
|
d5db230 |
developing applications that use %{name}.
|
|
|
d5db230 |
|
|
|
d5db230 |
%prep
|
|
|
d5db230 |
%setup -q -n %{module}-%{version}
|
|
|
d5db230 |
%patch0 -p1
|
|
|
d5db230 |
%patch1 -p1
|
|
|
d5db230 |
|
|
|
d5db230 |
%build
|
|
|
d5db230 |
%if %{with_mpi}
|
|
|
d5db230 |
%_openmpi_load
|
|
|
d5db230 |
%endif
|
|
|
d5db230 |
%configure --enable-openmp \
|
|
|
d5db230 |
%if %{with_asl}
|
|
|
d5db230 |
--with-asl-lib="-lasl -lmp -lipoptamplinterface -lbonminampl" \
|
|
|
d5db230 |
--with-asl-incdir="%{_includedir}/asl"
|
|
|
d5db230 |
%endif
|
|
|
d5db230 |
|
|
|
d5db230 |
# Kill rpaths
|
|
|
d5db230 |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
d5db230 |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
d5db230 |
make %{?_smp_mflags} all
|
|
|
d5db230 |
|
|
|
d5db230 |
%install
|
|
|
d5db230 |
make install DESTDIR=%{buildroot}
|
|
|
d5db230 |
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
32622bf |
install -m 644 AUTHORS README* %{buildroot}%{_pkgdocdir}
|
|
|
d5db230 |
|
|
|
d5db230 |
%check
|
|
|
d5db230 |
%if %{with_mpi}
|
|
|
d5db230 |
%_openmpi_load
|
|
|
d5db230 |
%endif
|
|
|
d5db230 |
LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test
|
|
|
d5db230 |
|
|
|
d5db230 |
%post -p /sbin/ldconfig
|
|
|
d5db230 |
|
|
|
d5db230 |
%postun -p /sbin/ldconfig
|
|
|
d5db230 |
|
|
|
d5db230 |
%files
|
|
|
d5db230 |
%license LICENSE
|
|
|
32622bf |
%{_pkgdocdir}
|
|
|
d5db230 |
%{_bindir}/dip
|
|
|
d5db230 |
%{_libdir}/*.so.*
|
|
|
d5db230 |
|
|
|
d5db230 |
%files devel
|
|
|
d5db230 |
%{_includedir}/coin/*
|
|
|
d5db230 |
%{_libdir}/*.so
|
|
|
d5db230 |
%{_libdir}/pkgconfig/*
|
|
|
d5db230 |
|
|
|
d5db230 |
%changelog
|
|
|
eb1790b |
* Tue Aug 02 2016 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.92.2-1
|
|
|
eb1790b |
- Update to latest upstream release
|
|
|
eb1790b |
|
|
|
32622bf |
* Sun Mar 13 2016 Ralf Cors├ępius <corsepiu@fedoraproject.org> - 0.91.2-6
|
|
|
32622bf |
- Install docs directly into %%{_pkgdocdir} (F24FTBFS, RHBZ#1307388).
|
|
|
32622bf |
|
|
|
d620f1a |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.91.2-5
|
|
|
d620f1a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
d620f1a |
|
|
|
ffc91e8 |
* Sat Jun 20 2015 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.91.2-4
|
|
|
ffc91e8 |
- Full rebuild of coin-or stack.
|
|
|
ffc91e8 |
|
|
|
f5d3a2e |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91.2-3
|
|
|
f5d3a2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
f5d3a2e |
|
|
|
e13c364 |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.91.2-2
|
|
|
e13c364 |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
e13c364 |
|
|
|
d5db230 |
* Mon Mar 23 2015 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.91.2-1
|
|
|
d5db230 |
- Update to latest upstream release.
|
|
|
d5db230 |
- Rediff patches (#894602#c10)
|
|
|
d5db230 |
- Use license macro (#894602#c10)
|
|
|
d5db230 |
|
|
|
d5db230 |
* Sat Feb 28 2015 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.91.1-1
|
|
|
d5db230 |
- Update to latest upstream release.
|
|
|
d5db230 |
|
|
|
d5db230 |
* Mon Apr 21 2014 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.9.9-2
|
|
|
d5db230 |
- Disable python subpackage, it should be packaged separately (#894602#c4).
|
|
|
d5db230 |
|
|
|
d5db230 |
* Sat Apr 19 2014 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.9.9-1
|
|
|
d5db230 |
- Update to latest upstream release.
|
|
|
d5db230 |
- Create new python subpackage.
|
|
|
d5db230 |
|
|
|
d5db230 |
* Fri Nov 1 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.9.4-1
|
|
|
d5db230 |
- Update to latest upstream release.
|
|
|
d5db230 |
|
|
|
d5db230 |
* Mon Jan 14 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.83.2-4
|
|
|
d5db230 |
- Update to run make check (#894610#c4).
|
|
|
d5db230 |
|
|
|
d5db230 |
* Sat Jan 12 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.83.2-3
|
|
|
d5db230 |
- Rename repackaged tarball.
|
|
|
d5db230 |
|
|
|
d5db230 |
* Sun Nov 18 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.83.2-2
|
|
|
d5db230 |
- Rename package to coin-or-Dip.
|
|
|
d5db230 |
- Do not package Thirdy party data or data without clean license.
|
|
|
d5db230 |
|
|
|
d5db230 |
* Sat Sep 29 2012 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 0.83.2-1
|
|
|
d5db230 |
- Initial coinor-Dip spec.
|