source: rtems/contrib/crossrpms/cygwin/i686/zlib.add @ 9799af0

4.104.115
Last change on this file since 9799af0 was 9799af0, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/19/10 at 11:44:47

Provide *-zlib-devel.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1%define zlib_version @ZLIB_VERS@
2%define zlib_rpmvers %{expand:%(echo @ZLIB_VERS@ | tr - _)}
3
4Name:         @rpmprefix@@tool_target@-zlib
5Release:      @ZLIB_RPMREL@
6License:      GPL
7Group:        Development/Tools
8
9BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10BuildArch:      noarch
11
12Version:        %zlib_rpmvers
13Summary:        Cygwin zlib Libraries
14
15Source0:        ftp://cygwin.com/pub/cygwin/release/zlib/zlib-%{zlib_version}.tar.bz2
16Source1:        ftp://cygwin.com/pub/cygwin/release/zlib/zlib-devel/zlib-devel-%{zlib_version}.tar.bz2
17Source2:        ftp://cygwin.com/pub/cygwin/release/zlib/zlib0/zlib0-%{zlib_version}.tar.bz2
18%{?_without_sources:NoSource:   0}
19%{?_without_sources:NoSource:   1}
20%{?_without_sources:NoSource:   2}
21
22Provides:       @rpmprefix@@tool_target@-zlib-devel = %{version}-%{release}
23
24%description
25Cygwin zlib libraries.
26
27%prep
28%setup -c -q
29
30%build
31  rm -rf @tool_target@
32
33  # Setup sys-root (Usable for gcc >= 3.4)
34  mkdir -p @tool_target@/sys-root
35  ( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
36  ( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE1})
37  ( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE2})
38
39%install
40  rm -rf $RPM_BUILD_ROOT
41  mkdir -p $RPM_BUILD_ROOT%{_prefix}
42  cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
43
44
Note: See TracBrowser for help on using the repository browser.