diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2012-10-16 22:48:40 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2012-10-16 22:48:40 -0500 |
commit | 65ade6902d1ced19ea0589310d5c6278b76cb55a (patch) | |
tree | 62cd981c1c8208a6841d0460fc355faa4c8a7405 /cygwin-w32api-headers.spec | |
download | cygwin-w32api-headers-65ade6902d1ced19ea0589310d5c6278b76cb55a.tar.gz cygwin-w32api-headers-65ade6902d1ced19ea0589310d5c6278b76cb55a.tar.xz cygwin-w32api-headers-65ade6902d1ced19ea0589310d5c6278b76cb55a.zip |
cygwin-w32api-headers 20121016
Diffstat (limited to 'cygwin-w32api-headers.spec')
-rw-r--r-- | cygwin-w32api-headers.spec | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/cygwin-w32api-headers.spec b/cygwin-w32api-headers.spec new file mode 100644 index 0000000..ddd2131 --- /dev/null +++ b/cygwin-w32api-headers.spec @@ -0,0 +1,60 @@ +%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 <cygwin-ports-general@lists.sourceforge.net> - 2.0.999-1.trunk.20121016 +- Replace mingw.org w32api with mingw-w64 to match Cygwin distribution. |