This commit is contained in:
parent
90630a46c8
commit
419d360875
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f57b8cf6734b55518e10de8bdaee86e0ec299d8d0b69e13a8da3399ed4376aa5
|
||||
size 2933750
|
3
mingw-w64-headers-1.0b.tar.bz2
Normal file
3
mingw-w64-headers-1.0b.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bd7a3f8a944ddde498b74726f9c88ee9a014446acf9de0f4d4c8f125aea542ce
|
||||
size 2970702
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user