2014-02-03 19:19:44 +01:00
|
|
|
#
|
|
|
|
# spec file for package mingw64-winpthreads
|
|
|
|
#
|
2021-03-18 14:27:50 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2014-02-03 19:19:44 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-11-23 15:41:52 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-03 19:19:44 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: mingw64-winpthreads
|
2021-07-03 14:00:49 +02:00
|
|
|
Version: 9.0.0
|
2014-06-01 14:11:11 +02:00
|
|
|
Release: 0
|
2014-02-03 19:19:44 +01:00
|
|
|
Summary: A pthreads implementation for Windows
|
2021-03-18 14:27:50 +01:00
|
|
|
License: BSD-3-Clause AND MIT
|
2014-02-03 19:19:44 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-11-23 15:41:52 +01:00
|
|
|
URL: http://mingw-w64.sf.net/
|
|
|
|
Source: http://downloads.sf.net/mingw-w64/mingw-w64-v%{version}.tar.bz2
|
2015-03-25 12:13:28 +01:00
|
|
|
Source9: %name-rpmlintrc
|
2014-06-16 11:11:21 +02:00
|
|
|
BuildRequires: mingw64-cross-gcc-bootstrap
|
|
|
|
BuildRequires: mingw64-cross-pkg-config
|
2014-02-03 19:19:44 +01:00
|
|
|
BuildRequires: mingw64-filesystem
|
2014-10-24 12:09:52 +02:00
|
|
|
BuildRequires: mingw64-runtime
|
2014-02-03 19:19:44 +01:00
|
|
|
BuildRequires: xz
|
2014-10-22 04:53:49 +02:00
|
|
|
%_mingw64_package_header_debug
|
2014-06-01 14:11:11 +02:00
|
|
|
BuildArch: noarch
|
2014-02-14 21:10:23 +01:00
|
|
|
#!BuildIgnore: post-build-checks
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%description
|
2014-06-01 14:11:11 +02:00
|
|
|
mingw-w64's implementation of POSIX threads for Windows.
|
2014-02-03 19:19:44 +01:00
|
|
|
|
2014-07-14 12:47:48 +02:00
|
|
|
%package -n mingw64-libwinpthread1
|
|
|
|
Summary: A pthreads implementation for Windows
|
|
|
|
Group: System/Libraries
|
|
|
|
Obsoletes: mingw64-winpthreads
|
|
|
|
|
|
|
|
%description -n mingw64-libwinpthread1
|
|
|
|
mingw-w64's implementation of POSIX threads for Windows.
|
|
|
|
|
2014-02-03 19:19:44 +01:00
|
|
|
%package devel
|
2014-02-14 21:10:23 +01:00
|
|
|
Summary: Development files for mingw64-winpthreads
|
2014-02-03 19:19:44 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-10-17 21:09:21 +02:00
|
|
|
Requires: mingw64-libwinpthread1 = %version
|
2014-02-03 19:19:44 +01:00
|
|
|
Provides: mingw64-unistd-pthread-devel
|
2014-09-21 21:41:36 +02:00
|
|
|
Obsoletes: mingw64-headers-dummy-pthread
|
2021-03-18 14:27:50 +01:00
|
|
|
Conflicts: mingw64-headers-dummy-pthread
|
|
|
|
Conflicts: otherproviders(mingw64-unistd-pthread-devel)
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%description devel
|
2014-06-01 14:11:11 +02:00
|
|
|
mingw-w64's implementation of POSIX threads for Windows.
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%_mingw64_debug_package
|
|
|
|
|
|
|
|
%prep
|
2021-03-18 14:31:23 +01:00
|
|
|
%autosetup -p1 -n mingw-w64-v%version/mingw-w64-libraries/winpthreads
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%build
|
2015-03-25 12:13:28 +01:00
|
|
|
# The build is trying to link with libpthread.a but it has no need
|
2014-06-16 15:56:03 +02:00
|
|
|
# of any symbol from there, so just create a fake library and use it.
|
|
|
|
mkdir fakelib
|
|
|
|
pushd fakelib
|
|
|
|
touch empty.c
|
2018-10-17 21:09:21 +02:00
|
|
|
%_mingw64_cc -c empty.c
|
|
|
|
%_mingw64_ar rsc libpthread.a empty.o
|
2014-06-16 15:56:03 +02:00
|
|
|
popd
|
2019-11-25 13:42:09 +01:00
|
|
|
|
|
|
|
# No ssp support in gcc-cross-bootstrap
|
2019-11-25 19:52:51 +01:00
|
|
|
# Hence we use dedicated LDFLAGS (without -fstack-protector)
|
2019-11-25 13:42:09 +01:00
|
|
|
%{_mingw64_configure} \
|
2015-05-29 15:27:57 +02:00
|
|
|
--enable-static \
|
2019-11-25 13:42:09 +01:00
|
|
|
--enable-shared \
|
2019-11-25 19:52:51 +01:00
|
|
|
LDFLAGS="%{_mingw64_ldflags_bootstrap}"
|
2021-03-18 14:31:23 +01:00
|
|
|
%make_build
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%install
|
2018-10-17 21:09:21 +02:00
|
|
|
%make_install
|
2014-02-03 19:19:44 +01:00
|
|
|
|
2014-07-14 12:47:48 +02:00
|
|
|
%files -n mingw64-libwinpthread1
|
2018-10-17 21:09:21 +02:00
|
|
|
%_mingw64_bindir/libwinpthread-1.dll
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%files devel
|
2018-10-17 21:09:21 +02:00
|
|
|
%_mingw64_includedir/
|
|
|
|
%_mingw64_libdir/
|
2014-02-03 19:19:44 +01:00
|
|
|
|
|
|
|
%changelog
|