This commit is contained in:
committed by
Git OBS Bridge
parent
57b84f200c
commit
aefa383991
109
ant.spec
109
ant.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package ant (Version 1.7.0)
|
||||
# spec file for package ant (Version 1.6.5)
|
||||
#
|
||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
@@ -11,18 +11,18 @@
|
||||
# norootforbuild
|
||||
|
||||
Name: ant
|
||||
BuildRequires: java-devel junit unzip xerces-j2 xml-commons-apis-bootstrap
|
||||
BuildRequires: java2-devel-packages xerces-j2
|
||||
%define ant_home %{_datadir}/ant
|
||||
%define section free
|
||||
%define cvs_name apache-%{name}
|
||||
Version: 1.7.0
|
||||
Release: 1
|
||||
Version: 1.6.5
|
||||
Release: 67
|
||||
Summary: A Java-Based Build Tool
|
||||
License: The Apache Software License, LICENSE.sax:
|
||||
License: The Apache Software License
|
||||
URL: http://jakarta.apache.org/
|
||||
Group: Development/Tools/Building
|
||||
Source0: %{cvs_name}-%{version}-src.tar.bz2
|
||||
Source2: %{cvs_name}-%{version}.ant.conf
|
||||
Source2: %{cvs_name}-1.6.5.ant.conf
|
||||
# Ant configuration file which is edited when each optional subpackage
|
||||
# is installed/uninstalled
|
||||
# Fix temp directory used for file containing large command strings (> 4k)
|
||||
@@ -117,8 +117,8 @@ Ant.
|
||||
%prep
|
||||
%setup -q -n apache-ant-%{version}
|
||||
%patch0
|
||||
#%patch1
|
||||
#%patch150 -p1
|
||||
%patch1
|
||||
%patch150 -p1
|
||||
# Fix temp directory used for file containing large command strings (> 4k)
|
||||
# clean jar files
|
||||
find . -name "*.jar" -exec rm -f {} \;
|
||||
@@ -127,7 +127,7 @@ find . -name "*.jar" -exec rm -f {} \;
|
||||
%build
|
||||
find . -name "*.jar" -delete
|
||||
# classpath selects optional components to build
|
||||
export CLASSPATH=$(%{_bindir}/build-classpath jaxp_parser_impl xml-commons-apis junit)
|
||||
export CLASSPATH=$(%{_bindir}/build-classpath jaxp_parser_impl xml-commons-apis)
|
||||
#[ -n "$JAVA_HOME" ] && unset JAVA_HOME
|
||||
#[ -r %{_sysconfdir}/java/java.conf ] && . %{_sysconfdir}/java/java.conf
|
||||
#[ -z "$JAVA_HOME" ] && JAVA_HOME=%{_jvmdir}/java
|
||||
@@ -139,6 +139,7 @@ sh build.sh --noconfig jars javadocs
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm src/script/ant.orig
|
||||
# ANT_HOME and subdirs
|
||||
mkdir -p $RPM_BUILD_ROOT%{ant_home}/{lib,etc,bin}
|
||||
# jars
|
||||
@@ -150,10 +151,6 @@ mkdir -p $RPM_BUILD_ROOT%{_javadir}/%{name}
|
||||
# jar aliases
|
||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do if [ -e ${jar} ]; then ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; fi; done)
|
||||
(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}.jar; do if [ -e ${jar} ]; then ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; fi; done)
|
||||
# link jars to ant_home/lib
|
||||
pushd $RPM_BUILD_ROOT/%{ant_home}/lib
|
||||
find ../../java -name "*.jar" -exec ln -sf {} \;
|
||||
popd
|
||||
# scripts: remove dos and os/2 scripts
|
||||
rm -f src/script/*.bat
|
||||
rm -f src/script/*.cmd
|
||||
@@ -206,7 +203,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%exclude %{_bindir}/*.pl
|
||||
%exclude %{_bindir}/*.py
|
||||
%dir %{ant_home}/lib
|
||||
%{ant_home}/lib/*
|
||||
%{ant_home}/etc
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@@ -225,91 +221,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
%changelog
|
||||
* Fri Jul 06 2007 - dbornkessel@suse.de
|
||||
- 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.
|
||||
* <classconstants> 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.
|
||||
* <script> and <scriptdef> now set the current thread context.
|
||||
* Unrestrict the dbvendor names in the websphere element of the ejbjar task.
|
||||
Bugzilla Report 40475.
|
||||
* <env> nested element in <java>, <exec> and others is now case-insensitive
|
||||
for windows OS. Bugzilla Report 28874.
|
||||
* Removed support for xalan1 completely. Users of Xalan1 for Ant builds will
|
||||
have to stay at ant 1.6.5 or upgrade to xalan2.
|
||||
* Use org.apache.log4j.Logger instead of org.apache.log4j.Category.
|
||||
Category has been deprecated for ~2 years and has been removed from
|
||||
the log4j code. Logger was introduced in log4j 1.2 so users of
|
||||
log4j 1.1 and log4j 1.0 need to upgrade to a newer version of log4j.
|
||||
Bugzilla Report 31951.
|
||||
* build.sysclasspath now also affects the bootclasspath handling of
|
||||
spawned Java VMs. If you set build.sysclasspath to anything other
|
||||
than "ignore" (or leave it unset, since "ignore" is the default when
|
||||
it comes to bootclasspath handling), then the bootclasspath of the
|
||||
VM running Ant will be added to the bootclasspath you've specified.
|
||||
* The <java fork="false"> now as per default installs a security manager
|
||||
using the default permissions. This is now independent of the
|
||||
failonerror attribute. Bugzilla report 33361.
|
||||
* <signjar> now notices when the jar and signedjar are equal, and switches
|
||||
to the same dependency logic as when signedjar is omitted. This may break
|
||||
something that depended upon signing in this situation. However, since
|
||||
invoking the JDK jarsigner program with -signedjar set to the source jar
|
||||
actually crashes the JVM on our (Java1.5) systems, we don't think any
|
||||
build files which actually worked will be affected by the change.
|
||||
* <signjar> used to ignore a nested fileset when a jar was also provided as an
|
||||
attribute, printing a warning message; now it signs files in the fileset.
|
||||
* An improved method of handling timestamp granularity differences between
|
||||
client and server was added to the <ftp> task. FTP servers typically
|
||||
have HH:mm timestamps whereas local filesystems have HH:mm:ss timestamps.
|
||||
Previously, this required tweaking with the timediffmillis attribute
|
||||
which also was used to handle timezone differences. Now, there is a new
|
||||
timestampgranularity attribute. The default value for get operations is 0
|
||||
since the user has the more powerful preservelastmodified attribute to work
|
||||
with. Since this is not available on put operations the default value
|
||||
adds a minute to the server timestamp in order to account for this,
|
||||
Scripts which previously used timediffmillis to do this compensation may
|
||||
need to be rewritten. timediffmillis has now been deprecated.
|
||||
* On Java1.5+, Ant automatically sets the system property
|
||||
java.net.useSystemProxies to true, which gives it automatic use of the local
|
||||
IE (Windows) or Gnome2 (Unix/Linux) proxy settings. This may break any build
|
||||
file that somehow relied on content outside the firewall being unreachable:
|
||||
use the -noproxy command-line option to disable this new feature.
|
||||
Note that the Java1.5 proxy configuration system still does not
|
||||
appear to work reliably on Windows or Linux.
|
||||
* Support for the XSL:P XML parser has been removed.
|
||||
Bugzilla Report 23455.
|
||||
* Visual Age for Java optional tasks removed.
|
||||
* Testlet (test) optional task removed.
|
||||
* Icontract optional task removed.
|
||||
* Metamata (maudit, mmetrics, and mparse tasks) removed.
|
||||
* Sitraka (jpcoverage, jpcovmerge, jpcovreport) tasks suppressed.
|
||||
* <fixcrlf> used \r (Mac) line endings on OS X, whose proper line separator
|
||||
is \n (Unix). Bugzilla report 39585.
|
||||
* <scp> now optionally supports the sftp protocol, you may need a
|
||||
newer jsch.jar. Bugzilla Report 39373.
|
||||
* Ant launcher program prints errors to stderr, and exits with a 2 exit code
|
||||
value if, for any reason, it cannot actually start Ant proper. This will only
|
||||
affect programs/scripts that called the launcher and which did not want to
|
||||
receive an error if Ant itself would not start
|
||||
* All .NET tasks are now deprecated in favor of the new .NET Antlib:
|
||||
http://ant.apache.org/antlibs/dotnet/index.html
|
||||
* Fri Sep 22 2006 - dbornkessel@suse.de
|
||||
- read in properties in /etc/ant.conf
|
||||
- added source=1.4
|
||||
|
Reference in New Issue
Block a user