2009-08-31 10:24:52 +02:00
|
|
|
%define __os_install_post /usr/lib/rpm/brp-compress %{nil}
|
|
|
|
|
|
|
|
Name: mingw32-headers
|
2010-09-06 09:14:09 +02:00
|
|
|
Version: 1.0b.20100818
|
2009-08-31 10:24:52 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: MinGW-W64 headers for win32 and win64
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: Public Domain
|
|
|
|
URL: http://www.mingw.org/
|
|
|
|
|
|
|
|
Source0: mingw-w64-headers-%{version}.tar.bz2
|
2010-08-10 23:21:47 +02:00
|
|
|
Source1000: %{name}-rpmlintrc
|
2010-09-06 09:14:09 +02:00
|
|
|
Patch0: mingw-w64-headers-1.0b.20100818-uow.patch
|
2010-09-07 13:50:18 +02:00
|
|
|
Patch0: mingw-w64-headers-1.0b.20100818-namelessunion.patch
|
2009-08-31 10:24:52 +02:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
#!BuildIgnore: post-build-checks
|
|
|
|
|
|
|
|
BuildRequires: mingw32-filesystem
|
|
|
|
|
|
|
|
%description
|
|
|
|
MinGW Win64 headers.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2009-10-21 23:59:26 +02:00
|
|
|
%setup -q -n mingw-w64-headers-%{version}
|
2010-08-11 06:09:10 +02:00
|
|
|
%patch0 -p1
|
2010-09-07 13:50:18 +02:00
|
|
|
%patch1 -p0
|
2009-08-31 10:24:52 +02:00
|
|
|
|
|
|
|
%build
|
2009-10-21 23:59:26 +02:00
|
|
|
./configure --host=%{_mingw32_target} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--with-sdk=all
|
2009-08-31 10:24:52 +02:00
|
|
|
|
2009-10-21 23:59:26 +02:00
|
|
|
make
|
2009-08-31 10:24:52 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2009-10-21 23:59:26 +02:00
|
|
|
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
|
2009-08-31 10:24:52 +02:00
|
|
|
|
2009-10-21 23:59:26 +02:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2009-08-31 10:24:52 +02:00
|
|
|
|
2009-10-21 23:59:26 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}/include
|
2009-08-31 10:24:52 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_prefix}/%{_mingw32_target}
|
|
|
|
%{_mingw32_sysroot}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|