File mingw64-libsatsolver.spec of Package mingw64-libsatsolver
#
# spec file for package mingw64-libsatsolver
#
# 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/
#
Name: mingw64-libsatsolver
Version: 0.14.10
Release: 0
Summary: A new approach to package dependency solving
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: git://git.opensuse.org/projects/zypp/sat-solver.git
Source: satsolver-%{version}.tar.bz2
Source1000: %{name}-rpmlintrc
Patch0: satsolver-no-testing.diff
Patch1: satsolver-mingw.diff
BuildRequires: mingw64-cross-cmake
BuildRequires: doxygen
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-libdb-devel
BuildRequires: mingw64-libexpat-devel
BuildRequires: mingw64-libgnurx-devel
BuildRequires: mingw64-rpm-devel
BuildRequires: mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
A new approach to package dependency solving
%package devel
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
%description devel
Development files for satsolver, a new approach to package dependency solving
%package -n mingw64-satsolver-tools
Summary: A new approach to package dependency solving
Group: Development/Libraries/C and C++
%description -n mingw64-satsolver-tools
A new approach to package dependency solving.
%_mingw64_debug_package
%prep
%setup -q -n satsolver-%{version}
%patch -P 0
%patch -P 1
%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}
%{_mingw64_cmake_build} doc_forced
%install
%{_mingw64_cmake_install}
# we want to leave the .a file untouched
%files -n mingw64-satsolver-tools
%defattr(-,root,root)
%doc LICENSE.BSD
%{_mingw64_bindir}/*.exe
%exclude %{_mingw64_bindir}/helix2solv.exe
%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libsatsolver.a
%{_mingw64_libdir}/libsatsolverext.a
%{_mingw64_libdir}/libappsatsolver.a
%dir %{_mingw64_includedir}/satsolver
%{_mingw64_includedir}/satsolver/*
%changelog