Import Debian changes 8.7-ok1

maven-ant-helper (8.7-ok1) nile; urgency=medium

  * Build for openKylin.
This commit is contained in:
openKylinBot 2024-05-07 15:47:15 +08:00 committed by luoyaoming
parent 4663bedf0c
commit 095a0948f1
10 changed files with 184 additions and 0 deletions

20
debian/README vendored Normal file
View File

@ -0,0 +1,20 @@
The Debian Package maven-ant-helper
-----------------------------------
This package provides helper scripts for anyone packaging Java components
within Debian. It will be particularly useful when packaging libraries using
"modello" to generate sources, such as the maven2 system.
It provides two scripts and one ant task:
* maven-build.xml -- a base build file providing much of the functionality
needed to build Java projects.
* maven-defaults.properties -- default properties for the above.
* ModelloTask -- provides an "modello" ant task to generate sources
from Modello definitions.
For an example of how to use maven-ant-helper, please see the Debian packaging
of "doxia".
-- Trygve Laugstøl <trygvis@inamo.no> Sun, 27 May 2007 03:30:35 +0200
-- Paul Cager <paul-debian@home.paulcager.org> Wed, 13 Jun 2007 11:03:27 +0100

15
debian/build.properties vendored Normal file
View File

@ -0,0 +1,15 @@
# Set the default Maven locations.
# See http://maven.apache.org/ref/current/maven-model/maven.html for names
build.sourceDirectory=src/main/java
build.testSourceDirectory=src/test/java
build.directory=build
build.outputDirectory=build/classes
build.testOutputDirectory=build/test-classes
javadoc.dir=${build.directory}/api
classpath.compile=
classpath.test=
classpath.full.compile=${build.outputDirectory}:${classpath.compile}
classpath.full.test=${build.testOutputDirectory}:${classpath.test}:${build.outputDirectory}:${classpath.compile}
maven.test.excludes=

60
debian/build.xml vendored Normal file
View File

@ -0,0 +1,60 @@
<?xml version="1.0"?>
<!--
This build file is used internally to build the maven-ant-helper package. Unlike
../maven-build.xml, it is not released as part of the binary package.
-->
<project name="pkg-java" default="package" basedir="..">
<target name="init">
<available property="available.resources" file="src/main/resources"/>
<fail unless="artifactId" message="Missing required property: artifactId"/>
<fail unless="version" message="Missing required property: version"/>
<fail unless="basedir" message="Missing required property: basedir"/>
<echo message="Compile classpath: ${classpath.full.compile}"/>
<echo message="Test classpath: ${classpath.full.test}"/>
</target>
<!--
| LIFECYCLE: Clean
|-->
<target name="clean">
<delete dir="${build.directory}"/>
</target>
<!--
| LIFECYCLE: jar
|
| This mimics the default Maven build life-cycle: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
|-->
<target name="process-resources" depends="init" if="available.resources">
<mkdir dir="${build.outputDirectory}"/>
<copy todir="${build.outputDirectory}">
<fileset dir="src/main/resources"/>
</copy>
</target>
<target name="compile" depends="process-resources">
<mkdir dir="${build.outputDirectory}"/>
<mkdir dir="${build.directory}/generated-sources"/>
<javac
destdir="${build.outputDirectory}"
classpath="${classpath.compile}"
nowarn="true"
source="1.4" target="1.4"
encoding="ISO-8859-1"
debug="on">
<src path="${build.sourceDirectory}"/>
</javac>
</target>
<target name="package" depends="compile">
<jar jarfile="${build.directory}/${artifactId}-${version}.jar"
basedir="${build.outputDirectory}"/>
</target>
</project>

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
maven-ant-helper (8.7-ok1) nile; urgency=medium
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.top> Tue, 07 May 2024 15:47:15 +0800

38
debian/control vendored Normal file
View File

@ -0,0 +1,38 @@
Source: maven-ant-helper
Section: java
Priority: optional
Maintainer: openKylin Developers <packaging@lists.openkylin.top>
Uploaders: Torsten Werner <twerner@debian.org>,
Ludovic Claude <ludovic.claude@laposte.net>
Build-Depends: ant,
ant-contrib,
ant-optional,
debhelper-compat (= 13),
default-jdk
Standards-Version: 4.5.1
Rules-Requires-Root: no
Vcs-Git: https://salsa.debian.org/java-team/maven-ant-helper.git
Vcs-Browser: https://salsa.debian.org/java-team/maven-ant-helper
Homepage: https://salsa.debian.org/java-team/maven-ant-helper
Package: maven-ant-helper
Architecture: all
Depends: ant,
ant-contrib,
ant-optional,
libstax-java,
maven-repo-helper (>= 1.4),
${misc:Depends}
Suggests: default-jdk-doc,
libmaven-plugin-tools-java,
libmaven3-core-java,
libmodello-java (>= 1.0),
libplexus-component-metadata-java
Description: helper scripts for building Maven components with ant
An environment that can be used to simplify the creation of Debian packages
to support the Maven system. A "modello" ant task is also provided.
.
maven-build.xml attempts to reproduce the Maven build life-cycle.
You can use it to build your jar or javadoc. If you have libmaven2-core-java
installed, you can even use it to launch some Maven plugins to generate
some code.

22
debian/copyright vendored Normal file
View File

@ -0,0 +1,22 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://salsa.debian.org/java-team/maven-ant-helper
Files: *
Copyright: 2007 Trygve Laugstøl <trygvis@inamo.no>
License: Apache-2.0
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.
The full text of the license can be found in
`/usr/share/common-licenses/Apache-2.0'.

1
debian/dirs vendored Normal file
View File

@ -0,0 +1 @@
usr/share/maven-ant-helper

1
debian/docs vendored Normal file
View File

@ -0,0 +1 @@
debian/README

21
debian/rules vendored Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --buildsystem=ant
override_dh_auto_build:
dh_auto_build -- -f debian/build.xml -DartifactId=$(DEB_SOURCE) -Dpackage=$(DEB_SOURCE) -Dversion=$(DEB_VERSION) -propertyfile debian/build.properties package
override_dh_auto_clean:
dh_auto_clean -- -f debian/build.xml -propertyfile debian/build.properties
override_dh_auto_install:
dh_install build/$(DEB_SOURCE)-$(DEB_VERSION).jar usr/share/java
dh_link usr/share/java/$(DEB_SOURCE)-$(DEB_VERSION).jar usr/share/java/$(DEB_SOURCE).jar
dh_installdirs -A usr/share/maven-ant-helper
dh_install maven-build.xml usr/share/maven-ant-helper
dh_install maven-defaults.properties usr/share/maven-ant-helper
dh_install manifest.mf usr/share/maven-ant-helper
dh_install bootstrap usr/share/maven-ant-helper

1
debian/source/format vendored Normal file
View File

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