cb8c11c04f
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
78 lines
2.2 KiB
RPMSpec
78 lines
2.2 KiB
RPMSpec
#
|
|
# 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
|