cvsdist 059e3c
%define rhugversion 20031215
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 059e3c
Release: 24.1
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 059e3c
Patch1: %{name}-rhjpp.patch
cvsdist 059e3c
Patch6: %{name}-interpreter.patch
cvsdist 059e3c
Patch7: %{name}-bz104986.patch
cvsdist 059e3c
Patch8: %{name}-gcj34.patch
cvsdist 74679c
License: Apache Software License
cvsdist 74679c
Group: Development/Tools
cvsdist 74679c
BuildRoot: %{_tmppath}/%{name}-%{version}-root
cvsdist 059e3c
BuildPrereq: gcc34-c++
cvsdist 059e3c
BuildPrereq: gcc34-java 
cvsdist 059e3c
BuildPrereq: xerces-j >= 2.2.1-12
cvsdist 059e3c
BuildPrereq: commons-logging >= 1.0.2-13
cvsdist 059e3c
BuildPrereq: jakarta-regexp >= 1.2-13
cvsdist 059e3c
BuildPrereq: xalan-j >= 2.4.1-12
cvsdist 059e3c
BuildPrereq: bcel >= 5.0-11
cvsdist 059e3c
BuildPrereq: jaf >= 20030319-2
cvsdist 059e3c
BuildPrereq: javamail >= 20031006-2
cvsdist 059e3c
BuildPrereq: junit >= 3.8.1-2
cvsdist 059e3c
Requires: gcc34-java 
cvsdist 059e3c
Requires: xerces-j >= 2.2.1-12
cvsdist 059e3c
Requires: commons-logging >= 1.0.2-13
cvsdist 059e3c
Requires: jakarta-regexp >= 1.2-13
cvsdist 059e3c
Requires: xalan-j >= 2.4.1-12
cvsdist 059e3c
Requires: bcel >= 5.0-11
cvsdist 059e3c
Requires: jaf >= 20030319-2
cvsdist 059e3c
Requires: javamail >= 20031006-2
cvsdist 059e3c
Requires: junit >= 3.8.1-2
cvsdist 059e3c
Requires: ant-core = %{version}-%{release}
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 059e3c
%package core
cvsdist 059e3c
Summary: The core classes required by Ant
cvsdist 74679c
Group: System Environment/Libraries
cvsdist 74679c
Prereq: redhat-java-rpm-scripts >= 1.0.2-2
cvsdist 059e3c
Requires: libgcj34 
cvsdist 059e3c
Requires: xerces-j >= 2.2.1-12
cvsdist 059e3c
Requires: commons-logging >= 1.0.2-13
cvsdist 059e3c
Requires: jakarta-regexp >= 1.2-13
cvsdist 059e3c
Requires: xalan-j >= 2.4.1-12
cvsdist 059e3c
Requires: bcel >= 5.0-11
cvsdist 059e3c
Requires: jaf >= 20030319-2
cvsdist 059e3c
Requires: javamail >= 20031006-2
cvsdist 059e3c
cvsdist 059e3c
%description core
cvsdist 059e3c
The core classes required by Ant.
cvsdist 059e3c
cvsdist 059e3c
%package optional
cvsdist 059e3c
Summary: Optional tasks for Ant
cvsdist 059e3c
Group: System Environment/Libraries
cvsdist 059e3c
Prereq: redhat-java-rpm-scripts >= 1.0.2-2
cvsdist 059e3c
Requires: libgcj34 
cvsdist 059e3c
Requires: xerces-j >= 2.2.1-12
cvsdist 059e3c
Requires: xalan-j >= 2.4.1-12
cvsdist 059e3c
Requires: junit >= 3.8.1-2
cvsdist 059e3c
Requires: ant-core = %{version}-%{release}
cvsdist 059e3c
cvsdist 059e3c
%description optional
cvsdist 059e3c
Optional tasks for Ant.
cvsdist 74679c
cvsdist 74679c
%package devel
cvsdist 74679c
Summary: CNI headers for developing Ant applications
cvsdist 74679c
Group: Development/Libraries
cvsdist 059e3c
Requires: ant-core = %{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 059e3c
%patch1 -p0 -b .rhjpp
cvsdist 059e3c
%patch6 -p0 -b .interpreter
cvsdist 74679c
%patch7 -p0 -b .bz104986
cvsdist 059e3c
%patch8 -p0 -b .gcj34
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 059e3c
CC=gcc34 CXX=g++34 GCJ=gcj34 GCJH=gcjh34 \
cvsdist 059e3c
./configure \
cvsdist 059e3c
    --disable-static \
cvsdist 059e3c
    --prefix=%{_prefix} \
cvsdist 059e3c
    --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 059e3c
%post core
cvsdist 74679c
%{_sbindir}/javaconfig \
cvsdist 314c7d
    %{_libdir}/lib-org-apache-tools-ant.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 059e3c
    %{_datadir}/java/ant.jar
cvsdist 74679c
cvsdist 059e3c
%postun core
cvsdist 74679c
%{_sbindir}/javaconfig \
cvsdist 314c7d
    %{_libdir}/lib-org-apache-tools-ant.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 059e3c
    %{_datadir}/java/ant.jar
cvsdist 74679c
cvsdist 059e3c
%post optional
cvsdist 059e3c
%{_sbindir}/javaconfig \
cvsdist 059e3c
    %{_libdir}/lib-org-apache-tools-ant-taskdefs-optional.so \
cvsdist 059e3c
    %{_libdir}/lib-org-apache-tools-ant-types-optional.so \
cvsdist 059e3c
    %{_libdir}/lib-org-apache-tools-ant-util-optional.so \
cvsdist 059e3c
    %{_datadir}/java/ant-optional.jar
cvsdist 74679c
cvsdist 059e3c
%postun optional
cvsdist 059e3c
%{_sbindir}/javaconfig \
cvsdist 059e3c
    %{_libdir}/lib-org-apache-tools-ant-taskdefs-optional.so \
cvsdist 059e3c
    %{_libdir}/lib-org-apache-tools-ant-types-optional.so \
cvsdist 059e3c
    %{_libdir}/lib-org-apache-tools-ant-util-optional.so \
cvsdist 059e3c
    %{_datadir}/java/ant-optional.jar
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 059e3c
%files core
cvsdist 059e3c
%defattr(-,root,root)
cvsdist 059e3c
%{_libdir}/lib-org-apache-tools-ant-%{version}.so
cvsdist 059e3c
%{_libdir}/lib-org-apache-tools-bzip2-%{version}.so
cvsdist 059e3c
%{_libdir}/lib-org-apache-tools-mail-%{version}.so
cvsdist 059e3c
%{_libdir}/lib-org-apache-tools-tar-%{version}.so
cvsdist 059e3c
%{_libdir}/lib-org-apache-tools-zip-%{version}.so
cvsdist 059e3c
%{_datadir}/java/ant-%{version}.jar
cvsdist 059e3c
cvsdist 059e3c
%files optional
cvsdist 74679c
%defattr(-,root,root)
cvsdist 059e3c
%{_libdir}/lib-org-apache-tools-ant-taskdefs-optional-%{version}.so
cvsdist 059e3c
%{_libdir}/lib-org-apache-tools-ant-types-optional-%{version}.so
cvsdist 059e3c
%{_libdir}/lib-org-apache-tools-ant-util-optional-%{version}.so
cvsdist 059e3c
%{_datadir}/java/ant-optional-%{version}.jar
cvsdist 74679c
cvsdist 74679c
%files devel
cvsdist 74679c
%defattr(-,root,root)
cvsdist 74679c
%{_includedir}/org/apache/tools/*
cvsdist 74679c
cvsdist 74679c
%changelog
cvsdist 059e3c
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 059e3c
- rebuilt
cvsdist 059e3c
cvsdist 059e3c
* Wed Feb 18 2004 Gary Benson <gbenson@redhat.com> 1.5.2-24
cvsdist 059e3c
- Rebuild for Fedora.
cvsdist 059e3c
cvsdist 059e3c
* Tue Feb 17 2004 Gary Benson <gbenson@redhat.com>
cvsdist 059e3c
- Move the 'interpreter is gij' logic deeper (#113699).
cvsdist 059e3c
cvsdist 059e3c
* Mon Feb  2 2004 Gary Benson <gbenson@redhat.com>
cvsdist 059e3c
- Pick up xerces-j's XML libraries from their new location.
cvsdist 059e3c
cvsdist 059e3c
* Mon Dec 22 2003 Gary Benson <gbenson@redhat.com>
cvsdist 059e3c
- Split ant-libs into -core and -optional subpackages.
cvsdist 059e3c
cvsdist 059e3c
* Mon Dec 15 2003 Gary Benson <gbenson@redhat.com>
cvsdist 059e3c
- Apply hammer multilib fix to all multilib archs.
cvsdist 059e3c
- Correctly link local libraries on hammer.
cvsdist 059e3c
cvsdist 059e3c
* Fri Dec 12 2003 Gary Benson <gbenson@redhat.com>
cvsdist 059e3c
- Upgraded to fluorinated RHUG tarball.
cvsdist 059e3c
- Moved all optional stuff from lib-org-apache-tools-ant.so.
cvsdist 059e3c
- Moved TraXLiaison from ant-optional.jar to ant.jar.
cvsdist 059e3c
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.