2
0
mingw32-headers/mingw32-headers.spec

56 lines
1.1 KiB
RPMSpec
Raw Normal View History

%define __os_install_post /usr/lib/rpm/brp-compress %{nil}
Name: mingw32-headers
Version: 0.0.20090827.2
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}-%{version}-rpmlintrc
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 -c
%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/
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_prefix}
cp -a %{_mingw32_target} $RPM_BUILD_ROOT%{_prefix}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %{_prefix}/%{_mingw32_target}
%{_mingw32_sysroot}
%changelog