From 095a0948f13ed5088c14c16ddadf331e59f5e3e4 Mon Sep 17 00:00:00 2001 From: openKylinBot Date: Tue, 7 May 2024 15:47:15 +0800 Subject: [PATCH] Import Debian changes 8.7-ok1 maven-ant-helper (8.7-ok1) nile; urgency=medium * Build for openKylin. --- debian/README | 20 ++++++++++++++ debian/build.properties | 15 +++++++++++ debian/build.xml | 60 +++++++++++++++++++++++++++++++++++++++++ debian/changelog | 5 ++++ debian/control | 38 ++++++++++++++++++++++++++ debian/copyright | 22 +++++++++++++++ debian/dirs | 1 + debian/docs | 1 + debian/rules | 21 +++++++++++++++ debian/source/format | 1 + 10 files changed, 184 insertions(+) create mode 100644 debian/README create mode 100644 debian/build.properties create mode 100644 debian/build.xml create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..8038021 --- /dev/null +++ b/debian/README @@ -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 Sun, 27 May 2007 03:30:35 +0200 + -- Paul Cager Wed, 13 Jun 2007 11:03:27 +0100 diff --git a/debian/build.properties b/debian/build.properties new file mode 100644 index 0000000..2f91ecc --- /dev/null +++ b/debian/build.properties @@ -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= diff --git a/debian/build.xml b/debian/build.xml new file mode 100644 index 0000000..0a0ab78 --- /dev/null +++ b/debian/build.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..99efb0b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +maven-ant-helper (8.7-ok1) nile; urgency=medium + + * Build for openKylin. + + -- openKylinBot Tue, 07 May 2024 15:47:15 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..fc0c8c9 --- /dev/null +++ b/debian/control @@ -0,0 +1,38 @@ +Source: maven-ant-helper +Section: java +Priority: optional +Maintainer: openKylin Developers +Uploaders: Torsten Werner , + Ludovic Claude +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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..29770cb --- /dev/null +++ b/debian/copyright @@ -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 +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'. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..adf371d --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/share/maven-ant-helper diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..df6f1f3 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +debian/README diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..03b704d --- /dev/null +++ b/debian/rules @@ -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 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)