%{?cygwin_package_header} %global snapshot_rev 5747 %global branch trunk Name: cygwin-w32api-runtime Version: 2.0.999 Release: 0.15.%{branch}.svn%{snapshot_rev} Summary: Windows API libraries for Cygwin toolchain License: Public Domain and ZPLv2.1 Group: Development/Libraries URL: http://mingw-w64.sourceforge.net/ BuildArch: noarch # To regenerate a snapshot: # wget http://sourceforge.net/code-snapshots/svn/m/mi/mingw-w64/code/mingw-w64-code-%{snapshot_rev}-%{branch}.zip Source0: mingw-w64-code-%{snapshot_rev}-%{branch}.zip Patch0: w32api-lib64dir.patch BuildRequires: cygwin32-filesystem BuildRequires: cygwin32-binutils BuildRequires: cygwin32-w32api-headers >= %{version}-%{release} BuildRequires: cygwin32-gcc BuildRequires: cygwin64-filesystem BuildRequires: cygwin64-binutils BuildRequires: cygwin64-w32api-headers >= %{version}-%{release} BuildRequires: cygwin64-gcc %description Windows cross-compiler runtime base libraries for Cygwin toolchain. %package -n cygwin32-w32api-runtime Summary: Windows API libraries for Cygwin32 toolchain Requires: cygwin32-filesystem Requires: cygwin32-w32api-headers >= %{version}-%{release} Obsoletes: cygwin-w32api < 3.17-4 Obsoletes: cygwin-w32api-libs Obsoletes: cygwin-w32api-runtime < %{version}-%{release} Provides: cygwin-w32api = 3.17-4 Provides: cygwin-w32api-libs = %{version}-%{release} Provides: cygwin-w32api-runtime < %{version}-%{release} %description -n cygwin32-w32api-runtime Windows cross-compiler runtime base libraries for Cygwin32 toolchain. %package -n cygwin64-w32api-runtime Summary: Windows API libraries for Cygwin64 toolchain Requires: cygwin64-filesystem Requires: cygwin64-w32api-headers >= %{version}-%{release} %description -n cygwin64-w32api-runtime Windows cross-compiler runtime base libraries for Cygwin64 toolchain. %prep %setup -q -n mingw-w64-code-%{snapshot_rev}-%{branch} %patch0 -p1 %build pushd mingw-w64-crt CYGWIN32_CONFIGURE_ARGS="--disable-lib64" CYGWIN64_CONFIGURE_ARGS="--disable-lib32" %cygwin_configure --enable-w32api %cygwin_make %{?_smp_mflags} popd %install pushd mingw-w64-crt %cygwin_make_install DESTDIR=$RPM_BUILD_ROOT popd # Dunno what to do with these files rm -fr $RPM_BUILD_ROOT%{cygwin32_includedir}/w32api/*.c rm -fr $RPM_BUILD_ROOT%{cygwin64_includedir}/w32api/*.c %files -n cygwin32-w32api-runtime %doc COPYING DISCLAIMER DISCLAIMER.PD %{cygwin32_libdir}/w32api/ %files -n cygwin64-w32api-runtime %doc COPYING DISCLAIMER DISCLAIMER.PD %{cygwin64_libdir}/w32api/ %changelog * Thu Jun 27 2013 Yaakov Selkowitz - 2.0.999-0.15.trunk.r5747 - Update to SVN trunk. - Update to new Cygwin packaging scheme. * Tue Oct 16 2012 Yaakov Selkowitz - 2.0.999-0.13.trunk.20121215 - Change name and update to match current Cygwin package. * Tue Oct 16 2012 Yaakov Selkowitz - 2.0.999-0.13.trunk.20121016 - Replace mingw.org w32api with mingw-w64 to match Cygwin distribution.