2014-02-03 19:19:22 +01:00
|
|
|
#
|
|
|
|
# spec file for package mingw32-winpthreads
|
|
|
|
#
|
2017-01-14 21:47:26 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-02-03 19:19:22 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: mingw32-winpthreads
|
2017-01-14 21:47:26 +01:00
|
|
|
Version: 5.0.1
|
2014-06-01 14:09:01 +02:00
|
|
|
Release: 0
|
2014-02-03 19:19:22 +01:00
|
|
|
Summary: A pthreads implementation for Windows
|
|
|
|
License: MIT and BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-10-21 09:27:37 +02:00
|
|
|
Url: http://mingw-w64.sf.net/
|
2015-03-25 12:10:57 +01:00
|
|
|
|
2016-03-24 09:57:14 +01:00
|
|
|
#DL-URL: http://download.sf.net/mingw-w64/mingw-w64-v5.0-rc1.tar.bz2
|
2015-03-25 12:10:57 +01:00
|
|
|
Source: mingw-w64-winpthreads-%version.tar.xz
|
|
|
|
Source9: %name-rpmlintrc
|
2017-01-10 09:01:24 +01:00
|
|
|
Patch1: memleak.patch
|
2014-06-16 11:10:58 +02:00
|
|
|
BuildRequires: mingw32-cross-gcc-bootstrap
|
|
|
|
BuildRequires: mingw32-cross-pkg-config
|
2014-02-03 19:19:22 +01:00
|
|
|
BuildRequires: mingw32-filesystem
|
2014-06-19 14:26:24 +02:00
|
|
|
BuildRequires: mingw32-runtime
|
2014-02-03 19:19:22 +01:00
|
|
|
BuildRequires: xz
|
2014-10-21 09:27:37 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-10-22 04:49:47 +02:00
|
|
|
%_mingw32_package_header_debug
|
2014-06-01 14:09:01 +02:00
|
|
|
BuildArch: noarch
|
2014-02-14 21:10:20 +01:00
|
|
|
#!BuildIgnore: post-build-checks
|
2014-02-03 19:19:22 +01:00
|
|
|
|
|
|
|
%description
|
2014-02-14 21:10:20 +01:00
|
|
|
mingw-w64's implementation of POSIX threads for Windows.
|
2014-02-03 19:19:22 +01:00
|
|
|
|
2014-07-14 12:50:03 +02:00
|
|
|
%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.
|
|
|
|
|
2014-02-03 19:19:22 +01:00
|
|
|
%package devel
|
2014-02-14 21:10:20 +01:00
|
|
|
Summary: Development files for mingw32-winpthreads
|
2014-02-03 19:19:22 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-10-21 09:27:37 +02:00
|
|
|
Requires: mingw32-libwinpthread1 = %{version}
|
2014-02-03 19:19:22 +01:00
|
|
|
Provides: mingw32-unistd-pthread-devel
|
2014-09-21 21:40:57 +02:00
|
|
|
Obsoletes: mingw32-headers-dummy-pthread
|
2014-10-21 09:27:37 +02:00
|
|
|
Conflicts: mingw32-headers-dummy-pthread, otherproviders(mingw32-unistd-pthread-devel)
|
2014-02-03 19:19:22 +01:00
|
|
|
|
|
|
|
%description devel
|
2014-02-14 21:10:20 +01:00
|
|
|
mingw-w64's implementation of POSIX threads for Windows.
|
2014-02-03 19:19:22 +01:00
|
|
|
|
|
|
|
%_mingw32_debug_package
|
|
|
|
|
|
|
|
%prep
|
2014-06-01 14:09:01 +02:00
|
|
|
%setup -q -n winpthreads
|
2017-01-10 09:01:24 +01:00
|
|
|
%patch1 -p1
|
2014-02-03 19:19:22 +01:00
|
|
|
|
|
|
|
%build
|
2015-03-25 12:10:57 +01:00
|
|
|
# The build is trying to link with libpthread.a but it has no need
|
2014-06-16 15:55:18 +02:00
|
|
|
# of any symbol from there, so just create a fake library and use it.
|
|
|
|
mkdir fakelib
|
|
|
|
pushd fakelib
|
|
|
|
touch empty.c
|
2014-10-21 09:27:37 +02:00
|
|
|
%{_mingw32_cc} -c empty.c
|
|
|
|
%{_mingw32_ar} rsc libpthread.a empty.o
|
2014-06-16 15:55:18 +02:00
|
|
|
popd
|
2014-10-21 09:27:37 +02:00
|
|
|
%{_mingw32_configure} \
|
2015-05-29 15:27:26 +02:00
|
|
|
--enable-static \
|
2014-06-16 11:10:58 +02:00
|
|
|
--enable-shared
|
2014-02-03 19:19:22 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2014-10-21 09:27:37 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2014-09-21 21:40:57 +02:00
|
|
|
|
2014-07-14 12:50:03 +02:00
|
|
|
%files -n mingw32-libwinpthread1
|
2014-02-03 19:19:22 +01:00
|
|
|
%defattr(-,root,root)
|
2014-10-21 09:27:37 +02:00
|
|
|
%{_mingw32_bindir}/libwinpthread-1.dll
|
2014-02-03 19:19:22 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2014-10-21 09:27:37 +02:00
|
|
|
%{_mingw32_includedir}/
|
|
|
|
%{_mingw32_libdir}/
|
2014-02-03 19:19:22 +01:00
|
|
|
|
|
|
|
%changelog
|