summaryrefslogtreecommitdiffstats
path: root/contrib/crossrpms/mingw32/i686/libs.add
blob: d916dae268d6b5693d2f8618541e61750ee3645e (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
%define mingw32_version @MINGW32_VERS@
%define mingw32_rpmvers %{expand:%(echo @MINGW32_VERS@ | tr - _)} 

Name:         @rpmprefix@@tool_target@
Release:      @MINGW32_RPMREL@%{?dist}
License:      GPL
Group:        Development/Tools

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

Version:      	%mingw32_rpmvers
Summary:      	MinGW Libraries

Source0:	http://downloads.sourceforge.net/mingw/mingw-runtime-%{mingw32_version}.tar.gz
%{?_without_sources:NoSource:	0}

%description
Mingw libraries.

%prep
%setup -c -q

%build
  rm -rf @tool_target@

  # Setup sys-root (Usable for gcc >= 3.4)
  mkdir -p @tool_target@/sys-root/mingw
  cp -a include lib @tool_target@/sys-root/mingw

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