summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/cygwin/i686/w32api.add
blob: 84561c9119100548e46f0f9af981c7b255228c64 (plain) (blame)
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
%define w32api_version @W32API_VERS@
%define w32api_rpmvers %{expand:%(echo @W32API_VERS@ | tr - _)} 

Name:         @rpmprefix@@tool_target@-w32api
Release:      @W32API_RPMREL@
License:      GPL
Group:        Development/Tools

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

Version:      	%w32api_rpmvers
Summary:      	Cygwin w32api Libraries

Source0:	ftp://sources.redhat.com/pub/cygwin/release/w32api/w32api-%{w32api_version}.tar.bz2

%description
Cygwin w32api libraries.

%prep
%setup -c -q

%build
  rm -rf @tool_target@

  mkdir -p @tool_target@
  cp -a usr/lib usr/include @tool_target@

  # Setup sys-root (Usable for gcc >= 3.4)
  mkdir -p @tool_target@/sys-root
  %{__tar} cf - usr/lib usr/include | ( cd @tool_target@/sys-root ; %{__tar} xf -)

%install
  rm -rf $RPM_BUILD_ROOT
  mkdir -p $RPM_BUILD_ROOT%{_prefix}
  cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}