apache-ant/apache-ant.spec
Silvan Calarco c90e15c0b2 fix build with optional libraries. CLASSPATH is ignored (why?), needs symlnks in lib/optional
fixes: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found.
also restores build of gcj libraries [release 1.8.4-2mamba;Fri Jun 14 2013]
2024-01-05 20:27:30 +01:00

1277 lines
40 KiB
RPMSpec

%define bootstrap 1
%if "%{stage1}" != "1"
%if "%{stage2}" != "1"
%define sun_jai 1
%define test_jar 1
%define with_gcj_support 1
%else
%define sun_jai 0
%define test_jar 0
%define with_gcj_support 1
%endif
%else
%define sun_jai 0
%define test_jar 0
%define with_gcj_support 0
%endif
%define kaffe 0
%define anthome %{_datadir}/ant
%define antlib %{anthome}/lib
%define antetc %{anthome}/etc
%define antbin %{anthome}/bin
# http://svn.apache.org/repos/asf/ant/core/trunk/
Name: apache-ant
Version: 1.8.4
Release: 2mamba
Summary: A Java-based build tool
Group: Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://ant.apache.org
Source0: http://mirror.nohup.it/apache/ant/source/%{name}-%{version}-src.tar.bz2
Source1: ant-profile.sh
Source2: http://repo1.maven.org/maven2/org/apache/ant/ant/%{version}/ant-%{version}.pom
Source3: http://repo1.maven.org/maven2/org/apache/ant/ant-launcher/%{version}/ant-launcher-%{version}.pom
# see http://www-306.ibm.com/software/awdtools/netrexx/
#Source4: http://repo1.maven.org/maven2/org/apache/ant/ant-netrexx/%{version}/ant-netrexx-%{version}.pom
# see http://www.borland.com/us/products/starteam/index.html
#Source5: http://repo1.maven.org/maven2/org/apache/ant/ant-starteam/%{version}/ant-starteam-%{version}.pom
##Source6: http://repo1.maven.org/maven2/org/apache/ant/ant-stylebook/%{version}/ant-stylebook-%{version}.pom
# http://e-docs.bea.com/wls/docs92/index.html
#Source7: http://repo1.maven.org/maven2/org/apache/ant/ant-weblogic/%{version}/ant-weblogic-%{version}.pom
Source8: http://repo1.maven.org/maven2/org/apache/ant/ant-antlr/%{version}/ant-antlr-%{version}.pom
Source9: http://repo1.maven.org/maven2/org/apache/ant/ant-apache-bsf/%{version}/ant-apache-bsf-%{version}.pom
Source10: http://repo1.maven.org/maven2/org/apache/ant/ant-apache-resolver/%{version}/ant-apache-resolver-%{version}.pom
Source11: http://repo1.maven.org/maven2/org/apache/ant/ant-commons-logging/%{version}/ant-commons-logging-%{version}.pom
Source12: http://repo1.maven.org/maven2/org/apache/ant/ant-commons-net/%{version}/ant-commons-net-%{version}.pom
Source13: http://repo1.maven.org/maven2/org/apache/ant/ant-jai/%{version}/ant-jai-%{version}.pom
Source14: http://repo1.maven.org/maven2/org/apache/ant/ant-apache-bcel/%{version}/ant-apache-bcel-%{version}.pom
Source15: http://repo1.maven.org/maven2/org/apache/ant/ant-apache-log4j/%{version}/ant-apache-log4j-%{version}.pom
Source16: http://repo1.maven.org/maven2/org/apache/ant/ant-apache-oro/%{version}/ant-apache-oro-%{version}.pom
Source17: http://repo1.maven.org/maven2/org/apache/ant/ant-apache-regexp/%{version}/ant-apache-regexp-%{version}.pom
Source18: http://repo1.maven.org/maven2/org/apache/ant/ant-javamail/%{version}/ant-javamail-%{version}.pom
Source19: http://repo1.maven.org/maven2/org/apache/ant/ant-jdepend/%{version}/ant-jdepend-%{version}.pom
Source20: http://repo1.maven.org/maven2/org/apache/ant/ant-jmf/%{version}/ant-jmf-%{version}.pom
Source21: http://repo1.maven.org/maven2/org/apache/ant/ant-jsch/%{version}/ant-jsch-%{version}.pom
Source22: http://repo1.maven.org/maven2/org/apache/ant/ant-junit/%{version}/ant-junit-%{version}.pom
##Source23: http://repo1.maven.org/maven2/org/apache/ant/ant-nodeps/%{version}/ant-nodeps-%{version}.pom
Source24: http://repo1.maven.org/maven2/org/apache/ant/ant-swing/%{version}/ant-swing-%{version}.pom
##Source25: http://repo1.maven.org/maven2/org/apache/ant/ant-trax/%{version}/ant-trax-%{version}.pom
Source26: http://repo1.maven.org/maven2/org/apache/ant/ant-parent/%{version}/ant-parent-%{version}.pom
Source27: http://repo1.maven.org/maven2/org/apache/ant/ant-testutil/%{version}/ant-testutil-%{version}.pom
#Source28: apache-ant-1.7.ant.conf
#Patch0: apache-ant-bz163689.patch
Patch1: apache-ant-1.7.1-gnu-classpath.patch
Patch2: apache-ant-1.7.1-no-test-jar.patch
Patch3: apache-ant-1.8.3-class_path_in_manifest.patch
License: Apache License 2.0
BuildRequires: jdk
%if %with_gcj_support
BuildRequires: java-gcj-compat
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libgcj4-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
%endif
%if "%{stage1}" != "1"
BuildRequires: antlr
BuildRequires: apache-ant-antunit
BuildRequires: apache-log4j
BuildRequires: jakarta-bcel
BuildRequires: java-junit3
BuildRequires: java-depend
BuildRequires: jpackage-utils
BuildRequires: xalan-j2
BuildRequires: xml-commons-apis
BuildRequires: xml-commons-resolver
%if "%{stage2}" != "1"
BuildRequires: xerces-j2
BuildRequires: apache-anakia
BuildRequires: apache-tomcat5-servletapi5
BuildRequires: apache-velocity-dvsl
BuildRequires: apache-xml-stylebook
BuildRequires: jakarta-bsf24
BuildRequires: jakarta-commons-collections
BuildRequires: jakarta-commons-httpclient
BuildRequires: jakarta-commons-logging
BuildRequires: jakarta-commons-net2
BuildRequires: jakarta-oro
BuildRequires: jakarta-regexp
BuildRequires: java-bsh2
BuildRequires: java-classpathx-jaf
BuildRequires: java-classpathx-mail
BuildRequires: java-dom4j
# jacl/jacl jacl/tcljava
BuildRequires: java-jacl
BuildRequires: java-junit48
BuildRequires: java-rhino
BuildRequires: java-ruby
BuildRequires: java-sch41
# NON FREE
%if %sun_jai
BuildRequires: java-sun-jai
%endif
BuildRequires: java-sun-jms
BuildRequires: java-velocity
BuildRequires: java-xdoclet
BuildRequires: jython
BuildRequires: xjavadoc
BuildRequires: xml-commons-which10
BuildRequires: java-gcj-compat-python
%endif
%if "%{stage2}" != "1"
Requires: xerces-j2
%endif
Requires: xalan-j2
Requires: xml-commons-apis
%endif
Obsoletes: apache-ant-nodeps
Provides: apache-ant-nodeps = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: apache-ant-trax
Provides: apache-ant-trax = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: apache-ant-stylebook
Provides: apache-ant-stylebook = %{?epoch:%epoch:}%{version}-%{release}
Obsoletes: apache-ant-testutil
Provides: apache-ant-testutil = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Apache Ant is a Java-based build tool. In theory, it is kind of like Make, but without Make's wrinkles.
%package jmf
Summary: Optional jmf tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%description jmf
Optional jmf tasks for ant.
##%package nodeps
##Summary: Optional tasks for ant
##Group: Development/Tools
##Requires: %{name} = %{version}-%{release}
##
##%description nodeps
##Optional tasks for ant.
%package swing
Summary: Optional swing tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
%description swing
Optional swing tasks for ant.
##%package trax
##Summary: Optional trax tasks for ant
##Group: Development/Tools
##Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
##Requires: xalan-j2
##Provides: %{name}-xalan2 = %{version}-%{release}
##
##%description trax
##Optional trax tasks for ant.
%package antlr
Summary: Optional antlr tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%description antlr
Optional antlr tasks for ant.
%package bsf
Summary: Optional apache bsf tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%if "%{stage2}" != "1"
Requires: jakarta-bsf24
%endif
%description bsf
Optional apache bsf tasks for ant.
%package resolver
Summary: Optional apache resolver tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
Requires: xml-commons-resolver
%description resolver
Optional apache resolver tasks for ant.
%package commons-logging
Summary: Optional commons logging tasks for ant
Group: Development/Tools
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%if "%{stage2}" != "1"
Requires: jakarta-commons-logging
%endif
%description commons-logging
Optional commons logging tasks for ant.
%package commons-net
Summary: Optional commons net tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%if "%{stage2}" != "1"
Requires: jakarta-commons-net2
%endif
%description commons-net
Optional commons net tasks for ant.
%if %sun_jai
%package jai
Summary: Optional jai tasks for Apache Ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
Requires: java-sun-jai
%description jai
Optional jai tasks for Apache Ant
%endif
%package bcel
Summary: Optional apache bcel tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%if "%{stage2}" != "1"
Requires: jakarta-bcel
%endif
%description bcel
Optional apache bcel tasks for ant.
%package log4j
Summary: Optional apache log4j tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
Requires: apache-log4j
%description log4j
Optional apache log4j tasks for ant.
%package oro
Summary: Optional apache oro tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%if "%{stage2}" != "1"
Requires: jakarta-oro
%endif
%description oro
Optional apache oro tasks for ant.
%package regexp
Summary: Optional apache regexp tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%if "%{stage2}" != "1"
Requires: jakarta-regexp
%endif
%description regexp
Optional apache regexp tasks for ant.
%package javamail
Summary: Optional javamail tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%if "%{stage2}" != "1"
Requires: java-classpathx-mail
Requires: java-classpathx-jaf
%endif
%description javamail
Optional javamail tasks for ant.
%package jdepend
Summary: Optional jdepend tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%if "%{stage2}" != "1"
Requires: java-depend
%endif
%description jdepend
Optional jdepend tasks for ant.
%package jsch
Summary: Optional jsch tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%if "%{stage2}" != "1"
Requires: java-sch41
%endif
%description jsch
Optional jsch tasks for ant.
%package junit
Summary: Optional junit tasks for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
##Requires: %{name}-nodeps = %{version}-%{release}
%if "%{stage2}" != "1"
Requires: java-junit48
%endif
%description junit
Optional junit tasks for ant.
##%package stylebook
##Summary: Stylebook tasks support for ant
##Group: Development/Tools
##Requires: %{name} = %{version}-%{release}
##Requires: apache-xml-stylebook
##
##%description stylebook
##Optional stylebook tasks for ant,
##%package testutil
##Summary: Test utility classes for ant
##Group: Development/Tools
##Requires: %{name} = %{version}-%{release}
##Requires: java-junit3
##
##%description testutil
##Optional test utility classes for ant,
%package xalan2
Summary: Xalan-J2 tasks support for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Requires: xalan-j2
%description xalan2
Optional Xalan-J2 tasks for ant,
%package scripts
Summary: Additional scripts for ant
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Requires: %{__perl}
Requires: %{__python}
%description scripts
Additional Perl and Python scripts for ant.
%package manual
Summary: Manual for ant
Group: Documentation
%description manual
Documentation for ant.
%package javadoc
Summary: Javadoc for ant
Group: Documentation
%description javadoc
Javadoc for ant.
%prep
%setup -q
# -D -T
#:<< ___EOF
# disable ant kaffe support and enable gnu-classpath/libgcj
%if ! %kaffe
%patch1 -p1
%endif
%if %bootstrap
# bootstrap
%patch2 -p1
%endif
# Fix class-path-in-manifest rpmlint warning
%patch3 -p0
#https://issues.apache.org/bugzilla/show_bug.cgi?id=47669
sed -i -e "s|IMAGE_FILE_TYPE|BINARY_FILE_TYPE|g" src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java
%if "%{stage1}" != "1"
# clean jar files
find . -name "*.jar" | %{_bindir}/xargs -t rm
%endif
# Fix file-not-utf8 rpmlint warning
iconv KEYS -f iso-8859-1 -t utf-8 -o KEYS.utf8
mv KEYS.utf8 KEYS
iconv LICENSE -f iso-8859-1 -t utf-8 -o LICENSE.utf8
mv LICENSE.utf8 LICENSE
# Provides: exclude perl(oata), perl(examples)
cat <<__EOF__ > ant-perl.prov
#!/bin/sh
/usr/lib/rpm/perl.prov \$* | grep -v '^perl(oata)$' | grep -v '^perl(examples)$'
__EOF__
%define __perl_provides %{_builddir}/%{name}-%{version}/ant-perl.prov
chmod +x %{__perl_provides}
# Requires: exclude bogus perl(the)
cat <<__EOF__ > ant-perl.req
#!/bin/sh
/usr/lib/rpm/perl.req \$* | grep -v '^perl(the)$'
__EOF__
%define __perl_requires %{_builddir}/%{name}-%{version}/ant-perl.req
chmod +x %{__perl_requires}
%build
#:<< ___EOF
export JAVA_HOME=%{_jvmdir}/jdk
export CLASSPATH="%{_datadir}/java/ecj.jar"
%if "%{stage1}" != "1"
%if %sun_jai
CLASSPATH=$CLASSPATH:$(build-classpath jai)
%endif
CLASSPATH=$CLASSPATH:$(build-classpath xalan-j2-interpretive xalan-j2-serializer)
%if "%{stage2}" != "1"
CLASSPATH=$CLASSPATH:$(build-classpath xerces-j2 xml-commons-jaxp-1.3-apis bcel commons-logging bsf24)
CLASSPATH=$CLASSPATH:$(build-classpath classpathx-jaf classpathx-mail/mail-1.3.1-api-1.1.1)
CLASSPATH=$CLASSPATH:$(build-classpath classpathx-mail/mail-1.3.1-providers-1.1.1 jdepend)
CLASSPATH=$CLASSPATH:$(build-classpath oro regexp commons-net2 jsch commons-httpclient log4j)
CLASSPATH=$CLASSPATH:$(build-classpath xml-commons-resolver xml-stylebook jms rhino antlr)
CLASSPATH=$CLASSPATH:$(build-classpath junit-3.8.2 junit48 jython jruby xml-commons-which10)
CLASSPATH=$CLASSPATH:$(build-classpath commons-logging-api bsh2/bsh-core bsh2/bsh anakia)
CLASSPATH=$CLASSPATH:$(build-classpath ant-antunit jacl/jacl jacl/tcljava servletapi5)
CLASSPATH=$CLASSPATH:$(build-classpath dom4j velocity-dvsl commons-collections xdoclet xjavadoc)
%else
CLASSPATH=$CLASSPATH:$(build-classpath ant-antunit log4j bcel junit-3.8.2 jdepend)
CLASSPATH=$CLASSPATH:$(build-classpath xml-commons-resolver xml-commons-apis antlr)
%endif # ! stage2
%endif # ! stage1
IFS=':'
for f in $CLASSPATH; do
ln -s $f lib/optional/
done
IFS=
%if ! %bootstrap
export OPT_JAR_LIST=:
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar
%{ant} \
jars \
%if %test_jar
test-jar
%endif
CLASSPATH=$CLASSPATH
%{ant} javadocs
%else
CLASSPATH=$CLASSPATH
sh ./build.sh --noconfig \
jars \
%if %test_jar
test-jar \
%endif
%if "%{stage1}" != "1"
javadocs
%endif
%endif
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
mkdir -p %{buildroot}%{anthome}
mkdir -p %{buildroot}%{_javadir}/ant
mkdir -p %{buildroot}%{antlib}
mkdir -p %{buildroot}%{antetc}/checkstyle
mkdir -p %{buildroot}%{antlib}
mkdir -p %{buildroot}%{_datadir}/maven2/poms
install -m 644 build/lib/ant.jar %{buildroot}%{_javadir}/ant-%{version}.jar
install -m 644 build/lib/ant-bootstrap.jar %{buildroot}%{_javadir}/ant-bootstrap-%{version}.jar
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP-ant.pom
%add_to_maven_depmap org.apache.ant ant %{version} JPP ant
install -m 644 build/lib/ant-launcher.jar %{buildroot}%{_javadir}/ant-launcher-%{version}.jar
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/maven2/poms/JPP-ant-launcher.pom
%add_to_maven_depmap org.apache.ant ant-launcher %{version} JPP ant-launcher
install -m 644 build/lib/ant-jmf.jar %{buildroot}%{_javadir}/ant/ant-jmf-%{version}.jar
install -m 644 %{SOURCE20} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-jmf.pom
%add_to_maven_depmap org.apache.ant ant-jmf %{version} JPP/ant ant-jmf
##install -m 644 build/lib/ant-nodeps.jar %{buildroot}%{_javadir}/ant/ant-nodeps-%{version}.jar
##install -m 644 %{SOURCE23} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-nodeps.pom
%add_to_maven_depmap org.apache.ant ant-nodeps %{version} JPP/ant ant-nodeps
install -m 644 build/lib/ant-swing.jar %{buildroot}%{_javadir}/ant/ant-swing-%{version}.jar
install -m 644 %{SOURCE24} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-swing.pom
%add_to_maven_depmap org.apache.ant ant-swing %{version} JPP/ant ant-swing
##install -m 644 build/lib/ant-trax.jar %{buildroot}%{_javadir}/ant/ant-trax-%{version}.jar
##install -m 644 %{SOURCE25} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-trax.pom
%add_to_maven_depmap org.apache.ant ant-trax %{version} JPP/ant ant-trax
# optional
%if "%{stage1}" != "1"
##install -m 644 build/lib/ant-stylebook.jar %{buildroot}%{_javadir}/ant/ant-stylebook-%{version}.jar
## install -m 644 %{SOURCE6} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-stylebook.pom
## %add_to_maven_depmap org.apache.ant ant-stylebook %{version} JPP/ant ant-stylebook
install -m 644 build/lib/ant-antlr.jar %{buildroot}%{_javadir}/ant/ant-antlr-%{version}.jar
install -m 644 %{SOURCE8} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-antlr.pom
%add_to_maven_depmap org.apache.ant ant-antlr %{version} JPP/ant ant-antlr
install -m 644 build/lib/ant-apache-bsf.jar %{buildroot}%{_javadir}/ant/ant-apache-bsf-%{version}.jar
install -m 644 %{SOURCE9} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-apache-bsf.pom
%add_to_maven_depmap org.apache.ant ant-apache-bsf %{version} JPP/ant ant-apache-bsf
install -m 644 build/lib/ant-apache-resolver.jar %{buildroot}%{_javadir}/ant/ant-apache-resolver-%{version}.jar
install -m 644 %{SOURCE10} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-apache-resolver.pom
%add_to_maven_depmap org.apache.ant ant-apache-resolver %{version} JPP/ant ant-apache-resolver
install -m 644 build/lib/ant-commons-logging.jar %{buildroot}%{_javadir}/ant/ant-commons-logging-%{version}.jar
install -m 644 %{SOURCE11} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-commons-logging.pom
%add_to_maven_depmap org.apache.ant ant-commons-logging %{version} JPP/ant ant-commons-logging
install -m 644 build/lib/ant-commons-net.jar %{buildroot}%{_javadir}/ant/ant-commons-net-%{version}.jar
install -m 644 %{SOURCE12} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-commons-net.pom
%add_to_maven_depmap org.apache.ant ant-commons-net %{version} JPP/ant ant-commons-net
%if %sun_jai
install -m 644 build/lib/ant-jai.jar %{buildroot}%{_javadir}/ant/ant-jai-%{version}.jar
%add_to_maven_depmap org.apache.ant ant-jai %{version} JPP/ant ant-jai
install -m 644 %{SOURCE13} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-jai.pom
%endif
install -m 644 build/lib/ant-apache-bcel.jar %{buildroot}%{_javadir}/ant/ant-apache-bcel-%{version}.jar
install -m 644 %{SOURCE14} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-apache-bcel.pom
%add_to_maven_depmap org.apache.ant ant-apache-bcel %{version} JPP/ant ant-apache-bcel
install -m 644 build/lib/ant-apache-log4j.jar %{buildroot}%{_javadir}/ant/ant-apache-log4j-%{version}.jar
install -m 644 %{SOURCE15} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-apache-log4j.pom
%add_to_maven_depmap org.apache.ant ant-apache-log4j %{version} JPP/ant ant-apache-log4j
install -m 644 build/lib/ant-apache-oro.jar %{buildroot}%{_javadir}/ant/ant-apache-oro-%{version}.jar
install -m 644 %{SOURCE16} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-apache-oro.pom
%add_to_maven_depmap org.apache.ant ant-apache-oro %{version} JPP/ant ant-apache-oro
install -m 644 build/lib/ant-apache-regexp.jar %{buildroot}%{_javadir}/ant/ant-apache-regexp-%{version}.jar
install -m 644 %{SOURCE17} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-apache-regexp.pom
%add_to_maven_depmap org.apache.ant ant-apache-regexp %{version} JPP/ant ant-apache-regexp
ln -sf ant-apache-bcel.jar %{buildroot}%{_javadir}/ant/ant-jakarta-bcel.jar
ln -sf ant-apache-log4j.jar %{buildroot}%{_javadir}/ant/ant-jakarta-log4j.jar
ln -sf ant-apache-oro.jar %{buildroot}%{_javadir}/ant/ant-jakarta-oro.jar
ln -sf ant-apache-regexp.jar %{buildroot}%{_javadir}/ant/ant-jakarta-regexp.jar
install -m 644 build/lib/ant-javamail.jar %{buildroot}%{_javadir}/ant/ant-javamail-%{version}.jar
install -m 644 %{SOURCE18} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-javamail.pom
%add_to_maven_depmap org.apache.ant ant-javamail %{version} JPP/ant ant-javamail
install -m 644 build/lib/ant-jdepend.jar %{buildroot}%{_javadir}/ant/ant-jdepend-%{version}.jar
install -m 644 %{SOURCE19} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-jdepend.pom
%add_to_maven_depmap org.apache.ant ant-jdepend %{version} JPP/ant ant-jdepend
install -m 644 build/lib/ant-jsch.jar %{buildroot}%{_javadir}/ant/ant-jsch-%{version}.jar
install -m 644 %{SOURCE21} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-jsch.pom
%add_to_maven_depmap org.apache.ant ant-jsch %{version} JPP/ant ant-jsch
install -m 644 build/lib/ant-junit.jar %{buildroot}%{_javadir}/ant/ant-junit-%{version}.jar
install -m 644 %{SOURCE22} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-junit.pom
%add_to_maven_depmap org.apache.ant ant-junit %{version} JPP/ant ant-junit
%endif
##install -m 644 build/lib/ant-testutil.jar %{buildroot}%{_javadir}/ant/ant-testutil-%{version}.jar
install -m 644 %{SOURCE27} %{buildroot}%{_datadir}/maven2/poms/JPP.ant-ant-testutil.pom
%add_to_maven_depmap org.apache.ant ant-testutil %{version} JPP/ant ant-testutil
install -m 644 %{SOURCE26} %{buildroot}%{_datadir}/maven2/poms/JPP-ant-parent.pom
%add_to_maven_depmap org.apache.ant ant-parent %{version} JPP ant-parent
(
cd %{buildroot}%{_javadir}
for jar in *-%{version}.jar; do
jarname=`echo $jar| sed "s|-%{version}||g"`
ln -sf ${jar} ${jarname}
ln -sf ../../java/${jarname} %{buildroot}%{antlib}/${jarname}
done
)
(
cd %{buildroot}%{_javadir}/ant
for jar in *-%{version}.jar; do
jarname=`echo $jar| sed "s|-%{version}||g"`
ln -sf ${jar} ${jarname}
ln -sf ../../java/ant/${jarname} %{buildroot}%{antlib}/${jarname}
done
)
# scripts: remove DOS and OS/2 scripts
rm -f src/script/*.bat
rm -f src/script/*.cmd
mkdir -p %{buildroot}%{antbin}
mkdir -p %{buildroot}%{_bindir}
cp -p src/script/* %{buildroot}%{antbin}
cp -p src/etc/*.xsl %{buildroot}%{antetc}/
%if "%{stage1}" == "1"
rm -f %{buildroot}%{antetc}/jdepend*.xsl
rm -f %{buildroot}%{antetc}/maudit-frames.xsl
%else
cp -p src/etc/checkstyle/* %{buildroot}%{antetc}/checkstyle
mkdir -p %{buildroot}%{_javadocdir}/ant-%{version}
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/ant-%{version}
(
cd manual
ln -sf %{_javadocdir}/%{name}-%{version} api
)
%endif
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
##echo "xalan-j2 ant/ant-trax xalan-j2-serializer" > %{buildroot}%{_sysconfdir}/ant.d/trax
#echo "xalan-j2 ant/ant-trax xalan-j2-serializer" > %{buildroot}%{_sysconfdir}/ant.d/xalan
echo "ant/ant-jmf" > %{buildroot}%{_sysconfdir}/ant.d/jmf
##echo "ant/ant-nodeps" > %{buildroot}%{_sysconfdir}/ant.d/nodeps
echo "ant/ant-swing" > %{buildroot}%{_sysconfdir}/ant.d/swing
%if "%{stage1}" != "1"
echo "antlr ant/ant-antlr" > %{buildroot}%{_sysconfdir}/ant.d/antlr
echo "bcel ant/ant-apache-bcel" > %{buildroot}%{_sysconfdir}/ant.d/apache-bcel
echo "bsf24 ant/ant-apache-bsf" > %{buildroot}%{_sysconfdir}/ant.d/apache-bsf
echo "jakarta-commons-logging ant/ant-commons-logging" > %{buildroot}%{_sysconfdir}/ant.d/commons-logging
echo "jakarta-commons-net2 ant/ant-commons-net" > %{buildroot}%{_sysconfdir}/ant.d/commons-net
echo "javamail jaf ant/ant-javamail" > %{buildroot}%{_sysconfdir}/ant.d/javamail
echo "jdepend ant/ant-jdepend" > %{buildroot}%{_sysconfdir}/ant.d/jdepend
echo "jsch ant/ant-jsch" > %{buildroot}%{_sysconfdir}/ant.d/jsch
echo "log4j ant/ant-apache-log4j" > %{buildroot}%{_sysconfdir}/ant.d/apache-log4j
echo "oro ant/ant-apache-oro" > %{buildroot}%{_sysconfdir}/ant.d/apache-oro
echo "regexp ant/ant-apache-regexp" > %{buildroot}%{_sysconfdir}/ant.d/apache-regexp
echo "xml-commons-resolver ant/ant-apache-resolver" > %{buildroot}%{_sysconfdir}/ant.d/apache-resolver
##echo "xml-stylebook ant/ant-stylebook" > %{buildroot}%{_sysconfdir}/ant.d/stylebook
##echo "ant junit48" > %{buildroot}%{_sysconfdir}/ant.d/testutil
%if %sun_jai
echo "jai ant/ant-jai" > %{buildroot}%{_sysconfdir}/ant.d/jai
%endif
echo "junit ant/ant-junit" > %{buildroot}%{_sysconfdir}/ant.d/junit
%endif
install -D -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/ant.sh
sed --in-place "s|__ANT__HOME__|%{anthome}|" %{buildroot}%{_sysconfdir}/profile.d/ant.sh
%if %with_gcj_support
%{_bindir}/aot-compile-rpm
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
%update_maven_depmap
%if %with_gcj_support
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%{_sysconfdir}/profile.d/ant.sh
exit 0
%postun
%update_maven_depmap
%if %with_gcj_support
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files
%defattr(-,root,root)
%{_sysconfdir}/profile.d/ant.sh
%dir %{antbin}
%attr(0755,root,root) %{antbin}/ant
%attr(0755,root,root) %{antbin}/antRun
%{_javadir}/ant-%{version}.jar
%{_javadir}/ant.jar
%{_javadir}/ant-bootstrap-%{version}.jar
%{_javadir}/ant-bootstrap.jar
%{_javadir}/ant-launcher-%{version}.jar
%{_javadir}/ant-launcher.jar
%dir %{anthome}
%dir %{antetc}
%{antetc}/checkstyle
%{antetc}/ant-update.xsl
%{antetc}/changelog.xsl
%{antetc}/common2master.xsl
%{antetc}/junit-frames-xalan1.xsl
%{antetc}/junit-frames.xsl
%{antetc}/junit-noframes.xsl
%{antetc}/log.xsl
%{antetc}/tagdiff.xsl
%{antetc}/mmetrics-frames.xsl
%{antetc}/coverage-frames.xsl
%{antetc}/printFailingTests.xsl
%dir %{antlib}
%{antlib}/ant.jar
%{antlib}/ant-bootstrap.jar
%{antlib}/ant-launcher.jar
%dir %{_javadir}/ant
%dir %{_sysconfdir}/ant.d
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%doc INSTALL LICENSE README WHATSNEW
%if %with_gcj_support
%dir %{_libdir}/gcj/apache-ant
%{_libdir}/gcj/apache-ant/ant-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-%{version}.jar.so
%{_libdir}/gcj/apache-ant/ant-launcher-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-launcher-%{version}.jar.so
%endif
%if %with_gcj_support
%post jmf
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun jmf
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files jmf
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/jmf
%{_javadir}/ant/ant-jmf.jar
%{_javadir}/ant/ant-jmf-%{version}.jar
%{antlib}/ant-jmf.jar
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-jmf-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-jmf-%{version}.jar.so
%endif
##%post nodeps
##if [ -x %{_bindir}/rebuild-gcj-db ]; then
## %{_bindir}/rebuild-gcj-db
##fi
##
##%postun nodeps
##if [ -x %{_bindir}/rebuild-gcj-db ]; then
## %{_bindir}/rebuild-gcj-db
##fi
##%endif
##
##%files nodeps
##%defattr(-,root,root)
##%config(noreplace) %{_sysconfdir}/ant.d/nodeps
##%{_javadir}/ant/ant-nodeps.jar
##%{_javadir}/ant/ant-nodeps-%{version}.jar
##%{antlib}/ant-nodeps.jar
##%if %with_gcj_support
##%{_libdir}/gcj/apache-ant/ant-nodeps-%{version}.jar.db
##%{_libdir}/gcj/apache-ant/ant-nodeps-%{version}.jar.so
%if %with_gcj_support
%post swing
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun swing
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files swing
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/swing
%{_javadir}/ant/ant-swing.jar
%{_javadir}/ant/ant-swing-%{version}.jar
%{antlib}/ant-swing.jar
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-swing-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-swing-%{version}.jar.so
%endif
##%post trax
##if [ -x %{_bindir}/rebuild-gcj-db ]; then
## %{_bindir}/rebuild-gcj-db
##fi
##
##%postun trax
##if [ -x %{_bindir}/rebuild-gcj-db ]; then
## %{_bindir}/rebuild-gcj-db
##fi
##%endif
##
##%files trax
##%defattr(-,root,root)
##%config(noreplace) %{_sysconfdir}/ant.d/trax
##%{antetc}/mmetrics-frames.xsl
##%{antetc}/coverage-frames.xsl
##%{_javadir}/ant/ant-trax.jar
##%{_javadir}/ant/ant-trax-%{version}.jar
##%{antlib}/ant-trax.jar
##%if %with_gcj_support
##%{_libdir}/gcj/apache-ant/ant-trax-%{version}.jar.db
##%{_libdir}/gcj/apache-ant/ant-trax-%{version}.jar.so
##%endif
%if %with_gcj_support
%post antlr
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun antlr
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%if "%{stage1}" != "1"
%files antlr
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/antlr
%{_javadir}/ant/ant-antlr.jar
%{_javadir}/ant/ant-antlr-%{version}.jar
%{antlib}/ant-antlr.jar
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-antlr-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-antlr-%{version}.jar.so
%endif
%if %with_gcj_support
%post bsf
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun bsf
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files bsf
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/apache-bsf
%{_javadir}/ant/ant-apache-bsf.jar
%{_javadir}/ant/ant-apache-bsf-%{version}.jar
%{antlib}/ant-apache-bsf.jar
%if "%{stage2}" != "1"
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-apache-bsf-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-apache-bsf-%{version}.jar.so
%endif
%endif
%if %with_gcj_support
%post resolver
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun resolver
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files resolver
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/apache-resolver
%{_javadir}/ant/ant-apache-resolver.jar
%{_javadir}/ant/ant-apache-resolver-%{version}.jar
%{antlib}/ant-apache-resolver.jar
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-apache-resolver-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-apache-resolver-%{version}.jar.so
%endif
%if %with_gcj_support
%post commons-logging
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun commons-logging
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files commons-logging
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/commons-logging
%{_javadir}/ant/ant-commons-logging.jar
%{_javadir}/ant/ant-commons-logging-%{version}.jar
%{antlib}/ant-commons-logging.jar
%if "%{stage2}" != "1"
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-commons-logging-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-commons-logging-%{version}.jar.so
%endif
%endif
%if %with_gcj_support
%post commons-net
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun commons-net
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files commons-net
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/commons-net
%{_javadir}/ant/ant-commons-net.jar
%{_javadir}/ant/ant-commons-net-%{version}.jar
%{antlib}/ant-commons-net.jar
%if "%{stage2}" != "1"
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-commons-net-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-commons-net-%{version}.jar.so
%endif
%endif
%if %sun_jai
%if %with_gcj_support
%post jai
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun jai
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files jai
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/jai
%{_javadir}/ant/ant-jai.jar
%{_javadir}/ant/ant-jai-%{version}.jar
%{antlib}/ant-jai.jar
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-jai-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-jai-%{version}.jar.so
%endif
%endif
%if %with_gcj_support
%post bcel
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun bcel
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files bcel
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/apache-bcel
%{_javadir}/ant/ant-apache-bcel.jar
%{_javadir}/ant/ant-apache-bcel-%{version}.jar
%{_javadir}/ant/ant-jakarta-bcel.jar
%{antlib}/ant-apache-bcel.jar
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-apache-bcel-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-apache-bcel-%{version}.jar.so
%endif
%if %with_gcj_support
%post log4j
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun log4j
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files log4j
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/apache-log4j
%{_javadir}/ant/ant-apache-log4j.jar
%{_javadir}/ant/ant-apache-log4j-%{version}.jar
%{_javadir}/ant/ant-jakarta-log4j.jar
%{antlib}/ant-apache-log4j.jar
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-apache-log4j-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-apache-log4j-%{version}.jar.so
%endif
%if %with_gcj_support
%post oro
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun oro
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files oro
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/apache-oro
%{antetc}/maudit-frames.xsl
%{_javadir}/ant/ant-apache-oro.jar
%{_javadir}/ant/ant-apache-oro-%{version}.jar
%{_javadir}/ant/ant-jakarta-oro.jar
%{antlib}/ant-apache-oro.jar
%if "%{stage2}" != "1"
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-apache-oro-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-apache-oro-%{version}.jar.so
%endif
%endif
%if %with_gcj_support
%post regexp
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun regexp
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files regexp
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/apache-regexp
%{_javadir}/ant/ant-apache-regexp.jar
%{_javadir}/ant/ant-apache-regexp-%{version}.jar
%{_javadir}/ant/ant-jakarta-regexp.jar
%{antlib}/ant-apache-regexp.jar
%if "%{stage2}" != "1"
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-apache-regexp-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-apache-regexp-%{version}.jar.so
%endif
%endif
%if %with_gcj_support
%post javamail
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun javamail
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files javamail
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/javamail
%{_javadir}/ant/ant-javamail.jar
%{_javadir}/ant/ant-javamail-%{version}.jar
%{antlib}/ant-javamail.jar
%if "%{stage2}" != "1"
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-javamail-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-javamail-%{version}.jar.so
%endif
%endif
%if %with_gcj_support
%post jdepend
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun jdepend
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files jdepend
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/jdepend
%{antetc}/jdepend.xsl
%{antetc}/jdepend-frames.xsl
%{_javadir}/ant/ant-jdepend.jar
%{_javadir}/ant/ant-jdepend-%{version}.jar
%{antlib}/ant-jdepend.jar
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-jdepend-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-jdepend-%{version}.jar.so
%endif
%if %with_gcj_support
%post jsch
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun jsch
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files jsch
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/jsch
%{_javadir}/ant/ant-jsch.jar
%{_javadir}/ant/ant-jsch-%{version}.jar
%{antlib}/ant-jsch.jar
%if "%{stage2}" != "1"
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-jsch-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-jsch-%{version}.jar.so
%endif
%endif
##%if %with_gcj_support
##%post stylebook
##if [ -x %{_bindir}/rebuild-gcj-db ]; then
## %{_bindir}/rebuild-gcj-db
##fi
##%postun stylebook
##if [ -x %{_bindir}/rebuild-gcj-db ]; then
## %{_bindir}/rebuild-gcj-db
##fi
##%endif
##%files stylebook
##%defattr(-,root,root)
##%config(noreplace) %{_sysconfdir}/ant.d/stylebook
##%{antetc}/checkstyle
##%{_javadir}/ant/ant-stylebook-%{version}.jar
##%{_javadir}/ant/ant-stylebook.jar
##%{antlib}/ant-stylebook.jar
##%if %with_gcj_support
##%{_libdir}/gcj/apache-ant/ant-stylebook-%{version}.jar.db
##%{_libdir}/gcj/apache-ant/ant-stylebook-%{version}.jar.so
##%post testutil
##if [ -x %{_bindir}/rebuild-gcj-db ]; then
## %{_bindir}/rebuild-gcj-db
##fi
##
##%postun testutil
##if [ -x %{_bindir}/rebuild-gcj-db ]; then
## %{_bindir}/rebuild-gcj-db
##fi
##%endif
##%files testutil
##%defattr(-,root,root)
##%config(noreplace) %{_sysconfdir}/ant.d/testutil
##%{_javadir}/ant/ant-testutil-%{version}.jar
##%{_javadir}/ant/ant-testutil.jar
##%{antlib}/ant-testutil.jar
##%if %with_gcj_support
##%{_libdir}/gcj/apache-ant/ant-testutil-%{version}.jar.db
##%{_libdir}/gcj/apache-ant/ant-testutil-%{version}.jar.so
##%endif
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/ant-%{version}
%if %with_gcj_support
%post junit
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun junit
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%endif
%files junit
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ant.d/junit
%{_javadir}/ant/ant-junit.jar
%{_javadir}/ant/ant-junit-%{version}.jar
%{antlib}/ant-junit.jar
%if %with_gcj_support
%{_libdir}/gcj/apache-ant/ant-junit-%{version}.jar.db
%{_libdir}/gcj/apache-ant/ant-junit-%{version}.jar.so
%endif
# endif for stage1 != 1
%endif
%files scripts
%defattr(-,root,root)
%attr(0755,root,root) %{antbin}/*.pl
%attr(0755,root,root) %{antbin}/*.py*
%files manual
%defattr(-,root,root)
%doc manual/*
%changelog
* Fri Jun 14 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.4-2mamba
- fix build with optional libraries. CLASSPATH is ignored (why?), needs symlnks in lib/optional
- fixes: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found.
- also restores build of gcj libraries
* Thu Aug 30 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.4-1mamba
- update to 1.8.4
* Thu Mar 15 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.8.3-1mamba
- update to 1.8.3
- merge the nodeps, trax, stylebook and testutil packages to main one
* Sun Mar 20 2011 gil <puntogil@libero.it> 1.7.1-9mamba
- rebuilt with java-openjdk support
- add gcj support
* Tue May 18 2010 gil <puntogil@libero.it> 1.7.1-8mamba
- rebuilt with sun-java 6u20
* Mon Mar 29 2010 gil <puntogil@libero.it> 1.7.1-7mamba
- added new subackage: jai
- added new build requirements: apache-anakia apache-ant-antunit
apache-tomcat5-servletapi5 apache-velocity-dvsl
jakarta-commons-collections jakarta-commons-httpclient
java-bsh2 java-dom4j java-jacl java-rhino java-ruby
jython java-xdoclet xjavadoc xml-commons-apis xml-commons-which10
* Thu Oct 22 2009 gil <puntogil@libero.it> 1.7.1-6mamba
- rebuilt with jakarta-commons-net2
- ANT_HOME moved in /usr/share/ant
* Sun Sep 06 2009 gil <puntogil@libero.it> 1.7.1-5mamba
- rebuilt
- edit spec file %{_datadir}/maven2/poms/JPP-ant.pom is not a pom file but %{SOURCE1}
* Mon Jun 29 2009 gil <puntogil@libero.it> 1.7.1-4mamba
- rebuilt
* Sun Jun 28 2009 gil <puntogil@libero.it> 1.7.1-3mamba
- rebuilt
- added mew sub package: apache-ant-testutil
* Thu Mar 05 2009 gil <puntogil@libero.it> 1.7.1-2mamba
- added xml-commons-resolver jakarta-commons-logging java-log4j jakarta-bcel jakarta-bsf jakarta-commons-net jakarta-oro java-classpathx-jaf java-classpathx-mail java-depend java-junit3 java-regexp java-sch support
- edit spec file
* Thu Jul 10 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.1-1mamba
- update to 1.7.1
* Thu May 08 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.0-1mamba
- update to 1.7.0
- moved to /opt/ant
* Fri Jul 15 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.5-1qilnx
- package created by autospec