summaryrefslogtreecommitdiffstats
path: root/cygwin-w32api-runtime.spec
blob: 0cc0a37ec96784c175e92081cd83374e8b2a2514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
%define __strip %{_cygwin_strip}
%define __objdump %{_cygwin_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_cygwin_findrequires}
%define __find_provides %{_cygwin_findprovides}

%global snapshot_date 20121215
%global branch trunk

Name:           cygwin-w32api-runtime
Version:        2.0.999
Release:        0.13.%{branch}.%{snapshot_date}
Summary:        Windows API libraries for Cygwin toolchain

License:        Public Domain 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
BuildRequires:  cygwin-binutils
BuildRequires:  cygwin-w32api-headers >= %{version}-%{release}
BuildRequires:  cygwin-gcc

Requires:       cygwin-filesystem
Requires:       cygwin-w32api-headers >= %{version}-%{release}

Obsoletes:      cygwin-w32api < 3.17-4
Obsoletes:      cygwin-w32api-libs
Provides:       cygwin-w32api = 3.17-4
Provides:       cygwin-w32api-libs = %{version}-%{release}

%description
MinGW Windows cross-compiler runtime, base libraries.


%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-crt
    %_cygwin_configure --enable-w32api --disable-lib64
    make %{?_smp_mflags}
popd


%install
pushd mingw-w64-crt
    make install DESTDIR=$RPM_BUILD_ROOT
popd

# Dunno what to do with these files
rm -rf $RPM_BUILD_ROOT%{_cygwin_includedir}/w32api/*.c


%files
%doc COPYING DISCLAIMER DISCLAIMER.PD
%{_cygwin_libdir}/w32api/


%changelog
* Tue Oct 16 2012 Yaakov Selkowitz <cygwin-ports-general@lists.sourceforge.net> - 2.0.999-1.trunk.20121215
- Change name and update to match current Cygwin package.

* 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.