File mingw32-Cbc.spec of Package mingw32-Cbc
#
# spec file for package mingw32-Cbc
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _basename Cbc
Name: mingw32-%{_basename}
Version: 2.9.2
Release: 0
#!BuildIgnore: post-build-checks
Summary: Coin-or branch and cut
License: EPL-1.0
Group: Applications/Engineering
Url: http://projects.coin-or.org/%{_basename}
Source0: http://www.coin-or.org/download/pkgsource/%{_basename}/%{_basename}-%{version}.tgz
Patch0: %{_basename}-docdir.patch
Patch1: %{_basename}-no-compilation-time.patch
BuildRequires: mingw32-Cgl-devel
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
%_mingw32_package_header_debug
BuildArch: noarch
%description
Cbc (Coin-or branch and cut) is an open-source mixed integer programming
solver written in C++. It can be used as a callable library or using a
stand-alone executable. It can be called through AMPL (natively), GAMS
(using the links provided by the "Optimization Services" and "GAMSlinks"
projects), MPL (through the "CoinMP" project), AIMMS (through the "AIMMSlinks"
project), or "PuLP".
Cbc links to a number of other COIN projects for additional functionality,
including:
* Clp (the default solver for LP relaxations)
* Cgl (for cut generation)
* CoinUtils (for reading input files and various utilities)
%package devel
Summary: %{_basename} development files
Group: Development/Libraries/C and C++
%description devel
Cbc (Coin-or branch and cut) is an open-source mixed integer programming
solver written in C++. It can be used as a callable library or using a
stand-alone executable. It can be called through AMPL (natively), GAMS
(using the links provided by the "Optimization Services" and "GAMSlinks"
projects), MPL (through the "CoinMP" project), AIMMS (through the "AIMMSlinks"
project), or "PuLP".
Cbc links to a number of other COIN projects for additional functionality,
including:
* Clp (the default solver for LP relaxations)
* Cgl (for cut generation)
* CoinUtils (for reading input files and various utilities)
%_mingw32_debug_package
%prep
%setup -q -n %{_basename}-%{version}
%patch -P 0 -p1
%patch -P 1 -p1
%build
%{_mingw32_configure} \
--enable-shared \
coin_skip_warn_cflags=yes \
coin_skip_warn_cxxflags=yes \
lt_cv_deplibs_check_method=pass_all \
--enable-cbc-parallel
%{_mingw32_make} %{?_smp_mflags}
%install
%{_mingw32_make} DESTDIR=%{buildroot} install
%files
%defattr(-,root,root,-)
%{_mingw32_bindir}/cbc.exe
%{_mingw32_bindir}/lib%{_basename}-*.dll
%{_mingw32_bindir}/lib%{_basename}Solver-*.dll
%{_mingw32_bindir}/libOsi%{_basename}-*.dll
%dir %{_mingw32_docdir}/%{_basename}
%doc %{_mingw32_docdir}/%{_basename}/AUTHORS
%doc %{_mingw32_docdir}/%{_basename}/LICENSE
%doc %{_mingw32_docdir}/%{_basename}/README
%files devel
%defattr(-,root,root,-)
%{_mingw32_libdir}/lib%{_basename}.dll.a
%{_mingw32_libdir}/lib%{_basename}Solver.dll.a
%{_mingw32_libdir}/libOsi%{_basename}.dll.a
%{_mingw32_includedir}/coin/
%{_mingw32_libdir}/pkgconfig/
%doc %{_mingw32_docdir}/%{_basename}/*_addlibs.txt
%changelog