|
|
|
@ -37,7 +37,7 @@ Distribution: OpenPKG [EVAL] |
|
|
|
Group: Development |
|
|
|
Group: Development |
|
|
|
License: Apache Software License |
|
|
|
License: Apache Software License |
|
|
|
Version: %{V_opkg} |
|
|
|
Version: %{V_opkg} |
|
|
|
Release: 20030418 |
|
|
|
Release: 20030709 |
|
|
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
# list of sources |
|
|
|
Source0: http://www.apache.org/dist/ant/binaries/apache-ant-%{V_real}-bin.tar.bz2 |
|
|
|
Source0: http://www.apache.org/dist/ant/binaries/apache-ant-%{V_real}-bin.tar.bz2 |
|
|
|
@ -48,7 +48,7 @@ Source2: rc.ant |
|
|
|
Prefix: %{l_prefix} |
|
|
|
Prefix: %{l_prefix} |
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20020206 |
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20020206 |
|
|
|
PreReq: OpenPKG, openpkg >= 20020206, JRE, perl, python |
|
|
|
PreReq: OpenPKG, openpkg >= 20020206, JRE |
|
|
|
AutoReq: no |
|
|
|
AutoReq: no |
|
|
|
AutoReqProv: no |
|
|
|
AutoReqProv: no |
|
|
|
|
|
|
|
|
|
|
|
@ -66,19 +66,6 @@ AutoReqProv: no |
|
|
|
# and egg problem. But in the end this doesn't hurt very much since we |
|
|
|
# and egg problem. But in the end this doesn't hurt very much since we |
|
|
|
# are talking about Java byte code and shell scripts which are portable |
|
|
|
# are talking about Java byte code and shell scripts which are portable |
|
|
|
# anyway. |
|
|
|
# anyway. |
|
|
|
( cd bin |
|
|
|
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
|
|
|
-e 's;^#!/usr/bin/perl;#!@l_prefix@/bin/perl;' \ |
|
|
|
|
|
|
|
antRun.pl complete-ant-cmd.pl runant.pl |
|
|
|
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
|
|
|
-e 's;^#!/usr/bin/python;#!@l_prefix@/bin/python;' \ |
|
|
|
|
|
|
|
runant.py |
|
|
|
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
|
|
|
-e 's;/etc/ant.conf;@l_prefix@/etc/ant/ant.conf;' \ |
|
|
|
|
|
|
|
ant |
|
|
|
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
|
|
|
-e 's;\r$;;' \ |
|
|
|
|
|
|
|
ant antRun antRun.pl complete-ant-cmd.pl runant.pl runant.py ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
%install |
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
@ -86,14 +73,15 @@ AutoReqProv: no |
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \ |
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \ |
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/ant \ |
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/ant \ |
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ |
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ |
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/lib |
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/ant |
|
|
|
for i in ant antRun antRun.pl complete-ant-cmd.pl runant.pl runant.py; do |
|
|
|
%{l_shtool} install -c -m 755 \ |
|
|
|
%{l_shtool} install -c -m 755 \ |
|
|
|
-e 's;/etc/ant.conf;@l_prefix@/etc/ant/ant.conf;' \ |
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \ |
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \ |
|
|
|
bin/$i $RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
|
|
-e 's;^\(ANT_LIB="\)[^"]*\("\);\1%{l_prefix}/libexec/ant\2;' \ |
|
|
|
done |
|
|
|
-e 's;\r$;;' \ |
|
|
|
|
|
|
|
bin/ant $RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
lib/*.jar $RPM_BUILD_ROOT%{l_prefix}/lib/ |
|
|
|
lib/*.jar $RPM_BUILD_ROOT%{l_prefix}/libexec/ant/ |
|
|
|
%{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \ |
|
|
|
%{l_shtool} install -c -m 644 -e 's;@l_prefix@;%{l_prefix};g' \ |
|
|
|
%{SOURCE ant.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/ant/ |
|
|
|
%{SOURCE ant.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/ant/ |
|
|
|
%{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \ |
|
|
|
%{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \ |
|
|
|
|