|
cvsdist |
314c7d |
%define rhugversion 20031111
|
|
cvsdist |
74679c |
%define rhugsource1 apache-%{name}-%{version} upstream
|
|
cvsdist |
74679c |
%define rhugpatches 6
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
Summary: Build tool for Java applications
|
|
cvsdist |
74679c |
Name: ant
|
|
cvsdist |
74679c |
Version: 1.5.2
|
|
cvsdist |
d103cf |
Release: 23
|
|
cvsdist |
74679c |
URL: http://ant.apache.org/
|
|
cvsdist |
74679c |
Source: rhug-jakarta-%{name}-%{rhugversion}.tar.bz2
|
|
cvsdist |
74679c |
Source1: apache-%{name}-%{version}-src.tar.bz2
|
|
cvsdist |
74679c |
Source2: ant.conf
|
|
cvsdist |
74679c |
Source3: README.anthome
|
|
cvsdist |
74679c |
Patch1: %{name}-1.5.2-release.patch
|
|
cvsdist |
74679c |
Patch2: %{name}-1.5.2-buildclasspath.patch
|
|
cvsdist |
74679c |
Patch3: %{name}-1.5.2-jarname.patch
|
|
cvsdist |
74679c |
Patch5: %{name}-1.5.2-hammer.patch
|
|
cvsdist |
74679c |
Patch6: %{name}-1.5.2-interpreter.patch
|
|
cvsdist |
74679c |
Patch7: %{name}-1.5.2-bz104986.patch
|
|
cvsdist |
6ef383 |
Patch8: %{name}-1.5.2-gcj-ssa.patch
|
|
cvsdist |
74679c |
License: Apache Software License
|
|
cvsdist |
74679c |
Group: Development/Tools
|
|
cvsdist |
74679c |
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
cvsdist |
74679c |
BuildPrereq: gcc-c++-ssa
|
|
cvsdist |
74679c |
BuildPrereq: gcc-java-ssa >= 3.5ssa-0.20030801.34
|
|
cvsdist |
74679c |
BuildPrereq: xerces-j >= 2.2.1-10
|
|
cvsdist |
74679c |
BuildPrereq: commons-logging >= 1.0.2-12
|
|
cvsdist |
74679c |
BuildPrereq: jakarta-regexp >= 1.2-12
|
|
cvsdist |
74679c |
BuildPrereq: xalan-j >= 2.4.1-9
|
|
cvsdist |
74679c |
BuildPrereq: bcel >= 5.0-10
|
|
cvsdist |
6ef383 |
BuildPrereq: jaf
|
|
cvsdist |
6ef383 |
BuildPrereq: javamail
|
|
cvsdist |
6ef383 |
BuildPrereq: junit
|
|
cvsdist |
74679c |
Requires: gcc-java-ssa >= 3.5ssa-0.20030801.34
|
|
cvsdist |
74679c |
Requires: xerces-j >= 2.2.1-10
|
|
cvsdist |
74679c |
Requires: commons-logging >= 1.0.2-12
|
|
cvsdist |
74679c |
Requires: jakarta-regexp >= 1.2-12
|
|
cvsdist |
74679c |
Requires: xalan-j >= 2.4.1-9
|
|
cvsdist |
74679c |
Requires: bcel >= 5.0-10
|
|
cvsdist |
6ef383 |
Requires: jaf
|
|
cvsdist |
6ef383 |
Requires: javamail
|
|
cvsdist |
6ef383 |
Requires: junit
|
|
cvsdist |
74679c |
Requires: ant-libs = %{version}-%{release}
|
|
cvsdist |
74679c |
ExclusiveArch: i386 x86_64 ppc ia64
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%description
|
|
cvsdist |
74679c |
Ant is a platform-independant build tool for Java applications that is
|
|
cvsdist |
74679c |
used by Apache Jakarta and XML projects.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%package libs
|
|
cvsdist |
74679c |
Summary: The shared libraries used by Ant.
|
|
cvsdist |
74679c |
Group: System Environment/Libraries
|
|
cvsdist |
74679c |
Prereq: redhat-java-rpm-scripts >= 1.0.2-2
|
|
cvsdist |
74679c |
Requires: libgcj-ssa >= 3.5ssa-0.20030801.34
|
|
cvsdist |
74679c |
Requires: xerces-j >= 2.2.1-10
|
|
cvsdist |
74679c |
Requires: commons-logging >= 1.0.2-12
|
|
cvsdist |
74679c |
Requires: jakarta-regexp >= 1.2-12
|
|
cvsdist |
74679c |
Requires: xalan-j >= 2.4.1-9
|
|
cvsdist |
74679c |
Requires: bcel >= 5.0-10
|
|
cvsdist |
6ef383 |
Requires: jaf
|
|
cvsdist |
6ef383 |
Requires: javamail
|
|
cvsdist |
6ef383 |
Requires: junit
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%description libs
|
|
cvsdist |
74679c |
The ant-libs package contains the libraries required by Ant.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%package devel
|
|
cvsdist |
74679c |
Summary: CNI headers for developing Ant applications
|
|
cvsdist |
74679c |
Group: Development/Libraries
|
|
cvsdist |
74679c |
Requires: ant-libs = %{version}-%{release}
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%description devel
|
|
cvsdist |
74679c |
The ant-devel package contains the headers required to develop
|
|
cvsdist |
74679c |
Cygnus Native Interface (CNI) extensions that use Ant.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%prep
|
|
cvsdist |
74679c |
%setup -q -a 1
|
|
cvsdist |
74679c |
mv %{rhugsource1}
|
|
cvsdist |
74679c |
%patch1 -p0 -b .release
|
|
cvsdist |
74679c |
%patch2 -p0 -b .buildclasspath
|
|
cvsdist |
74679c |
%patch3 -p0 -b .jarname
|
|
cvsdist |
74679c |
%patch5 -p0 -b .hammer
|
|
cvsdist |
74679c |
%patch6 -p1 -b .interpreter
|
|
cvsdist |
74679c |
%patch7 -p0 -b .bz104986
|
|
cvsdist |
6ef383 |
%patch8 -p0 -b .gcj-ssa
|
|
cvsdist |
74679c |
mv ChangeLog ChangeLog.rhug
|
|
cvsdist |
74679c |
mv TODO TODO.rhug
|
|
cvsdist |
74679c |
for f in version.txt defaultManifest.mf; do
|
|
cvsdist |
74679c |
f=upstream/src/main/org/apache/tools/ant/$f
|
|
cvsdist |
74679c |
sed -e "s:@VERSION@:%{version}-%{release}:g"\
|
|
cvsdist |
74679c |
-e "s:@DATE@:`date '+%B %e %Y'`:g" \
|
|
cvsdist |
74679c |
< $f > $f.tmp && mv -f $f.tmp $f
|
|
cvsdist |
74679c |
done
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%build
|
|
cvsdist |
74679c |
%ifarch x86_64 ia64
|
|
cvsdist |
74679c |
# HACK: These three files cause gcj-ssa to ICE on 64-bit boxes when
|
|
cvsdist |
74679c |
# -O2 is used, so we build them separately with optimisation disabled.
|
|
cvsdist |
74679c |
CC=gcc-ssa CXX=g++-ssa GCJ=gcj-ssa GCJH=gcjh-ssa GCJFLAGS="-g -O0" \
|
|
cvsdist |
314c7d |
./configure --disable-static --prefix=%{_prefix} --libdir=%{_libdir}
|
|
cvsdist |
74679c |
make upstream/src/main/org/apache/tools/ant/taskdefs/Checksum.lo \
|
|
cvsdist |
74679c |
upstream/src/main/org/apache/tools/ant/taskdefs/Expand.lo \
|
|
cvsdist |
314c7d |
upstream/src/main/org/apache/tools/ant/taskdefs/FixCRLF.lo \
|
|
cvsdist |
314c7d |
upstream/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/bytecode/ClassPathLoader.lo
|
|
cvsdist |
74679c |
# End of Hack
|
|
cvsdist |
74679c |
%endif
|
|
cvsdist |
74679c |
CC=gcc-ssa CXX=g++-ssa GCJ=gcj-ssa GCJH=gcjh-ssa \
|
|
cvsdist |
314c7d |
./configure --disable-static --prefix=%{_prefix} --libdir=%{_libdir}
|
|
cvsdist |
74679c |
make
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%install
|
|
cvsdist |
74679c |
rm -rf ${RPM_BUILD_ROOT}
|
|
cvsdist |
74679c |
%makeinstall
|
|
cvsdist |
74679c |
rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
|
cvsdist |
6ef383 |
find ${RPM_BUILD_ROOT}%{_libdir} -type l | xargs rm -f
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
# Install stuff for classic-ant
|
|
cvsdist |
74679c |
install -m 755 upstream/src/script/ant ${RPM_BUILD_ROOT}%{_bindir}/classic-ant
|
|
cvsdist |
74679c |
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}
|
|
cvsdist |
74679c |
install -m 644 $RPM_SOURCE_DIR/ant.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
|
|
cvsdist |
74679c |
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/ant/lib
|
|
cvsdist |
74679c |
install -m 644 $RPM_SOURCE_DIR/README.anthome \
|
|
cvsdist |
74679c |
${RPM_BUILD_ROOT}%{_datadir}/ant/README
|
|
cvsdist |
314c7d |
for i in ant ant-optional; do
|
|
cvsdist |
314c7d |
ln -s ../../java/$i-%{version}.jar \
|
|
cvsdist |
314c7d |
${RPM_BUILD_ROOT}%{_datadir}/ant/lib/$i.jar
|
|
cvsdist |
314c7d |
done
|
|
cvsdist |
314c7d |
for i in activation bcel commons-logging jakarta-regexp \
|
|
cvsdist |
314c7d |
java_cup junit mail xalan xerces; do
|
|
cvsdist |
74679c |
ln -s ../../java/`ls -l %{_datadir}/java/$i.jar | sed -e 's:.* -> ::'` \
|
|
cvsdist |
74679c |
${RPM_BUILD_ROOT}%{_datadir}/ant/lib/$i.jar
|
|
cvsdist |
74679c |
done
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%post -n ant-libs
|
|
cvsdist |
74679c |
%{_sbindir}/javaconfig \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-ant.so \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-ant-taskdefs-optional.so \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-bzip2.so \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-mail.so \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-tar.so \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-zip.so \
|
|
cvsdist |
314c7d |
%{_datadir}/java/ant.jar \
|
|
cvsdist |
314c7d |
%{_datadir}/java/ant-optional.jar
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%postun -n ant-libs
|
|
cvsdist |
74679c |
%{_sbindir}/javaconfig \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-ant.so \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-ant-taskdefs-optional.so \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-bzip2.so \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-mail.so \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-tar.so \
|
|
cvsdist |
314c7d |
%{_libdir}/lib-org-apache-tools-zip.so \
|
|
cvsdist |
314c7d |
%{_datadir}/java/ant.jar \
|
|
cvsdist |
314c7d |
%{_datadir}/java/ant-optional.jar
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
# Prior to 1.5.2-20, %{_bindir}/ant was a symbolic link managed by
|
|
cvsdist |
74679c |
# javaconfig. This pair of trigger scripts stops older ant's %postun
|
|
cvsdist |
74679c |
# scripts from choking on the new non-symbolic-link binary.
|
|
cvsdist |
74679c |
%triggerun -- ant < 1.5.2-20
|
|
cvsdist |
74679c |
mv -f %{_bindir}/ant %{_bindir}/ant.tmp
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%triggerpostun -- ant < 1.5.2-20
|
|
cvsdist |
74679c |
mv -f %{_bindir}/ant.tmp %{_bindir}/ant
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%clean
|
|
cvsdist |
74679c |
rm -rf $RPM_BUILD_ROOT
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%files
|
|
cvsdist |
74679c |
%defattr(-,root,root)
|
|
cvsdist |
74679c |
%doc *.rhug upstream/{LICENSE,README,WHATSNEW,welcome.html,docs}
|
|
cvsdist |
74679c |
%config(noreplace) %{_sysconfdir}/ant.conf
|
|
cvsdist |
74679c |
%{_bindir}/*
|
|
cvsdist |
74679c |
%{_datadir}/ant
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%files libs
|
|
cvsdist |
74679c |
%defattr(-,root,root)
|
|
cvsdist |
74679c |
%{_libdir}/*.so
|
|
cvsdist |
74679c |
%{_datadir}/java/*.jar
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%files devel
|
|
cvsdist |
74679c |
%defattr(-,root,root)
|
|
cvsdist |
74679c |
%{_includedir}/org/apache/tools/*
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
%changelog
|
|
cvsdist |
d103cf |
* Wed Nov 12 2003 Gary Benson <gbenson@redhat.com> 1.5.2-23
|
|
cvsdist |
d103cf |
- Rebuild to fix linking on hammer.
|
|
cvsdist |
d103cf |
|
|
cvsdist |
314c7d |
* Tue Nov 11 2003 Gary Benson <gbenson@redhat.com> 1.5.2-22
|
|
cvsdist |
314c7d |
- Install links to JAF, JavaMail and JUnit jarfiles for classic-ant.
|
|
cvsdist |
314c7d |
- Build all optional tasks that we are able to.
|
|
cvsdist |
314c7d |
|
|
cvsdist |
6ef383 |
* Thu Nov 6 2003 Gary Benson <gbenson@redhat.com> 1.5.2-21
|
|
cvsdist |
314c7d |
- Enable JavaMail in mail sending tasks.
|
|
cvsdist |
6ef383 |
- Enable the JUnit tasks.
|
|
cvsdist |
6ef383 |
|
|
cvsdist |
74679c |
* Thu Sep 25 2003 Gary Benson <gbenson@redhat.com> 1.5.2-20
|
|
cvsdist |
74679c |
- Fix bad bytecode in jarfile (#104986).
|
|
cvsdist |
74679c |
- Change group to Development/Tools.
|
|
cvsdist |
74679c |
- Split libraries into a separate subpackage.
|
|
cvsdist |
74679c |
- Install stuff to allow ant to be run under a normal JVM (#104635).
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri Sep 19 2003 Gary Benson <gbenson@redhat.com> 1.5.2-19
|
|
cvsdist |
74679c |
- Remove workarounds for broken dependencies in xerces-j and xalan-j.
|
|
cvsdist |
74679c |
- Use gij as the name of the interpreter to spawn when running under
|
|
cvsdist |
74679c |
libgcj.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri Sep 5 2003 Gary Benson <gbenson@redhat.com> 1.5.2-18
|
|
cvsdist |
74679c |
- Ensure we have a working javaconfig.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Thu Sep 4 2003 Gary Benson <gbenson@redhat.com>
|
|
cvsdist |
74679c |
- Remove workarounds used to support alpha releases.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Tue Aug 26 2003 Gary Benson <gbenson@redhat.com> 1.5.2-17
|
|
cvsdist |
74679c |
- Reinstate 64-bit workaround and rebuild with new compiler.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Thu Aug 7 2003 Gary Benson <gbenson@redhat.com> 1.5.2-16
|
|
cvsdist |
74679c |
- Remove 64-bit workaround and rebuild with new compiler.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Mon Jul 28 2003 Gary Benson <gbenson@redhat.com> 1.5.2-15
|
|
cvsdist |
74679c |
- Add missing resources to jarfile (#100977).
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri Jul 25 2003 Gary Benson <gbenson@redhat.com>
|
|
cvsdist |
74679c |
- Clarify the -devel subpackage's summary and description.
|
|
cvsdist |
74679c |
- Remove unnecessary -devel dependencies (#99077).
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Tue Jul 1 2003 Gary Benson <gbenson@redhat.com>
|
|
cvsdist |
74679c |
- Remove redundant --libdir configure option.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Mon Jun 30 2003 Gary Benson <gbenson@redhat.com> 1.5.2-14
|
|
cvsdist |
74679c |
- Rebuild with new compiler and enable ia64 build.
|
|
cvsdist |
74679c |
- Enable hammer compiler hack on ia64 also.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri Jun 13 2003 Gary Benson <gbenson@redhat.com>
|
|
cvsdist |
74679c |
- Add the rpm's release to the version embedded in the libraries.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri Jun 6 2003 Gary Benson <gbenson@redhat.com> 1.5.2-13
|
|
cvsdist |
74679c |
- Rebuild with new compiler.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Thu Jun 5 2003 Gary Benson <gbenson@redhat.com>
|
|
cvsdist |
74679c |
- Add build time dependency on C++ compiler.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Thu May 29 2003 Gary Benson <gbenson@redhat.com> 1.5.2-12
|
|
cvsdist |
74679c |
- Rebuild with new compiler.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri May 23 2003 Gary Benson <gbenson@redhat.com> 1.5.2-11
|
|
cvsdist |
74679c |
- Move unversioned library symlink into main package.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Sat May 3 2003 Gary Benson <gbenson@redhat.com> 1.5.2-10
|
|
cvsdist |
74679c |
- Rebuild again to pick up rebuilt BCEL and Xalan.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri May 2 2003 Tom Tromey <tromey@redhat.com> 1.5.2-9
|
|
cvsdist |
74679c |
- Rebuild with new compiler.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Wed Apr 30 2003 Gary Benson <gbenson@redhat.com> 1.5.2-8
|
|
cvsdist |
74679c |
- Enable the Xalan and BCEL tasks.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Mon Apr 14 2003 Gary Benson <gbenson@redhat.com>
|
|
cvsdist |
74679c |
- Require gcj-ssa since we use it to compile java code.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri Apr 11 2003 Gary Benson <gbenson@redhat.com> 1.5.2-7
|
|
cvsdist |
74679c |
- Fix linking on hammer.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri Apr 11 2003 Gary Benson <gbenson@redhat.com> 1.5.2-6
|
|
cvsdist |
74679c |
- Reenable tasks that were disabled on hammer by working
|
|
cvsdist |
74679c |
around the compiler failure more effectively.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Wed Apr 9 2003 Gary Benson <gbenson@redhat.com> 1.5.2-5
|
|
cvsdist |
74679c |
- Compile resources with libtool to enable hammer builds.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Mon Apr 7 2003 Tom Tromey <tromey@redhat.com> 1.5.2-4
|
|
cvsdist |
74679c |
- Rebuild with new compiler.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri Apr 4 2003 Gary Benson <gbenson@redhat.com>
|
|
cvsdist |
74679c |
- Use gcj-ssa instead of gcj for the compiler.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Wed Apr 2 2003 Gary Benson <gbenson@redhat.com>
|
|
cvsdist |
74679c |
- Rebuild against the new xerces.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri Mar 28 2003 Gary Benson <gbenson@redhat.com> 1.5.2-2
|
|
cvsdist |
74679c |
- Substitute @VERSION@ and @DATE@ into the files that need it.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Mon Mar 24 2003 Gary Benson <gbenson@redhat.com> 1.5.2-1
|
|
cvsdist |
74679c |
- Initial Red Hat Linux build.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Fri Mar 21 2003 Gary Benson <gbenson@redhat.com>
|
|
cvsdist |
74679c |
- Upgraded to latest version.
|
|
cvsdist |
74679c |
|
|
cvsdist |
74679c |
* Wed Nov 27 2002 Gary Benson <gbenson@redhat.com>
|
|
cvsdist |
74679c |
- Initial RHUG build.
|