From cb8c11c04f389941ba8258cf4c12a9d74f7a8e96dd6358bb35106ded1e76ea12 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 3 Feb 2014 18:19:22 +0000 Subject: [PATCH] Accepting request 220703 from home:jengelh:branches:windows:mingw:win32 The pthreads implementation of mingw-w64. (pthreadGC2 seems to be mingw.org material) OBS-URL: https://build.opensuse.org/request/show/220703 OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-winpthreads?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + mingw-w64-winpthreads-3.1.0.tar.xz | 3 ++ mingw32-winpthreads.changes | 4 ++ mingw32-winpthreads.spec | 77 ++++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mingw-w64-winpthreads-3.1.0.tar.xz create mode 100644 mingw32-winpthreads.changes create mode 100644 mingw32-winpthreads.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mingw-w64-winpthreads-3.1.0.tar.xz b/mingw-w64-winpthreads-3.1.0.tar.xz new file mode 100644 index 0000000..5481ad7 --- /dev/null +++ b/mingw-w64-winpthreads-3.1.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08f63df8d263f0c9f917d9722d05e30efa687aa941ba6f47adf677b3dbd21adf +size 311464 diff --git a/mingw32-winpthreads.changes b/mingw32-winpthreads.changes new file mode 100644 index 0000000..d9ab916 --- /dev/null +++ b/mingw32-winpthreads.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Feb 3 12:07:45 UTC 2014 - jengelh@inai.de + +- Initial package (version 3.1.0) for build.opensuse.org diff --git a/mingw32-winpthreads.spec b/mingw32-winpthreads.spec new file mode 100644 index 0000000..a84a91d --- /dev/null +++ b/mingw32-winpthreads.spec @@ -0,0 +1,77 @@ +# +# spec file for package mingw32-winpthreads +# +# 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 __strip %_mingw32_strip +%define __objdump %_mingw32_objdump +%define _use_internal_dependency_generator 0 +%define __find_requires %_mingw32_findrequires +%define __find_provides %_mingw32_findprovides +%define __os_install_post %_mingw32_debug_install_post \ + %_mingw32_install_post + +Name: mingw32-winpthreads +Summary: A pthreads implementation for Windows +License: MIT and BSD-3-Clause +Group: Development/Libraries/C and C++ +Version: 3.1.0 +Release: 0 +Url: http://mingw-w64.sf.net/ + +Source: mingw-w64-winpthreads-%version.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +BuildRequires: mingw32-cross-gcc +BuildRequires: mingw32-cross-gcc-c++ +BuildRequires: mingw32-filesystem +BuildRequires: mingw32-pkg-config +BuildRequires: xz + +%description + +%package devel +Summary: Useful collection of routines for C and C++ programming +Group: Development/Libraries/C and C++ +Requires: %name = %version +Provides: mingw32-unistd-pthread-devel +Conflicts: mingw32-headers-dummy-pthread otherproviders(mingw32-unistd-pthread-devel) + +%description devel + +%_mingw32_debug_package + +%prep +%setup -qn winpthreads + +%build +%_mingw32_configure +make %{?_smp_mflags} + +%install +b="%buildroot"; +make install DESTDIR="$b" + +%files +%defattr(-,root,root) +%_mingw32_bindir/*.dll + +%files devel +%defattr(-,root,root) +%_mingw32_includedir/ +%_mingw32_libdir/ + +%changelog