|
|
|
|
@ -22,9 +22,9 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package versions |
|
|
|
|
%define V_here 20081104 |
|
|
|
|
%define V_init 2008-11-04 |
|
|
|
|
%define V_base 2008-11-04 |
|
|
|
|
%define V_here 20100202 |
|
|
|
|
%define V_init 2010-02-02 |
|
|
|
|
%define V_base 2010-02-02 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: tw |
|
|
|
|
@ -37,7 +37,7 @@ Class: EVAL
|
|
|
|
|
Group: ShellUtils |
|
|
|
|
License: CPL |
|
|
|
|
Version: %{V_here} |
|
|
|
|
Release: 20081109 |
|
|
|
|
Release: 20100209 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://I%20accept%20www.opensource.org%2flicenses%2fcpl:.@www.research.att.com/~gsf/download/tgz/ast-base.%{V_base}.tgz |
|
|
|
|
@ -73,21 +73,16 @@ AutoReqProv: no
|
|
|
|
|
%setup -q -T -D -a 1 |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
HOME=`pwd`; export HOME |
|
|
|
|
SHELL=/bin/sh; export SHELL |
|
|
|
|
makeskip="3d|bzip|codexlib|coshell|cpp|cs|html|ksh93|mam|msgcc|pax|probe|proto|ss|tests" |
|
|
|
|
$SHELL -c './bin/package "read" || true' |
|
|
|
|
$SHELL -c './bin/package "make" CC="%{l_cc}" LDFLAGS="-static" MAKESKIP="$makeskip" || true' |
|
|
|
|
$SHELL -c './bin/package "make" CC="%{l_cc}"' |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/man1 |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin |
|
|
|
|
%{l_shtool} install -c -s -m 755 \ |
|
|
|
|
arch/*/bin/tw $RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|
arch/*/man/man1/tw.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ |
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
|
|
|
|
|
|
%files -f files |
|
|
|
|
|