File mingw64-CoinUtils.spec of Package mingw64-CoinUtils
#
# spec file for package mingw64-CoinUtils
#
# 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 CoinUtils
Name: mingw64-%{_basename}
Version: 2.10.3
Release: 0
#!BuildIgnore: post-build-checks
Summary: Coin-or Utilities
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
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-libbz2-devel
BuildRequires: mingw64(pkg:zlib)
%_mingw64_package_header_debug
BuildArch: noarch
%description
CoinUtils (Coin-or Utilities) is an open-source collection of classes
and functions that are generally useful to more than one COIN-OR project.
%package -n mingw64-libCoinUtils3
Summary: Coin-or Utilities
Group: System/Libraries
Obsoletes: mingw64-CoinUtils < %version-%release
Provides: mingw64-CoinUtils = %version-%release
%description -n mingw64-libCoinUtils3
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: %{_basename} development files
Group: Development/Libraries/C and C++
%description devel
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
%_mingw64_debug_package
%prep
%setup -q -n %{_basename}-%{version}
%patch -P 0 -p1
%build
%{_mingw64_configure} \
--enable-shared \
coin_skip_warn_cflags=yes \
coin_skip_warn_cxxflags=yes \
lt_cv_deplibs_check_method=pass_all
%{_mingw64_make} %{?_smp_mflags}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
%files -n mingw64-libCoinUtils3
%defattr(-,root,root)
%{_mingw64_bindir}/lib%{_basename}-3.dll
%files devel
%defattr(-,root,root,-)
%{_mingw64_libdir}/lib%{_basename}.dll.a
%{_mingw64_includedir}/coin/
%{_mingw64_libdir}/pkgconfig/
%{_mingw64_docdir}/%{_basename}/
%changelog