File mingw64-std-threads.spec of Package mingw64-std-threads
#
# spec file for package mingw64-std-threads
#
# Copyright (c) 2015 SUSE LINUX 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-std-threads
Version: 0~git33
Release: 0
Summary: A std::threads implementation for MinGW
License: MIT and BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://github.com/meganz/mingw-std-pthreads/
#Git-Clone: git://github.com/meganz/mingw-std-pthreads/
#Snapshot: 73af09ae0c7a784f8439dbdf401e81d1c2a8da19
Source: mingw-std-threads-%version.tar.xz
BuildRequires: mingw64-filesystem
BuildRequires: xz
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
An implementation of C++11 std::thread, std::mutex and
std::condition_variable for use in conjunction with MinGW's
winpthreads library on top of a libstdc++ which lacks said classes.
%package devel
Summary: Development files for std::thread, std::mutex
Group: Development/Libraries/C and C++
Requires: mingw64-libwinpthread-devel
%description devel
An implementation of C++11 std::thread, std::mutex and
std::condition_variable for use in conjunction with MinGW's
winpthreads library on top of a libstdc++ which lacks said classes.
%_mingw64_debug_package
%prep
%setup -q -n mingw-std-threads
%build
%install
d="%buildroot/%_mingw64_includedir"
mkdir -p "$d"
install -pm0644 mingw.*.h "$d/"
# Rather than forcing programs to include "mingw.mutex.h",
# smartly override <mutex>.
d="$d/../local/include"
mkdir -p "$d"
cat >"$d/mutex" <<EOF
#include_next <mutex>
#include <mingw.mutex.h>
EOF
%files devel
%defattr(-,root,root)
%_mingw64_includedir/
%_mingw64_includedir/../local/include/
%changelog