e362766385
OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win64/mingw64-headers?expand=0&rev=42
79 lines
2.4 KiB
RPMSpec
79 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package mingw64-headers
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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: mingw64-headers
|
|
Version: 5.0.1
|
|
Release: 0
|
|
Summary: MinGW-w64 headers for Win32 and Win64
|
|
License: SUSE-Public-Domain
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://mingw-w64.sf.net/
|
|
|
|
#DL-URL: http://downloads.sf.net/mingw-w64/mingw-w64-%version.tar.bz2
|
|
Source: mingw-w64-headers-%version.tar.xz
|
|
Source1000: %name-rpmlintrc
|
|
Patch1: 0001-Add-missing-D3D_CS_-variables.patch
|
|
BuildRequires: mingw64-filesystem
|
|
BuildRequires: xz
|
|
#!BuildIgnore: post-build-checks
|
|
Requires: mingw64-unistd-pthread-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%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
|
|
Group: Development/Libraries/C and C++
|
|
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
|
|
%setup -q -n mingw-w64-headers
|
|
%patch1 -p2
|
|
|
|
%build
|
|
%{_mingw64_configure} \
|
|
--enable-sdk=all \
|
|
--enable-secure-api
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_mingw64_includedir}/
|
|
%exclude %{_mingw64_includedir}/pthread_*.h
|
|
|
|
%files dummy-pthread
|
|
%defattr(-,root,root)
|
|
%dir %{_mingw64_includedir}
|
|
%{_mingw64_includedir}/pthread_*.h
|
|
|
|
%changelog
|