source: rtems/contrib/crossrpms/cygwin/i686/libncurses-devel.add @ 229f500

4.104.114.95
Last change on this file since 229f500 was d06b28e, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/14/08 at 16:05:12

Fix typo.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1%define libncurses_devel_version @NCURSES_VERS@
2%define libncurses_devel_rpmvers %{expand:%(echo @NCURSES_VERS@ | tr - _)}
3
4Name:         @rpmprefix@@tool_target@-libncurses-devel
5Release:      @NCURSES_RPMREL@
6License:      GPL
7Group:        Development/Tools
8
9BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10BuildArch:      noarch
11
12Version:        %libncurses_devel_rpmvers
13Summary:        Cygwin libncurses_devel Libraries
14
15Source0:        ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses-devel/libncurses-devel-%{libncurses_devel_version}.tar.bz2
16%{?_without_sources:NoSource:   0}
17
18%description
19Cygwin libncurses-devel libraries.
20
21%prep
22%setup -c -q
23
24%build
25  rm -rf @tool_target@
26
27  # Setup sys-root (Usable for gcc >= 3.4)
28  mkdir -p @tool_target@/sys-root
29  ( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
30
31  sed -e 's,^prefix=\(.*\)$,prefix=$RPM_BUILD_ROOT%{_prefix}/@tool_target@/sys-root\1,' \
32    < etc/postinstall/libncurses-devel.sh \
33    > etc/postinstall/libncurses-devel.sh~
34  mv etc/postinstall/libncurses-devel.sh~ etc/postinstall/libncurses-devel.sh
35  chmod +x etc/postinstall/libncurses-devel.sh
36
37%install
38  rm -rf $RPM_BUILD_ROOT
39  mkdir -p $RPM_BUILD_ROOT%{_prefix}
40  cp -a @tool_target@ $RPM_BUILD_ROOT%{_prefix}
41  ./etc/postinstall/libncurses-devel.sh
42
43
Note: See TracBrowser for help on using the repository browser.