4.104.114.95
Line | |
---|
1 | %define libncurses_devel_version @NCURSES_VERS@ |
---|
2 | %define libncurses_devel_rpmvers %{expand:%(echo @NCURSES_VERS@ | tr - _)} |
---|
3 | |
---|
4 | Name: @rpmprefix@@tool_target@-libncurses-devel |
---|
5 | Release: @NCURSES_RPMREL@ |
---|
6 | License: GPL |
---|
7 | Group: Development/Tools |
---|
8 | |
---|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
10 | BuildArch: noarch |
---|
11 | |
---|
12 | Version: %libncurses_devel_rpmvers |
---|
13 | Summary: Cygwin libncurses_devel Libraries |
---|
14 | |
---|
15 | Source0: ftp://cygwin.com/pub/cygwin/release/ncurses/libncurses-devel/libncurses-devel-%{libncurses_devel_version}.tar.bz2 |
---|
16 | %{?_without_sources:NoSource: 0} |
---|
17 | |
---|
18 | %description |
---|
19 | Cygwin 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.