diff --git a/mingw-w64-headers-0.0.20090827.2.tar.bz2 b/mingw-w64-headers-0.0.20090827.2.tar.bz2 deleted file mode 100644 index e5fb0e1..0000000 --- a/mingw-w64-headers-0.0.20090827.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f57b8cf6734b55518e10de8bdaee86e0ec299d8d0b69e13a8da3399ed4376aa5 -size 2933750 diff --git a/mingw-w64-headers-1.0b.tar.bz2 b/mingw-w64-headers-1.0b.tar.bz2 new file mode 100644 index 0000000..3f1de35 --- /dev/null +++ b/mingw-w64-headers-1.0b.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd7a3f8a944ddde498b74726f9c88ee9a014446acf9de0f4d4c8f125aea542ce +size 2970702 diff --git a/mingw32-headers-0.0.20090827.2-rpmlintrc b/mingw32-headers-1.0b-rpmlintrc similarity index 100% rename from mingw32-headers-0.0.20090827.2-rpmlintrc rename to mingw32-headers-1.0b-rpmlintrc diff --git a/mingw32-headers.spec b/mingw32-headers.spec index b187ab6..e683c9e 100644 --- a/mingw32-headers.spec +++ b/mingw32-headers.spec @@ -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