%global snapshot_date 20121016 %global branch trunk Name: cygwin-w32api-headers Version: 2.0.999 Release: 1.%{branch}.%{snapshot_date} Summary: Win32 header files for Cygwin toolchain License: Public Domain and LGPLv2+ and ZPLv2.1 Group: Development/Libraries URL: http://mingw-w64.sourceforge.net/ BuildArch: noarch %if 0%{?snapshot_date} # To regerenate a snapshot: # wget http://mingw-w64.svn.sourceforge.net/viewvc/mingw-w64/%{branch}/?view=tar -O mingw-w64-%{branch}-snapshot-$(date '+%Y%m%d').tar.gz Source0: mingw-w64-%{branch}-snapshot-%{snapshot_date}.tar.gz %else Source0: http://downloads.sourceforge.net/mingw-w64/mingw-w64-v%{version}.tar.gz %endif BuildRequires: cygwin-filesystem %description Cygwin cross-compiler Win32 header files. %prep %if 0%{?snapshot_date} rm -rf mingw-w64-v%{version} mkdir mingw-w64-v%{version} cd mingw-w64-v%{version} tar -xf %{S:0} %setup -q -D -T -n mingw-w64-v%{version}/%{branch} %else %setup -q -n mingw-w64-v%{version} %endif %build pushd mingw-w64-headers %_cygwin_configure --enable-w32api popd %install pushd mingw-w64-headers make install DESTDIR=$RPM_BUILD_ROOT popd %files %doc COPYING DISCLAIMER DISCLAIMER.PD mingw-w64-headers/direct-x/COPYING.LIB %{_cygwin_includedir}/w32api/* %changelog * Tue Oct 16 2012 Yaakov Selkowitz - 2.0.999-1.trunk.20121016 - Replace mingw.org w32api with mingw-w64 to match Cygwin distribution.