trim changelog; specfile modernization

OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-winpthreads?expand=0&rev=33
This commit is contained in:
Jan Engelhardt 2021-03-18 13:31:23 +00:00 committed by Git OBS Bridge
parent cf5ccb3b4e
commit 495cc6e0e2
2 changed files with 10 additions and 13 deletions

View File

@ -2,14 +2,14 @@
Wed Mar 17 15:52:33 UTC 2021 - Jeff Kowalczyk <jkowalczyk@suse.com>
- Update to new upstream release 8.0.0
* winpthreads: Always define `__USE_MINGW_ANSI_STDIO` to zero
* winpthreads: remove unused dwFlags variable in sched.c
* winpthreads: don't call SetThreadContext in winstore builds
* winpthreads: do not call GetHandleInformation in winstore build
* winpthreads: simplify the handle validity in pthread_check()
* winpthreads: always return 0 in pthread_check() if the thread ended is 0
* winpthreads: do not use the XXXExceptionHandler API in winstore builds
* winpthreads: simplify the USE_VEH_FOR_MSC_SETTHREADNAME check
* Always define `__USE_MINGW_ANSI_STDIO` to zero
* Remove unused dwFlags variable in sched.c
* Don't call SetThreadContext in winstore builds
* Do not call GetHandleInformation in winstore build
* Simplify the handle validity in pthread_check()
* Always return 0 in pthread_check() if the thread ended is 0
* Do not use the XXXExceptionHandler API in winstore builds
* Simplify the USE_VEH_FOR_MSC_SETTHREADNAME check
-------------------------------------------------------------------
Mon Nov 25 17:31:02 UTC 2019 - Ralf Habacker <ralf.habacker@freenet.de>

View File

@ -30,7 +30,6 @@ BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-runtime
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
@ -61,7 +60,7 @@ mingw-w64's implementation of POSIX threads for Windows.
%_mingw64_debug_package
%prep
%setup -q -n mingw-w64-v%{version}/mingw-w64-libraries/winpthreads
%autosetup -p1 -n mingw-w64-v%version/mingw-w64-libraries/winpthreads
%build
# The build is trying to link with libpthread.a but it has no need
@ -79,17 +78,15 @@ popd
--enable-static \
--enable-shared \
LDFLAGS="%{_mingw64_ldflags_bootstrap}"
make %{?_smp_mflags}
%make_build
%install
%make_install
%files -n mingw64-libwinpthread1
%defattr(-,root,root)
%_mingw64_bindir/libwinpthread-1.dll
%files devel
%defattr(-,root,root)
%_mingw64_includedir/
%_mingw64_libdir/