diff --git a/.cvsignore b/.cvsignore index 7a016a5..c42b3bf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1,2 @@ apache-ant-1.5.2-src.tar.bz2 -rhug-jakarta-ant-20031106.tar.bz2 +rhug-jakarta-ant-20031111.tar.bz2 diff --git a/ant.spec b/ant.spec index 9f28af2..f9023f7 100644 --- a/ant.spec +++ b/ant.spec @@ -1,11 +1,11 @@ -%define rhugversion 20031106 +%define rhugversion 20031111 %define rhugsource1 apache-%{name}-%{version} upstream %define rhugpatches 6 Summary: Build tool for Java applications Name: ant Version: 1.5.2 -Release: 21 +Release: 22 URL: http://ant.apache.org/ Source: rhug-jakarta-%{name}-%{rhugversion}.tar.bz2 Source1: apache-%{name}-%{version}-src.tar.bz2 @@ -97,14 +97,15 @@ done # HACK: These three files cause gcj-ssa to ICE on 64-bit boxes when # -O2 is used, so we build them separately with optimisation disabled. CC=gcc-ssa CXX=g++-ssa GCJ=gcj-ssa GCJH=gcjh-ssa GCJFLAGS="-g -O0" \ -./configure --disable-static --prefix=%{_prefix} +./configure --disable-static --prefix=%{_prefix} --libdir=%{_libdir} make upstream/src/main/org/apache/tools/ant/taskdefs/Checksum.lo \ upstream/src/main/org/apache/tools/ant/taskdefs/Expand.lo \ - upstream/src/main/org/apache/tools/ant/taskdefs/FixCRLF.lo + upstream/src/main/org/apache/tools/ant/taskdefs/FixCRLF.lo \ + upstream/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/bytecode/ClassPathLoader.lo # End of Hack %endif CC=gcc-ssa CXX=g++-ssa GCJ=gcj-ssa GCJH=gcjh-ssa \ -./configure --disable-static --prefix=%{_prefix} +./configure --disable-static --prefix=%{_prefix} --libdir=%{_libdir} make %install @@ -120,22 +121,37 @@ install -m 644 $RPM_SOURCE_DIR/ant.conf ${RPM_BUILD_ROOT}%{_sysconfdir} mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/ant/lib install -m 644 $RPM_SOURCE_DIR/README.anthome \ ${RPM_BUILD_ROOT}%{_datadir}/ant/README -ln -s ../../java/ant-%{version}.jar \ - ${RPM_BUILD_ROOT}%{_datadir}/ant/lib/ant.jar -for i in bcel commons-logging jakarta-regexp java_cup xalan xerces; do +for i in ant ant-optional; do + ln -s ../../java/$i-%{version}.jar \ + ${RPM_BUILD_ROOT}%{_datadir}/ant/lib/$i.jar +done +for i in activation bcel commons-logging jakarta-regexp \ + java_cup junit mail xalan xerces; do ln -s ../../java/`ls -l %{_datadir}/java/$i.jar | sed -e 's:.* -> ::'` \ ${RPM_BUILD_ROOT}%{_datadir}/ant/lib/$i.jar done %post -n ant-libs %{_sbindir}/javaconfig \ - %{_libdir}/lib-org-apache-tools.so \ - %{_datadir}/java/ant.jar + %{_libdir}/lib-org-apache-tools-ant.so \ + %{_libdir}/lib-org-apache-tools-ant-taskdefs-optional.so \ + %{_libdir}/lib-org-apache-tools-bzip2.so \ + %{_libdir}/lib-org-apache-tools-mail.so \ + %{_libdir}/lib-org-apache-tools-tar.so \ + %{_libdir}/lib-org-apache-tools-zip.so \ + %{_datadir}/java/ant.jar \ + %{_datadir}/java/ant-optional.jar %postun -n ant-libs %{_sbindir}/javaconfig \ - %{_libdir}/lib-org-apache-tools.so \ - %{_datadir}/java/ant.jar + %{_libdir}/lib-org-apache-tools-ant.so \ + %{_libdir}/lib-org-apache-tools-ant-taskdefs-optional.so \ + %{_libdir}/lib-org-apache-tools-bzip2.so \ + %{_libdir}/lib-org-apache-tools-mail.so \ + %{_libdir}/lib-org-apache-tools-tar.so \ + %{_libdir}/lib-org-apache-tools-zip.so \ + %{_datadir}/java/ant.jar \ + %{_datadir}/java/ant-optional.jar # Prior to 1.5.2-20, %{_bindir}/ant was a symbolic link managed by # javaconfig. This pair of trigger scripts stops older ant's %postun @@ -166,8 +182,12 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/org/apache/tools/* %changelog +* Tue Nov 11 2003 Gary Benson 1.5.2-22 +- Install links to JAF, JavaMail and JUnit jarfiles for classic-ant. +- Build all optional tasks that we are able to. + * Thu Nov 6 2003 Gary Benson 1.5.2-21 -- Enable use JavaMail in mail sending tasks. +- Enable JavaMail in mail sending tasks. - Enable the JUnit tasks. * Thu Sep 25 2003 Gary Benson 1.5.2-20 diff --git a/sources b/sources index bc127a7..f4c8024 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ 1989ee829001dba4e21a4efeff430167 apache-ant-1.5.2-src.tar.bz2 -caa1c44c8682ee1fb6c240b70de29de5 rhug-jakarta-ant-20031106.tar.bz2 +dbe61aeea6ed7feecbdf3d1493c8bb38 rhug-jakarta-ant-20031111.tar.bz2