[jenkins-ant-plugin] 01/02: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Oct 13 23:21:06 BST 2014


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository jenkins-ant-plugin.

commit 00224a3f7453573f2bb1c5b4bb78fe9feafad7b6
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Oct 14 00:10:05 2014 +0200

    Initial packaging
---
 debian/README.source                       | 29 ++++++++++++++++++
 debian/changelog                           |  5 ++++
 debian/compat                              |  1 +
 debian/control                             | 20 +++++++++++++
 debian/copyright                           | 48 ++++++++++++++++++++++++++++++
 debian/jenkins-ant-plugin.poms             | 28 +++++++++++++++++
 debian/maven.cleanIgnoreRules              |  1 +
 debian/maven.ignoreRules                   |  1 +
 debian/maven.properties                    |  5 ++++
 debian/maven.publishedRules                |  1 +
 debian/maven.rules                         |  3 ++
 debian/patches/01-set-parent-version.patch | 14 +++++++++
 debian/patches/series                      |  1 +
 debian/rules                               | 22 ++++++++++++++
 debian/source/format                       |  1 +
 debian/watch                               |  2 ++
 16 files changed, 182 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..0775551
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,29 @@
+Information about jenkins-ant-plugin
+------------------------------------
+
+This package was debianized using the mh_make command
+from the maven-debian-helper package.
+
+The build system uses Maven but prevents it from downloading
+anything from the Internet, making the build compliant with
+the Debian policy.
+
+
+Packaging new releases
+----------------------
+
+This plugin is a build dependency of the jenkins package. Everytime
+it's updated to a new upstream release the change has to be reflected
+in the war/pom.xml file of the jenkins source, otherwise the build
+will fail.
+
+
+Installation path
+-----------------
+
+This plugin is installed as a Maven artifact in the system repository
+under /usr/share/maven-repo, because it's used at build time by Maven
+to assemble the jenkins package. Unlike other Jenkins plugins it doesn't
+have and must not be installed in the /usr/share/jenkins/plugins directory,
+because it would become uninstallable from the Jenkins plugins management
+page and its removal could break other plugins relying on it.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a99e733
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+jenkins-ant-plugin (1.2-1) unstable; urgency=medium
+
+  * Initial release (Closes: #765102)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Mon, 13 Oct 2014 22:49:38 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..cb58730
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,20 @@
+Source: jenkins-ant-plugin
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Emmanuel Bourg <ebourg at apache.org>
+Build-Depends: debhelper (>= 9), cdbs, default-jdk, maven-debian-helper (>= 1.5), libjenkins-plugin-parent-java
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-java/jenkins-ant-plugin.git
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-java/jenkins-ant-plugin.git
+Homepage: http://wiki.jenkins-ci.org/display/JENKINS/Ant+Plugin
+
+Package: jenkins-ant-plugin
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Ant Plugin for Jenkins
+ Jenkins plugin for projects using Apache Ant as the build system.
+ .
+ This package is a build dependency of the jenkins packages. It's embedded
+ in the jenkins package and doesn't have to be installed separately.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..1cc6414
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,48 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Jenkins Ant Plugin
+Source: https://github.com/jenkinsci/ant-plugin
+
+Files: *
+Copyright: 2004-2009, Eric Lefevre-Ardant
+           2004-2009, Jene Jasper
+           2004-2009, Mike Salnikov
+           2004-2009, Oguz Dag
+           2004-2009, Reginaldo L. Russinholi
+           2004-2009, Simon Wiest
+           2004-2009, Wim Rosseel
+           2004-2010, Cleiber Silva
+           2004-2010, InfraDNA, Inc.
+           2004-2010, Knud Poulsen.
+           2004-2010, Kohsuke Kawaguchi
+           2004-2010, Seiji Sogabe
+           2004-2010, Simon Wiest
+           2004-2010, Sun Microsystems, Inc.
+           2004-2010, Tom Huybrechts
+           2004-2010, Yahoo! Inc.
+           2006-2008, Junio C Hamano
+           2011, CloudBees, Inc.
+           2013, Chunghwa Telecom Co., Ltd., Pei-Tang Huang
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+Files: debian/*
+Copyright: 2014, Emmanuel Bourg <ebourg at apache.org>
+License: Apache-2.0
+ On Debian systems, the full text of the Apache-2.0 license
+ can be found in the file '/usr/share/common-licenses/Apache-2.0'
diff --git a/debian/jenkins-ant-plugin.poms b/debian/jenkins-ant-plugin.poms
new file mode 100644
index 0000000..384eb61
--- /dev/null
+++ b/debian/jenkins-ant-plugin.poms
@@ -0,0 +1,28 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+#   --ignore: ignore this POM and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --no-parent: remove the <parent> tag from the POM
+#   --package=<package>: an alternative package to use when installing this POM
+#      and its artifact
+#   --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+#      of the version for the package.
+#   --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+#      during a clean operation with mh_cleanpom or mh_installpom
+#   --artifact=<path>: path to the build artifact associated with this POM,
+#      it will be installed when using the command mh_install. [mh_install]
+#   --java-lib: install the jar into /usr/share/java to comply with Debian
+#      packaging guidelines
+#   --usj-name=<name>: name to use when installing the library in /usr/share/java
+#   --usj-version=<version>: version to use when installing the library in /usr/share/java
+#   --no-usj-versionless: don't install the versionless link in /usr/share/java
+#   --dest-jar=<path>: the destination for the real jar.
+#     It will be installed with mh_install. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+pom.xml --has-package-version --classifier=hpi
diff --git a/debian/maven.cleanIgnoreRules b/debian/maven.cleanIgnoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.cleanIgnoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..e593715
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,5 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
+maven.test.skip=true
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..7281f07
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,3 @@
+
+org.jenkins-ci.plugins ant jar * * *
+org.jenkins-ci.plugins plugin * s/.*/debian/ * *
diff --git a/debian/patches/01-set-parent-version.patch b/debian/patches/01-set-parent-version.patch
new file mode 100644
index 0000000..c5a7532
--- /dev/null
+++ b/debian/patches/01-set-parent-version.patch
@@ -0,0 +1,14 @@
+Description: Change the version of the parent pom to the generic 'debian' version
+Author: Emmanuel Bourg <ebourg at pache.org>
+Forwarded: not-needed
+--- a/pom.xml
++++ b/pom.xml
+@@ -3,7 +3,7 @@
+   <parent>
+     <groupId>org.jenkins-ci.plugins</groupId>
+     <artifactId>plugin</artifactId>
+-    <version>1.456</version>
++    <version>debian</version>
+   </parent>
+ 
+   <artifactId>ant</artifactId>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a3d96ea
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-set-parent-version.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d2e3550
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/maven.mk
+
+JAVA_HOME := /usr/lib/jvm/default-java
+
+ARTIFACT_ID=ant
+PACKAGE=jenkins-$(ARTIFACT_ID)-plugin
+
+install/$(PACKAGE)::
+	# Install the pom
+	mh_installpom -p$(PACKAGE) --keep-pom-version --has-package-version pom.xml
+
+	# Install the hpi
+	mv target/$(ARTIFACT_ID).hpi target/$(ARTIFACT_ID)-$(DEB_UPSTREAM_VERSION).hpi
+	dh_install -p$(PACKAGE) target/$(ARTIFACT_ID)-$(DEB_UPSTREAM_VERSION).hpi \
+	                        usr/share/maven-repo/org/jenkins-ci/plugins/$(ARTIFACT_ID)/$(DEB_UPSTREAM_VERSION)/
+	rm -Rf debian/$(PACKAGE)/usr/share/maven-repo/org/jenkins-ci/plugins/$(ARTIFACT_ID)/debian
+
+get-orig-source:
+	uscan --download-current-version --force-download --rename
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)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..650b61d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/jenkinsci/ant-plugin/releases .*/ant-([\d\.]+).tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jenkins-ant-plugin.git



More information about the pkg-java-commits mailing list