1
0
mingw32-headers/mingw32-headers.spec

66 lines
1.4 KiB
RPMSpec

%define __os_install_post /usr/lib/rpm/brp-compress %{nil}
Name: mingw32-headers
Version: 1.0b.20100730
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
Source1000: %{name}-rpmlintrc
Patch0: mingw-w64-headers-1.0b.20100730-winsock.patch
Patch1: mingw-w64-headers-sigset_t.patch
Patch2: mingw-w64-headers-1.0b.20100730-uow.patch
Patch3: mingw-w64-headers-1.0b.20100730-c99.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-filesystem
%description
MinGW Win64 headers.
%prep
%setup -q -n mingw-w64-headers-%{version}
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p1
%build
./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
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_mingw32_target}/include
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %{_prefix}/%{_mingw32_target}
%{_mingw32_sysroot}
%changelog