# # spec file for package ant-antlr (Version 1.7.0) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: ant-antlr BuildRequires: ant antlr bcel bsf jaf jakarta-commons-logging java-devel javamail jdepend junit log4j oro regexp unzip update-alternatives xalan-j2 xerces-j2 %define ant_home %{_datadir}/ant %define ant_name ant %define section free Version: 1.7.0 Release: 90 Url: http://jakarta.apache.org/ Group: Development/Tools/Building Source0: apache-ant-%{version}-src.tar.bz2 # Ant configuration file which is edited when each optional subpackage # is installed/uninstalled Summary: Optional antlr Tasks for Ant License: The Apache Software License # Ant configuration file which is edited when each optional subpackage # is installed/uninstalled # Fix temp directory used for file containing large command strings (> 4k) Requires: %{ant_name} = %{version} Conflicts: ant-optional-clean, ant-optional-full BuildRoot: %{_tmppath}/%{name}-%{version}-build Patch150: java150_build.patch BuildArch: noarch %description Apache Ant is a Java-based build tool. This package contains optional antlr tasks for Apache Ant. %package -n ant-commons-logging Summary: Optional commons logging tasks for ant Group: Development/Tools/Building Requires: jakarta-commons-logging Provides: ant-commons-logging = %{version}-%{release} Requires: %{ant_name} = %{version} Conflicts: ant-optional-clean, ant-optional-full %description -n ant-commons-logging Apache Ant is a Java-based build tool. This package contains optional commons logging tasks for Apache Ant. %package -n ant-apache-bsf Summary: Optional apache bsf tasks for ant Group: Development/Tools/Building Requires: bsf Requires: %{ant_name} = %{version} Conflicts: ant-optional-clean, ant-optional-full %description -n ant-apache-bsf Apache Ant is a Java-based build tool. This package contains optional apache bsf tasks for Apache Ant. %package -n ant-apache-resolver Summary: Optional apache resolver tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Requires: xml-commons-resolver Conflicts: ant-optional-clean, ant-optional-full %description -n ant-apache-resolver Apache Ant is a Java-based build tool. This package contains optional apache resolver tasks for Apache Ant. %package -n ant-apache-bcel Summary: Optional apache bcel tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Requires: bcel Provides: ant-jakarta-bcel = %{version}-%{release} Obsoletes: ant-jakarta-bcel Conflicts: ant-optional-clean, ant-optional-full %description -n ant-apache-bcel Apache Ant is a Java-based build tool. This package contains optional apache bcel tasks for Apache Ant. %package -n ant-apache-log4j Summary: Optional apache log4j tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Requires: log4j Provides: ant-jakarta-log4j = %{version}-%{release} Obsoletes: ant-jakarta-log4j Conflicts: ant-optional-clean, ant-optional-full %description -n ant-apache-log4j Apache Ant is a Java-based build tool. This package contains optional apache log4j tasks for Apache Ant. %package -n ant-apache-oro Summary: Optional apache oro tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Requires: oro Provides: ant-jakarta-oro = %{version}-%{release} Obsoletes: ant-jakarta-oro Conflicts: ant-optional-clean, ant-optional-full %description -n ant-apache-oro Apache Ant is a Java-based build tool. This package contains optional apache oro tasks for Apache Ant. %package -n ant-apache-regexp Summary: Optional apache regexp tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Requires: regexp Provides: ant-jakarta-regexp = %{version}-%{release} Obsoletes: ant-jakarta-regexp Conflicts: ant-optional-clean, ant-optional-full %description -n ant-apache-regexp Apache Ant is a Java-based build tool. This package contains optional apache regexp tasks for Apache Ant. %package -n ant-javamail Summary: Optional javamail tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Requires: javamail >= 1.2-5jpp Requires: jaf >= 1.0.1-5jpp Conflicts: ant-optional-clean, ant-optional-full %description -n ant-javamail Apache Ant is a Java-based build tool. This package contains optional javamail tasks for Apache Ant. %package -n ant-jdepend Summary: Optional jdepend tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Requires: jdepend Conflicts: ant-optional-clean, ant-optional-full %description -n ant-jdepend Apache Ant is a Java-based build tool. This package contains optional jdepend tasks for Apache Ant. %package -n ant-jmf Summary: Optional jmf tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Conflicts: ant-optional-clean, ant-optional-full %description -n ant-jmf Apache Ant is a Java-based build tool. This package contains optional jmf tasks for Apache Ant. %package -n ant-junit Summary: Optional junit tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Requires: junit Conflicts: ant-optional-clean, ant-optional-full %description -n ant-junit Apache Ant is a Java-based build tool. This package contains optional JUnit tasks for Apache Ant. %package -n ant-nodeps Summary: Optional tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Conflicts: ant-optional-clean, ant-optional-full %description -n ant-nodeps Apache Ant is a Java-based build tool. This package contains optional tasks for Apache Ant. %package -n ant-swing Summary: Optional swing tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Conflicts: ant-optional-clean, ant-optional-full %description -n ant-swing Apache Ant is a Java-based build tool. This package contains optional swing tasks for Apache Ant. %package -n ant-trax Summary: Optional trax tasks for ant Group: Development/Tools/Building Requires: %{ant_name} = %{version} Requires: jaxp_transform_impl # The ant-xalan jar has been merged into the ant-trax one Obsoletes: ant-xalan2 Provides: ant-xalan2 Conflicts: ant-optional-clean, ant-optional-full %description -n ant-trax Apache Ant is a Java-based build tool. This package contains optional trax tasks for Apache Ant. %prep %setup -q -n apache-ant-%{version} # Fix temp directory used for file containing large command strings (> 4k) # clean jar files %patch150 -p1 find . -name "*.jar" -exec rm -f {} \; # ----------------------------------------------------------------------------- %build export CLASSPATH=$(%{_bindir}/build-classpath jaxp_parser_impl xml-commons-apis antlr bcel jaf javamail/mailapi jdepend junit log4j oro regexp commons-logging bsf xml-commons-resolver regexp regexp javamail xml-commons-resolver jakarta-commons-logging jdepend ) # perform bootstrap and build without jjp or user configs, # (except JAVA_HOME as required by build script) #[ -n "$JAVA_HOME" ] && unset JAVA_HOME #[ -r %{_sysconfdir}/java/java.conf ] && . %{_sysconfdir}/java/java.conf #[ -z "$JAVA_HOME" ] && JAVA_HOME=%{_jvmdir}/java export JAVA_HOME sh build.sh --noconfig jars javadocs %install # jars mkdir -p $RPM_BUILD_ROOT%{_javadir} # optional jars mkdir -p $RPM_BUILD_ROOT%{_javadir}/ant cp -p build/lib/%{ant_name}-antlr.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-antlr-%{version}.jar cp -p build/lib/%{ant_name}-apache-bsf.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-apache-bsf-%{version}.jar cp -p build/lib/%{ant_name}-apache-resolver.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-apache-resolver-%{version}.jar cp -p build/lib/%{ant_name}-apache-bcel.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-apache-bcel-%{version}.jar cp -p build/lib/%{ant_name}-apache-log4j.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-apache-log4j-%{version}.jar cp -p build/lib/%{ant_name}-apache-oro.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-apache-oro-%{version}.jar cp -p build/lib/%{ant_name}-apache-regexp.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-apache-regexp-%{version}.jar cp -p build/lib/%{ant_name}-javamail.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-javamail-%{version}.jar cp -p build/lib/%{ant_name}-jdepend.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-jdepend-%{version}.jar cp -p build/lib/%{ant_name}-jmf.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-jmf-%{version}.jar cp -p build/lib/%{ant_name}-commons-logging.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-commons-logging-%{version}.jar #cp -p build/lib/% {ant_name}-commons-net.jar $RPM_BUILD_ROOT% {_javadir}/% {ant_name}/% {ant_name}-commons-net-% {version}.jar cp -p build/lib/%{ant_name}-junit.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-junit-%{version}.jar #cp -p build/lib/% {ant_name}-jsch.jar $RPM_BUILD_ROOT% {_javadir}/% {ant_name}/% {ant_name}-jsch-% {version}.jar cp -p build/lib/%{ant_name}-nodeps.jar $RPM_BUILD_ROOT%{_javadir}/%{ant_name}/%{ant_name}-nodeps-%{version}.jar cp -p build/lib/%{ant_name}-swing.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-swing-%{version}.jar cp -p build/lib/%{ant_name}-trax.jar $RPM_BUILD_ROOT%{_javadir}/ant/%{ant_name}-trax-%{version}.jar # jar aliases (cd $RPM_BUILD_ROOT%{_javadir} && for jar in `ls *-%{version}.jar`; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) (cd $RPM_BUILD_ROOT%{_javadir}/ant && for jar in `ls *-%{version}.jar`; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) # XSLs mkdir -p $RPM_BUILD_ROOT%{ant_home}/etc cp -p src/etc/*.xsl $RPM_BUILD_ROOT%{ant_home}/etc/ rm $RPM_BUILD_ROOT%{ant_home}/etc/ant-update.xsl rm $RPM_BUILD_ROOT%{ant_home}/etc/changelog.xsl rm $RPM_BUILD_ROOT%{ant_home}/etc/log.xsl rm $RPM_BUILD_ROOT%{ant_home}/etc/tagdiff.xsl mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d # OPT_JAR_LIST fragments echo "antlr ant/ant-antlr" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/antlr echo "bsf ant/ant-apache-bsf" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/apache-bsf echo "xml-commons-resolver ant/ant-apache-resolver" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/apache-resolver echo "jakarta-commons-logging ant/ant-commons-logging" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/commons-logging #echo "jakarta-commons-net ant/ant-commons-net" > $RPM_BUILD_ROOT% {_sysconfdir}/% {ant_name}.d/commons-net echo "bcel ant/ant-apache-bcel" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/apache-bcel echo "log4j ant/ant-apache-log4j" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/apache-log4j echo "oro ant/ant-apache-oro" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/apache-oro echo "regexp ant/ant-apache-regexp" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/apache-regexp echo "javamail jaf ant/ant-javamail" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/javamail echo "jdepend ant/ant-jdepend" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/jdepend echo "ant/ant-jmf" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/jmf #echo "jsch ant/ant-jsch" > $RPM_BUILD_ROOT% {_sysconfdir}/% {ant_name}.d/jsch echo "junit ant/ant-junit" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/junit echo "ant/ant-nodeps" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/nodeps echo "ant/ant-swing" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/swing echo "jaxp_transform_impl ant/ant-trax" > $RPM_BUILD_ROOT%{_sysconfdir}/%{ant_name}.d/trax # link jars to ant_home/lib mkdir -p $RPM_BUILD_ROOT/%{ant_home}/lib pushd $RPM_BUILD_ROOT/%{ant_home}/lib find ../../java/%{ant_name}/ -name "*.jar" -exec ln -sf {} \; popd %files %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-antlr.jar %{ant_home}/lib/%{ant_name}-antlr.jar %{_javadir}/%{ant_name}/%{ant_name}-antlr-%{version}.jar %{ant_home}/lib/%{ant_name}-antlr-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/antlr %files -n ant-apache-bsf %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-apache-bsf.jar %{ant_home}/lib/%{ant_name}-apache-bsf.jar %{_javadir}/%{ant_name}/%{ant_name}-apache-bsf-%{version}.jar %{ant_home}/lib/%{ant_name}-apache-bsf-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/apache-bsf %files -n ant-apache-resolver %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-apache-resolver.jar %{ant_home}/lib/%{ant_name}-apache-resolver.jar %{_javadir}/%{ant_name}/%{ant_name}-apache-resolver-%{version}.jar %{ant_home}/lib/%{ant_name}-apache-resolver-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/apache-resolver %files -n ant-commons-logging %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-commons-logging.jar %{ant_home}/lib/%{ant_name}-commons-logging.jar %{_javadir}/%{ant_name}/%{ant_name}-commons-logging-%{version}.jar %{ant_home}/lib/%{ant_name}-commons-logging-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/commons-logging #% files -n ant-commons-net #% defattr(0644,root,root,0755) #% {_javadir}/% {ant_name}/% {ant_name}-commons-net.jar #% {_javadir}/% {ant_name}/% {ant_name}-commons-net-% {version}.jar #% {_sysconfdir}/% {ant_name}.d/commons-net #% ifarch % ix86 # %files -n ant-apache-bcel %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-apache-bcel.jar %{ant_home}/lib/%{ant_name}-apache-bcel.jar %{_javadir}/%{ant_name}/%{ant_name}-apache-bcel-%{version}.jar %{ant_home}/lib/%{ant_name}-apache-bcel-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/apache-bcel %files -n ant-apache-log4j %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-apache-log4j.jar %{ant_home}/lib/%{ant_name}-apache-log4j.jar %{_javadir}/%{ant_name}/%{ant_name}-apache-log4j-%{version}.jar %{ant_home}/lib/%{ant_name}-apache-log4j-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/apache-log4j %files -n ant-apache-oro %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-apache-oro.jar %{ant_home}/lib/%{ant_name}-apache-oro.jar %{_javadir}/%{ant_name}/%{ant_name}-apache-oro-%{version}.jar %{ant_home}/lib/%{ant_name}-apache-oro-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/apache-oro %dir %{ant_home}/etc/ %{ant_home}/etc/maudit-frames.xsl %files -n ant-apache-regexp %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-apache-regexp.jar %{ant_home}/lib/%{ant_name}-apache-regexp.jar %{_javadir}/%{ant_name}/%{ant_name}-apache-regexp-%{version}.jar %{ant_home}/lib/%{ant_name}-apache-regexp-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/apache-regexp %files -n ant-javamail %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-javamail.jar %{ant_home}/lib/%{ant_name}-javamail.jar %{_javadir}/%{ant_name}/%{ant_name}-javamail-%{version}.jar %{ant_home}/lib/%{ant_name}-javamail-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/javamail %files -n ant-jdepend %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-jdepend.jar %{ant_home}/lib/%{ant_name}-jdepend.jar %{_javadir}/%{ant_name}/%{ant_name}-jdepend-%{version}.jar %{ant_home}/lib/%{ant_name}-jdepend-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/jdepend %dir %{ant_home}/etc/ %{ant_home}/etc/jdepend.xsl %{ant_home}/etc/jdepend-frames.xsl %files -n ant-jmf %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-jmf.jar %{ant_home}/lib/%{ant_name}-jmf.jar %{_javadir}/%{ant_name}/%{ant_name}-jmf-%{version}.jar %{ant_home}/lib/%{ant_name}-jmf-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/jmf #% files -n ant-jsch #% defattr(0644,root,root,0755) #% {_javadir}/% {ant_name}/% {ant_name}-jsch.jar #% {_javadir}/% {ant_name}/% {ant_name}-jsch-% {version}.jar #% {_sysconfdir}/% {ant_name}.d/jsch %files -n ant-junit %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-junit.jar %{ant_home}/lib/%{ant_name}-junit.jar %{_javadir}/%{ant_name}/%{ant_name}-junit-%{version}.jar %{ant_home}/lib/%{ant_name}-junit-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/junit %dir %{ant_home}/etc/ %{ant_home}/etc/junit-frames.xsl %{ant_home}/etc/junit-noframes.xsl %{ant_home}/etc/junit-frames-xalan1.xsl %files -n ant-nodeps %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-nodeps.jar %{ant_home}/lib/%{ant_name}-nodeps.jar %{_javadir}/%{ant_name}/%{ant_name}-nodeps-%{version}.jar %{ant_home}/lib/%{ant_name}-nodeps-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/nodeps %{ant_home}/etc/common2master.xsl %files -n ant-swing %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-swing.jar %{ant_home}/lib/%{ant_name}-swing.jar %{_javadir}/%{ant_name}/%{ant_name}-swing-%{version}.jar %{ant_home}/lib/%{ant_name}-swing-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/swing %files -n ant-trax %defattr(0644,root,root,0755) %dir %{ant_home}/lib/ %dir %{ant_home}/ %{_javadir}/%{ant_name}/%{ant_name}-trax.jar %{ant_home}/lib/%{ant_name}-trax.jar %{_javadir}/%{ant_name}/%{ant_name}-trax-%{version}.jar %{ant_home}/lib/%{ant_name}-trax-%{version}.jar %config %{_sysconfdir}/%{ant_name}.d/trax %dir %{ant_home}/etc/ %{ant_home}/etc/mmetrics-frames.xsl %{ant_home}/etc/coverage-frames.xsl %changelog * Sun Feb 17 2008 coolo@suse.de - fix changelog for build service * Sun Jul 08 2007 dbornkessel@suse.de - add links to jar files in /usr/share/ant/lib * Fri Jul 06 2007 dbornkessel@suse.de - make packages noarch, as jai was removed - update to version 1.7.0 major changes are (for a complete list, consult /usr/share/doc/packages/ant/WHATSNEW): Changes that could break older environments: ------------------------------------------- * Initial support for JDK 6 (JSR 223) scripting. <*script*> tasks will now use javax.scripting if BSF is not available, or if explicitly requested by using a "manager" attribute. * The -noproxy option which was in the previous 1.7 alpha and beta releases has been removed. It is the default behavior and not needed. * Removed launcher classes from nodeps jar. * filter reader uses ISO-8859-1 encoding to read the java class file. Bugzilla report 33604. * Defer reference process. Bugzilla 36955, 34458, 37688. This may break build files in which a reference was set in a target which was never executed. Historically, Ant would set the reference early on, during parse time, so the datatype would be defined. Now it requires the reference to have been in a bit of the build file which was actually executed. If you get an error about an undefined reference, locate the reference and move it somewhere where it is used, or fix the depends attribute of the target in question to depend on the target which defines the reference/datatype. *