File mingw64-headers.spec of Package mingw64-headers
#
# spec file for package mingw64-headers
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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 https://bugs.opensuse.org/
#
Name:           mingw64-headers
Version:        13.0.0
Release:        0
Summary:        MinGW-w64 headers for Win32 and Win64
License:        SUSE-Public-Domain
URL:            https://mingw-w64.sf.net/
Source:         http://downloads.sf.net/mingw-w64/mingw-w64-v%{version}.tar.bz2
Patch0:         mingw-w64-v9.0.0-strnlen_s.patch
Patch1:         mingw-w64-v11.0.1-fix-undefined-interface-type.patch
Patch2:         mingw-w64-v13.0.0-nullptr_t.patch
BuildRequires:  mingw64-filesystem
Requires:       mingw64-unistd-pthread-devel
BuildArch:      noarch
BuildSystem:    mingw64autotools
BuildOption:    --enable-sdk=all
BuildOption:    --with-default-msvcrt=%{?_mingw64_crt:%{_mingw64_crt}}%{!?_mingw64_crt:msvcrt}
%description
MinGW-w64 delivers runtime, headers and libs for developing both 64
bit (x64) and 32 bit (x86) windows applications using GCC and other
free software compilers.
This subpackage contains the header files.
%package dummy-pthread
Summary:        Stub pthread header files for MinGW
Provides:       mingw64-unistd-pthread-devel
%description dummy-pthread
This subpackage contains stub pthread header files that are empty
and only exist to satisfy dependencies in MinGW's unistd.h until
an actual pthread implementation (like winpthreads) is installed.
%prep
%autosetup -n mingw-w64-v%{version}/mingw-w64-headers -p2
%files
%{_mingw64_includedir}/
%exclude %{_mingw64_includedir}/pthread_*.h
%files dummy-pthread
%dir %{_mingw64_includedir}
%{_mingw64_includedir}/pthread_*.h
%changelog