summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/cygwin/i686/libs.add
blob: 3db0d208fa78bc63552f5a5ed7c03ed692a74a96 (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
%define cygwin_version @CYGWIN_VERS@
%define cygwin_rpmvers %{expand:%(echo @CYGWIN_VERS@ | tr - _)} 

Name:         @rpmprefix@@tool_target@
Release:      @CYGWIN_RPMREL@
License:      GPL
Group:        Development/Tools

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

Version:      	%cygwin_rpmvers
Summary:      	@tool_target@ libraries

Source0:	ftp://cygwin.com/pub/cygwin/release/cygwin/cygwin-%{cygwin_version}.tar.bz2

%description
@tool_target@ libraries.

%prep
%setup -c -q

%build
  rm -rf @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}