90 lines
2.4 KiB
RPMSpec
90 lines
2.4 KiB
RPMSpec
%global bundle_dummy_pthread_headers 0
|
|
|
|
Name: mingw-headers
|
|
Version: 6.0.0
|
|
Release: 5
|
|
Summary: Win32/Win64 header files
|
|
|
|
License: Public Domain and LGPLv2+ and ZPLv2.1
|
|
URL: http://mingw-w64.sourceforge.net/
|
|
Source0: http://downloads.sourceforge.net/mingw-w64/mingw-w64-v%{version}.tar.bz2
|
|
Patch0: mingw-headers-no-widl.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: mingw32-filesystem >= 95
|
|
BuildRequires: mingw64-filesystem >= 95
|
|
|
|
|
|
%description
|
|
MinGW Windows cross-compiler Win32 and Win64 header files.
|
|
|
|
|
|
%package -n mingw32-headers
|
|
Summary: MinGW Windows cross-compiler Win32 header files
|
|
Requires: mingw32-filesystem >= 95
|
|
%if 0%{bundle_dummy_pthread_headers} == 0
|
|
Requires: mingw32-winpthreads
|
|
%endif
|
|
|
|
Obsoletes: mingw32-w32api < 3.17-3
|
|
Provides: mingw32-w32api = 3.17-3
|
|
|
|
%description -n mingw32-headers
|
|
MinGW Windows cross-compiler Win32 header files.
|
|
|
|
%package -n mingw64-headers
|
|
Summary: MinGW Windows cross-compiler Win64 header files
|
|
Requires: mingw64-filesystem >= 95
|
|
%if 0%{bundle_dummy_pthread_headers} == 0
|
|
Requires: mingw64-winpthreads
|
|
%endif
|
|
|
|
%description -n mingw64-headers
|
|
MinGW Windows cross-compiler Win64 header files.
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n mingw-w64-v%{version}
|
|
|
|
|
|
%build
|
|
pushd mingw-w64-headers
|
|
%mingw_configure --enable-sdk=all --enable-secure-api
|
|
popd
|
|
|
|
|
|
%install
|
|
pushd mingw-w64-headers
|
|
%mingw_make_install DESTDIR=%{buildroot}
|
|
popd
|
|
|
|
%if 0%{?bundle_dummy_pthread_headers} == 0
|
|
rm -f %{buildroot}%{mingw32_includedir}/pthread_signal.h
|
|
rm -f %{buildroot}%{mingw32_includedir}/pthread_time.h
|
|
rm -f %{buildroot}%{mingw32_includedir}/pthread_unistd.h
|
|
rm -f %{buildroot}%{mingw64_includedir}/pthread_signal.h
|
|
rm -f %{buildroot}%{mingw64_includedir}/pthread_time.h
|
|
rm -f %{buildroot}%{mingw64_includedir}/pthread_unistd.h
|
|
%endif
|
|
|
|
|
|
%files -n mingw32-headers
|
|
%license COPYING DISCLAIMER DISCLAIMER.PD mingw-w64-headers/direct-x/COPYING.LIB
|
|
%{mingw32_includedir}/*
|
|
|
|
%files -n mingw64-headers
|
|
%license COPYING DISCLAIMER DISCLAIMER.PD mingw-w64-headers/direct-x/COPYING.LIB
|
|
%{mingw64_includedir}/*
|
|
|
|
|
|
%changelog
|
|
* Thu Nov 12 2020 Zhiyi Weng <zhiyi@iscas.ac.cn> - 6.0.0-5
|
|
- Set bundle_dummy_pthread_headers to 0
|
|
|
|
* Fri Oct 16 2020 Zhiyi Weng <zhiyi@iscas.ac.cn> - 6.0.0-4
|
|
- Set bundle_dummy_pthread_headers to 1
|
|
|
|
* Fri Oct 09 2020 Zhiyi Weng <zhiyi@iscas.ac.cn> - 6.0.0-3
|
|
- Initial version.
|