forked from pool/mingw64-winpthreads
OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-winpthreads?expand=0&rev=10
This commit is contained in:
parent
ff56ed2acd
commit
5f05f0055a
@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%_mingw64_package_header_debug
|
||||
Name: mingw64-winpthreads
|
||||
Version: 3.1.0
|
||||
Release: 0
|
||||
@ -24,14 +23,14 @@ 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
|
||||
Source: mingw-w64-winpthreads-%{version}.tar.xz
|
||||
BuildRequires: mingw64-cross-gcc-bootstrap
|
||||
BuildRequires: mingw64-cross-pkg-config
|
||||
BuildRequires: mingw64-filesystem
|
||||
BuildRequires: xz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%{_mingw64_package_header_debug}
|
||||
#!BuildIgnore: post-build-checks
|
||||
|
||||
%description
|
||||
@ -48,10 +47,10 @@ mingw-w64's implementation of POSIX threads for Windows.
|
||||
%package devel
|
||||
Summary: Development files for mingw64-winpthreads
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: mingw64-libwinpthread1 = %version
|
||||
Requires: mingw64-libwinpthread1 = %{version}
|
||||
Provides: mingw64-unistd-pthread-devel
|
||||
Conflicts: mingw64-headers-dummy-pthread, otherproviders(mingw64-unistd-pthread-devel)
|
||||
Obsoletes: mingw64-headers-dummy-pthread
|
||||
Conflicts: mingw64-headers-dummy-pthread, otherproviders(mingw64-unistd-pthread-devel)
|
||||
|
||||
%description devel
|
||||
mingw-w64's implementation of POSIX threads for Windows.
|
||||
@ -67,24 +66,24 @@ mingw-w64's implementation of POSIX threads for Windows.
|
||||
mkdir fakelib
|
||||
pushd fakelib
|
||||
touch empty.c
|
||||
%_mingw64_cc -c empty.c
|
||||
%_mingw64_ar rsc libpthread.a empty.o
|
||||
%{_mingw64_cc} -c empty.c
|
||||
%{_mingw64_ar} rsc libpthread.a empty.o
|
||||
popd
|
||||
%_mingw64_configure \
|
||||
%{_mingw64_configure} \
|
||||
--disable-static \
|
||||
--enable-shared
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make DESTDIR="%buildroot" install %{?_smp_mflags}
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
|
||||
%files -n mingw64-libwinpthread1
|
||||
%defattr(-,root,root)
|
||||
%_mingw64_bindir/libwinpthread-1.dll
|
||||
%{_mingw64_bindir}/libwinpthread-1.dll
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%_mingw64_includedir/
|
||||
%_mingw64_libdir/
|
||||
%{_mingw64_includedir}/
|
||||
%{_mingw64_libdir}/
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user