Import Debian changes 1.10.13-ok1

ant (1.10.13-ok1) yangtze; urgency=medium

  * Build for openKylin.
This commit is contained in:
denghao 2023-03-03 09:39:00 +08:00
parent 885d0fe350
commit 3a408e5495
24 changed files with 5409 additions and 0 deletions

9
debian/README.source vendored Normal file
View File

@ -0,0 +1,9 @@
Patch System
============
This package uses quilt to manage all modifications to the upstream
source. Changes are stored in the source package as diffs in
debian/patches and applied during the build.
See /usr/share/doc/quilt/README.source for a detailed explanation.

10
debian/ant-doc.doc-base.1 vendored Normal file
View File

@ -0,0 +1,10 @@
Document: ant-api
Title: Programmer API for ant (Java-based build system)
Author: The Apache Ant Development Team
Abstract: This is the programmer API of Ant, a system independent
(i.e. not shell based) build tool that uses XML files as "Makefiles".
Section: Programming
Format: HTML
Index: /usr/share/doc/ant/api/index.html
Files: /usr/share/doc/ant/api/*.html

10
debian/ant-doc.doc-base.2 vendored Normal file
View File

@ -0,0 +1,10 @@
Document: ant-doc2
Title: Manual for ant (Java-based build system)
Author: The Apache Ant Development Team
Abstract: This is the manual of Ant, a system independent (i.e. not shell
based) build tool that uses XML files as "Makefiles".
Section: Programming
Format: HTML
Index: /usr/share/doc/ant/manual/index.html
Files: /usr/share/doc/ant/manual/*.html

5
debian/ant-doc.docs vendored Normal file
View File

@ -0,0 +1,5 @@
manual
NOTICE
README
WHATSNEW
CONTRIBUTORS

2
debian/ant-doc.install vendored Normal file
View File

@ -0,0 +1,2 @@
build/javadocs/* usr/share/doc/ant/api/

3
debian/ant-optional.dirs vendored Normal file
View File

@ -0,0 +1,3 @@
usr/share/ant/lib
usr/share/ant/etc
usr/share/java

13
debian/ant-optional.install vendored Normal file
View File

@ -0,0 +1,13 @@
src/etc/ant-update.xsl /usr/share/ant/etc/
src/etc/changelog.xsl /usr/share/ant/etc/
src/etc/coverage-frames.xsl /usr/share/ant/etc/
src/etc/jdepend-frames.xsl /usr/share/ant/etc/
src/etc/jdepend.xsl /usr/share/ant/etc/
src/etc/junit-frames-xalan1.xsl /usr/share/ant/etc/
src/etc/junit-frames.xsl /usr/share/ant/etc/
src/etc/junit-noframes.xsl /usr/share/ant/etc/
src/etc/log.xsl /usr/share/ant/etc/
src/etc/maudit-frames.xsl /usr/share/ant/etc/
src/etc/mmetrics-frames.xsl /usr/share/ant/etc/
src/etc/tagdiff.xsl /usr/share/ant/etc/
src/etc/checkstyle/*.xsl /usr/share/ant/etc/checkstyle/

20
debian/ant-optional.poms vendored Normal file
View File

@ -0,0 +1,20 @@
src/etc/poms/ant-antlr/pom.xml
src/etc/poms/ant-apache-bcel/pom.xml
src/etc/poms/ant-apache-bsf/pom.xml
src/etc/poms/ant-apache-log4j/pom.xml
src/etc/poms/ant-apache-oro/pom.xml
src/etc/poms/ant-apache-regexp/pom.xml
src/etc/poms/ant-apache-resolver/pom.xml
src/etc/poms/ant-apache-xalan2/pom.xml
src/etc/poms/ant-commons-logging/pom.xml
src/etc/poms/ant-commons-net/pom.xml
src/etc/poms/ant-javamail/pom.xml
src/etc/poms/ant-jdepend/pom.xml
src/etc/poms/ant-jmf/pom.xml
src/etc/poms/ant-jsch/pom.xml
src/etc/poms/ant-junit/pom.xml
src/etc/poms/ant-junit4/pom.xml
src/etc/poms/ant-junitlauncher/pom.xml
src/etc/poms/ant-swing/pom.xml
src/etc/poms/ant-testutil/pom.xml
src/etc/poms/ant-xz/pom.xml

111
debian/ant.1 vendored Normal file
View File

@ -0,0 +1,111 @@
.TH ant 1 "Feb 2010" "Debian GNU/Linux"
.SH NAME
ant \- a Java based make tool.
.SH SYNOPSIS
.B ant
[\fIOPTIONS\fR] [\fITARGET\fR [\fITARGET2\fR [\fITARGET3\fR] ...\fR]\fR]
.SH DESCRIPTION
Like
.B make
.B ant
is a tool by which projects can be build. But unlike it,
.B ant
is based on Java which means it will run on every platform
for which a Java Virtual Machine is available. This makes it a great
tool for building Java software.
By default it takes information from
.B build.xml
which describes the targets.
.TP
\fB\-help, \-h\fR
print help on the command line options
.TP
\fB\-projecthelp, \-p\fR
print project help information
.TP
\fB\-version\fR
print the version information
.TP
\fB\-diagnostics\fR
print information that might be helpful to diagnose or report problems
.TP
\fB\-quiet, \-q\fR
be extra quiet
.TP
\fB\-silent, \-S\fR
print nothing but task outputs and build failures
.TP
\fB\-verbose, \-v\fR
be extra verbose
.TP
\fB\-debug, \-d\fR
print debugging information
.TP
\fB\-emacs, \-e\fR
produce logging information without adornments
.TP
\fB\-lib\fR <\fIpath\fR>
specifies a path to search for jars and classes
.TP
\fB\-logfile\fR <\fIfile\fR>
use the given file to output log to
.TP
\fB\-logger\fR <\fIclassname\fR>
use the given class to perform logging
.TP
\fB\-listener\fR <\fIclassname\fR>
add an instance of the given class as a project listener
.TP
\fB\-noinput\fR
do not allow interactive input
.TP
\fB\-buildfile, \-file, \-f\fR <\fIfile\fR>
use the given buildfile instead of the default
.B build.xml
file. This is the
.B ant
equivalent of
.B Makefile
.TP
\fB\-D\fR<\fIproperty\fR>=<\fIvalue\fR>
use value for the given property
.TP
\fB\-keep-going, \-k\fR
execute all targets that do not depend on failed target(s)
.TP
\fB\-propertyfile\fR <\fIname\fR>
load all properties from file with \-D properties taking precedence
.TP
\fB\-inputhandler\fR <\fIclass\fR>
the class which will handle input requests
.TP
\fB\-find, \-s\fR <\fIfile\fR>
search for buildfile towards the root of the filesystem and use it
.TP
\fB\-nice\fR <\fInumber\fR>
A niceness value for the main thread: 1 (lowest) to 10 (highest); 5 is the default
.TP
\fB\-nouserlib\fR
Run ant without using the jar files from ${user.home}/.ant/lib
.TP
\fB\-noclasspath\fR
Run ant without using CLASSPATH
.TP
\fB\-autoproxy\fR
Java 5 or later : use the OS proxy settings
.TP
\fB\-main\fR <\fIclass\fR>
Override Ant's normal entry point
.SH SEE ALSO
.BR make (1)
.BR mvn (1)
.SH AUTHOR
This manpage is written by Egon Willighagen <egonw@sci.kun.nl>

5
debian/ant.dirs vendored Normal file
View File

@ -0,0 +1,5 @@
usr/bin
usr/share/ant/bin
usr/share/ant/etc
usr/share/ant/lib
usr/share/java

2
debian/ant.links vendored Normal file
View File

@ -0,0 +1,2 @@
/usr/share/ant/bin/ant /usr/bin/ant
/usr/share/ant/etc/ant-bootstrap.jar /usr/share/java/ant-bootstrap.jar

2
debian/ant.manpages vendored Normal file
View File

@ -0,0 +1,2 @@
debian/ant.1
debian/build.xml.5

4
debian/ant.poms vendored Normal file
View File

@ -0,0 +1,4 @@
src/etc/poms/pom.xml --no-parent
src/etc/poms/ant/pom.xml
src/etc/poms/ant-launcher/pom.xml

5
debian/ant.properties vendored Normal file
View File

@ -0,0 +1,5 @@
base64.present=true
sunuue.present=true
offline=true
javac.target=1.8
javac.source=1.8

173
debian/build.xml.5 vendored Normal file
View File

@ -0,0 +1,173 @@
.TH build.xml 5 "February 2010" "Debian Linux"
.SH NAME
build.xml \- configuration file used by Apache Ant to build projects
.SH DESCRIPTION
The file
.B build.xml
is the default configuration file used by
.B ant
to determine target to build for a specific project. It can be
considered the ant equivalent of Makefile.
The format of
.B ant
is XML and for each project a separate file is constructed.
The buildfile consists of one or more tasks. An example is
given below.
<project default="compile">
<target name="compile">
<javac srcdir="src"/>
</target>
</project>
This example has one target and it is defaulted. The target itself
consists of one task
.B javac
which compiles the files in the \fIsrc\fR directory.
.SH TARGETS
Targets can depend on other targets. These dependencies are given by
the \fIdepends\fR attribute of the <\fItarget\fR> element.
.SH TASKS
A task is a piece of code that is executed.
.B Ant
recognizes built-in task, optional tasks, but one can also write new
tasks.
.B Built-in tasks
The built-in tasks are: \fIAnt\fR, \fIAntCall\fR, \fIAntStructure\fR,
\fIAntVersion\fR, \fIApply\fR, \fIApt\fR, \fIAvailable\fR, \fIBasename\fR,
\fIBuildNumber\fR, \fIBUnzip2\fR, \fIBZip2\fR, \fIChecksum\fR, \fIChmod\fR,
\fIConcat\fR, \fICondition\fR, \fICopy\fR, \fIComponentdef\fR, \fICvs\fR,
\fICvsChangeLog\fR, \fICvsVersion\fR, \fICVSPass\fR, \fICvsTagDiff\fR,
\fIDefaultexcludes\fR, \fIDelete\fR, \fIDeltree\fR, \fIDependset\fR,
\fIDiagnostics\fR, \fIDirname\fR, \fIEar\fR, \fIEcho\fR, \fIEchoXML\fR,
\fIExec\fR, \fIFail\fR, \fIFilter\fR, \fIFixCRLF\fR, \fIGenKey\fR, \fIGet\fR,
\fIHostInfo\fR, \fIGUnzip\fR, \fIGZip\fR, \fIImport\fR, \fIInclude\fR,
\fIInput\fR, \fIJar\fR, \fIJava\fR, \fIJavac\fR, \fIJavadoc\fR, \fILength\fR,
\fILoadFile\fR, \fILoadProperties\fR, \fILoadResource\fR, \fILocal\fR,
\fIMakeURL\fR, \fIMail\fR, \fIMacroDef\fR, \fIManifest\fR, \fIManifestClassPath\fR,
\fIMkdir\fR, \fIMove\fR, \fINice\fR, \fIParallel\fR, \fIPatch\fR,
\fIPathConvert\fR, \fIPreSetDef\fR, \fIProperty\fR, \fIPropertyHelper\fR,
\fIRecord\fR, \fIReplace\fR, \fIResourceCount\fR, \fIRetry\fR, \fIRmic\fR,
\fISequential\fR, \fISignJar\fR, \fISleep\fR, \fISql\fR, \fISubAnt\fR,
\fISync\fR, \fITar\fR, \fITaskdef\fR, \fITempfile\fR, \fITouch\fR,
\fITruncate\fR, \fITStamp\fR, \fITypedef\fR, \fIUnjar\fR, \fIUntar\fR,
\fIUnwar\fR, \fIUnzip\fR, \fIUptodate\fR, \fIWaitfor\fR, \fIWhichResource\fR,
\fIWar\fR, \fIXmlProperty\fR, \fIXSLT\fR, \fIZip\fR
.TP
\fBJava\fR
Executes a Java class within the running (Ant) VM or forks another VM if
specified. Below are some of the attributes to the <\fIjava\fR> element:
.B classname
(required) the Java class to execute
.B fork
if enabled triggers the class execution in another VM (disabled by default)
.B jvm
the command used to invoke the Java Virtual Machine, default is
\fIjava\fR. The command is resolved by java.lang.Runtime.exec().
Ignored if fork is disabled.
Other arguments are \fIclasspath\fR, \fIclasspathref\fR, \fImaxmemory\fR,
\fIfailonerror\fR, \fIdir\fR and \fIoutput\fR.
.TP
\fBJavac\fR
Compiles a source tree within the running (Ant) VM.
.B srcdir
(required) location of the java files
.B destdir
location to store the class files
.B debug
indicates whether source should be compiled
with debug information; defaults to off
.B target
generate class files for specific VM version
(e.g., 1.4, 1.5, etc).
.B includes
comma-separated list of patterns of files that
must be included; all files are included when omitted
.B excludes
comma-separated list of patterns of files that
must be excluded; no files (except default
excludes) are excluded when omitted.
.B defaultexcludes
indicates whether default excludes should be
used (yes | no); default excludes are used
when omitted.
Other arguments are \fIincludesfile\fR, \fIexcludesfile\fR,
\fIclasspath\fR, \fIbootclasspath\fR, \fIclasspathref\fR,
\fIbootclasspathref\fR, \fIextdirs\fR, \fIencoding\fR,
\fIdeprecation\fR, \fIverbose\fR, \fIincludeAntRuntime\fR,
\fIincludeJavaRuntime\fR and \fIfailonerror\fR.
.SH Properties
A project can have a set of properties, which consist of a name value
combination. Within tasks they can be used by placing them between
"${" and "}", as in "${builddir}/classes".
.B Built-in Properties
Ant provides access to all system properties as if they had been defined
using a <\fIproperty\fR> task. For example, ${os.name} expands to the name of
the operating system.
.TP
\fBbasedir\fR
the absolute path of the project's basedir (as set
with the basedir attribute of <project>).
.TP
\fBant.file\fR
the absolute path of the buildfile.
.TP
\fBant.version\fR
the version of Ant.
.TP
\fBant.project.name\fR
the name of the project that is currently executing;
it is set in the name attribute of <project>.
.TP
\fBant.java.version\fR
the JVM version Ant detected.
.SH Classpath
The classpath can be set by using the <\fIclasspath\fR>
element:
<classpath>
<pathelement path="${classpath}"/>
<pathelement location="lib/helper.jar"/>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
.SH SEE ALSO
.BR ant (1)
.SH AUTHOR
This manpage is made by Egon Willighagen <egonw@sci.kun.nl>
and based on the Ant Manual <\fIhttp://ant.apache.org/manual/\fR>.

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
ant (1.10.13-ok1) yangtze; urgency=medium
* Build for openKylin.
-- denghao <denghao@kylinos.cn> Fri, 03 Mar 2023 09:39:00 +0800

103
debian/control vendored Normal file
View File

@ -0,0 +1,103 @@
Source: ant
Section: java
Priority: optional
Maintainer: Openkylin Developers <packaging@lists.openkylin.top>
Build-Depends: antlr,
debhelper-compat (= 13),
default-jdk,
junit,
junit4 (>= 4.11),
junit5,
libactivation-java,
libbcel-java (>= 5.0),
libbsf-java (>= 2.3.0rc1),
libcommons-logging-java,
libcommons-net-java,
libmail-java,
libjdepend-java,
libjsch-java,
liblog4j1.2-java,
liboro-java,
libregexp-java,
libxalan2-java (>= 2.4.0),
libxml-commons-resolver1.1-java (>= 1.2-7~),
libxz-java,
maven-repo-helper (>> 1.0)
Standards-Version: 4.6.2
Homepage: http://ant.apache.org
Vcs-Git: https://salsa.debian.org/java-team/ant.git
Vcs-Browser: https://salsa.debian.org/java-team/ant
Rules-Requires-Root: no
Package: ant
Architecture: all
Multi-Arch: foreign
Depends: default-jre-headless (>= 2:1.8) | java8-runtime-headless,
${misc:Depends}
Recommends: ant-optional
Suggests: ant-doc, default-jdk | java-compiler | java-sdk
Description: Java based build tool like make
Apache Ant is a Java library and command-line tool whose mission is to drive
processes described in build files as targets and extension points dependent
upon each other. The main known usage of Ant is the build of Java applications.
Ant supplies a number of built-in tasks allowing to compile, assemble, test
and run Java applications. Ant can also be used effectively to build non Java
applications, for instance C or C++ applications. More generally, Ant can be
used to pilot any type of process which can be described in terms of targets
and tasks.
.
This package contains the scripts and the core tasks libraries.
Package: ant-optional
Architecture: all
Multi-Arch: foreign
Depends: ant (= ${source:Version}), ${misc:Depends}
Suggests: antlr,
javacc,
junit,
junit4,
jython,
libactivation-java,
libbcel-java (>= 5.0),
libbsf-java,
libcommons-logging-java,
libcommons-net-java,
libmail-java,
libjaxp1.3-java,
libjdepend-java,
libjsch-java,
liblog4j1.2-java,
liboro-java,
libregexp-java,
libxalan2-java (>= 2.4.0-1),
libxml-commons-resolver1.1-java,
libxz-java
Description: Java based build tool like make - optional libraries
Apache Ant is a Java library and command-line tool whose mission is to drive
processes described in build files as targets and extension points dependent
upon each other. The main known usage of Ant is the build of Java applications.
Ant supplies a number of built-in tasks allowing to compile, assemble, test
and run Java applications. Ant can also be used effectively to build non Java
applications, for instance C or C++ applications. More generally, Ant can be
used to pilot any type of process which can be described in terms of targets
and tasks.
.
This package contains the optional tasks libraries.
Package: ant-doc
Architecture: all
Multi-Arch: foreign
Section: doc
Depends: ${misc:Depends}
Suggests: ant
Description: Java based build tool like make - API documentation and manual
Apache Ant is a Java library and command-line tool whose mission is to drive
processes described in build files as targets and extension points dependent
upon each other. The main known usage of Ant is the build of Java applications.
Ant supplies a number of built-in tasks allowing to compile, assemble, test
and run Java applications. Ant can also be used effectively to build non Java
applications, for instance C or C++ applications. More generally, Ant can be
used to pilot any type of process which can be described in terms of targets
and tasks.
.
This package contains the manual of ant as well as the API documentation.

4855
debian/copyright vendored Normal file

File diff suppressed because it is too large Load Diff

2
debian/maven.publishedRules vendored Normal file
View File

@ -0,0 +1,2 @@
s/ant/org.apache.ant/ * * s/.*/debian/

10
debian/maven.rules vendored Normal file
View File

@ -0,0 +1,10 @@
junit junit jar s/3\..*/3.x/
junit junit jar s/4\..*/4.x/
antlr antlr jar s/2\..*/2.x/
s/bcel/org.apache.bcel/ bcel jar s/5\..*/5.x/
commons-logging s/commons-logging-api/commons-logging/ * s/.*/debian/
commons-net commons-net jar s/1\..+/1.x/
commons-net commons-net jar s/2\..+/2.x/
log4j log4j jar s/1\.2\..*/1.2.x/
s/regexp/jakarta-regexp/ s/regexp/jakarta-regexp/ * s/.*/debian/
s/javax.mail/com.sun.mail/ s/mail/javax.mail/ * s/.*/debian/

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
# You must remove unused comment lines for the released package.

55
debian/rules vendored Executable file
View File

@ -0,0 +1,55 @@
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
DEPENDENCIES := antlr bcel bsf commons-logging javax.activation javax.mail jdepend junit junit4 junit-platform-commons junit-platform-engine junit-platform-launcher hamcrest-all log4j-1.2 oro regexp xalan2 serializer xml-resolver-1.2 commons-net jsch xz
BUILD_DATE := $(shell date --date='@$(SOURCE_DATE_EPOCH)' --utc +'%B %-d %Y')
%:
dh $@ --with maven-repo-helper
override_dh_auto_configure:
# Link the dependencies in lib/optional
mkdir -p lib/optional
for DEPENDENCY in $(DEPENDENCIES); do ln -s /usr/share/java/$$DEPENDENCY.jar lib/optional/$$DEPENDENCY.jar; done
# Bootstrapping
JAVA_HOME=/usr/lib/jvm/default-java ./bootstrap.sh
# Normal build
bootstrap/bin/ant -propertyfile debian/ant.properties -DBUILD_DATE='${BUILD_DATE}' jars test-jar
override_dh_auto_build-arch:
override_dh_auto_build-indep:
bootstrap/bin/ant -propertyfile debian/ant.properties javadocs
override_dh_installdocs:
dh_installdocs --exclude=manual/LICENSE
override_mh_install:
# Override mh_install to install extra links in /usr/share/ant/lib/
mh_installpoms -pant
mh_installjar -pant -l src/etc/poms/ant/pom.xml build/lib/ant.jar /usr/share/ant/lib/ant.jar
mh_installjar -pant -l src/etc/poms/ant-launcher/pom.xml build/lib/ant-launcher.jar /usr/share/ant/lib/ant-launcher.jar
mh_installpoms -pant-optional
for MODULE in antlr apache-bcel apache-bsf apache-log4j apache-oro apache-regexp apache-resolver apache-xalan2 \
commons-logging commons-net javamail jdepend jmf jsch junit junit4 junitlauncher swing testutil xz; do \
mh_installjar -pant-optional -l src/etc/poms/ant-$$MODULE/pom.xml build/lib/ant-$$MODULE.jar /usr/share/ant/lib/ant-$$MODULE.jar; \
done
override_dh_install-indep:
dh_install -i
dh_install -pant build/lib/ant-bootstrap.jar /usr/share/ant/etc/
# Installing these files does not work with dh_install because of the file permissions
mkdir -p debian/ant/usr/share/ant/bin
install -m 755 src/script/ant debian/ant/usr/share/ant/bin
install -m 755 src/script/antRun debian/ant/usr/share/ant/bin
install -m 755 src/script/*.pl debian/ant/usr/share/ant/bin
override_dh_compress:
dh_compress -XWHATSNEW
override_dh_auto_clean:
rm -Rf bin build bootstrap lib/optional/*.jar

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

3
debian/watch vendored Normal file
View File

@ -0,0 +1,3 @@
version=4
opts="repack,compression=xz" \
https://www.apache.org/dist/ant/source/apache-ant-(.*)-src\.tar\.gz