Jan Engelhardt
db1df524c9
OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-winpthreads?expand=0&rev=14
91 lines
2.7 KiB
RPMSpec
91 lines
2.7 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/
|
|
#
|
|
|
|
|
|
Name: mingw32-winpthreads
|
|
Version: 3.1.0
|
|
Release: 0
|
|
Summary: A pthreads implementation for Windows
|
|
License: MIT and BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://mingw-w64.sf.net/
|
|
Source: mingw-w64-winpthreads-%{version}.tar.xz
|
|
BuildRequires: mingw32-cross-gcc-bootstrap
|
|
BuildRequires: mingw32-cross-pkg-config
|
|
BuildRequires: mingw32-filesystem
|
|
BuildRequires: mingw32-runtime
|
|
BuildRequires: xz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%_mingw32_package_header_debug
|
|
BuildArch: noarch
|
|
#!BuildIgnore: post-build-checks
|
|
|
|
%description
|
|
mingw-w64's implementation of POSIX threads for Windows.
|
|
|
|
%package -n mingw32-libwinpthread1
|
|
Summary: A pthreads implementation for Windows
|
|
Group: System/Libraries
|
|
Obsoletes: mingw32-winpthreads
|
|
|
|
%description -n mingw32-libwinpthread1
|
|
mingw-w64's implementation of POSIX threads for Windows.
|
|
|
|
%package devel
|
|
Summary: Development files for mingw32-winpthreads
|
|
Group: Development/Libraries/C and C++
|
|
Requires: mingw32-libwinpthread1 = %{version}
|
|
Provides: mingw32-unistd-pthread-devel
|
|
Obsoletes: mingw32-headers-dummy-pthread
|
|
Conflicts: mingw32-headers-dummy-pthread, otherproviders(mingw32-unistd-pthread-devel)
|
|
|
|
%description devel
|
|
mingw-w64's implementation of POSIX threads for Windows.
|
|
|
|
%_mingw32_debug_package
|
|
|
|
%prep
|
|
%setup -q -n winpthreads
|
|
|
|
%build
|
|
# There build is trying to link with libpthread.a but it has no need
|
|
# of any symbol from there, so just create a fake library and use it.
|
|
mkdir fakelib
|
|
pushd fakelib
|
|
touch empty.c
|
|
%{_mingw32_cc} -c empty.c
|
|
%{_mingw32_ar} rsc libpthread.a empty.o
|
|
popd
|
|
%{_mingw32_configure} \
|
|
--disable-static \
|
|
--enable-shared
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
%files -n mingw32-libwinpthread1
|
|
%defattr(-,root,root)
|
|
%{_mingw32_bindir}/libwinpthread-1.dll
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_mingw32_includedir}/
|
|
%{_mingw32_libdir}/
|
|
|
|
%changelog
|