Fridrich Strba 2009-10-21 21:59:26 +00:00 committed by Git OBS Bridge
parent 90630a46c8
commit 419d360875
4 changed files with 15 additions and 13 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f57b8cf6734b55518e10de8bdaee86e0ec299d8d0b69e13a8da3399ed4376aa5
size 2933750

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bd7a3f8a944ddde498b74726f9c88ee9a014446acf9de0f4d4c8f125aea542ce
size 2970702

View File

@ -1,7 +1,7 @@
%define __os_install_post /usr/lib/rpm/brp-compress %{nil}
Name: mingw32-headers
Version: 0.0.20090827.2
Version: 1.0b
Release: 0
Summary: MinGW-W64 headers for win32 and win64
@ -24,23 +24,25 @@ MinGW Win64 headers.
%prep
%setup -q -c
%setup -q -n mingw-w64-headers-%{version}
%build
rm -rf %{_mingw32_target}
# Setup sys-root.
mkdir -p %{_mingw32_target}/sys-root/mingw
cp -a mingw-w64-headers/include %{_mingw32_target}/sys-root/mingw
cp -a mingw-w64-headers/direct-x/include/* %{_mingw32_target}/sys-root/mingw/include/
./configure --host=%{_mingw32_target} \
--prefix=%{_prefix} \
--with-sdk=all
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}
mkdir -p $RPM_BUILD_ROOT%{_mingw32_includedir}
ln -s $RPM_BUILD_ROOT%{_mingw32_includedir} \
$RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}/include
mkdir -p $RPM_BUILD_ROOT%{_prefix}
cp -a %{_mingw32_target} $RPM_BUILD_ROOT%{_prefix}
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}/include
%clean
rm -rf $RPM_BUILD_ROOT