[jenkins-matrix-project-plugin] 01/02: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Oct 13 08:03: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-matrix-project-plugin.

commit f22bb2e48bcc518b2d6690365544b2b3c30f6082
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Oct 13 08:37:13 2014 +0200

    Initial packaging
---
 debian/README.source                       | 29 ++++++++++++++++
 debian/changelog                           |  5 +++
 debian/compat                              |  1 +
 debian/control                             | 23 +++++++++++++
 debian/copyright                           | 54 ++++++++++++++++++++++++++++++
 debian/jenkins-matrix-project-plugin.poms  | 28 ++++++++++++++++
 debian/maven.cleanIgnoreRules              |  1 +
 debian/maven.ignoreRules                   |  3 ++
 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, 193 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..1d3eca3
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,29 @@
+Information about jenkins-matrix-project-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..096ad89
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+jenkins-matrix-project-plugin (1.3-1) unstable; urgency=medium
+
+  * Initial release (Closes: #765011)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Mon, 13 Oct 2014 08:45:47 +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..47c77cc
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,23 @@
+Source: jenkins-matrix-project-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-matrix-project-plugin.git
+Vcs-Browser: http://anonscm.debian.org/cgitb/pkg-java/jenkins-matrix-project-plugin.git
+Homepage: https://wiki.jenkins-ci.org/display/JENKINS/Matrix+Project+Plugin
+
+Package: jenkins-matrix-project-plugin
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Matrix Project Plugin for Jenkins
+ Multi-Configuration Projects are useful for instances where your builds will
+ make many similar build steps, and you would otherwise be duplicating steps.
+ This plugin allows you to specify what steps to duplicate, and create
+ a multiple-axis graph of the type of builds to create.
+ .
+ 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..544561b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,54 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Jenkins Matrix Project Plugin
+Source: https://github.com/jenkinsci/matrix-project-plugin
+
+Files: *
+Copyright: 2004-2009, Eric Lefevre-Ardant
+           2004-2009, Mike Salnikov
+           2004-2009, Oguz Dag
+           2004-2009, Reginaldo L. Russinholi
+           2004-2009, Simon Wiest
+           2004-2009, Wim Rosseel
+           2004-2009, Yahoo! Inc.
+           2004-2010, Cleiber Silva
+           2004-2010, Fernando Boaglio
+           2004-2010, Knud Poulsen
+           2004-2010, Sun Microsystems, Inc.
+           2004-2011, Jorg Heymans
+           2004-2011, Kohsuke Kawaguchi
+           2004-2011, Tom Huybrechts
+           2004-2012, Frederic Gurr
+           2004-2013, Seiji Sogabe
+           2006-2008, Junio C Hamano
+           2010, InfraDNA, Inc.
+           2010-2011, Alan Harder
+           2011, Christian Wolfgang
+           2012, Chris Johnson
+           2012, CloudBees, Inc.
+           2012, RedHat Inc
+           2013, Chunghwa Telecom Co., Ltd., Pei-Tang Huang
+           2014, Jesse Glick
+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-matrix-project-plugin.poms b/debian/jenkins-matrix-project-plugin.poms
new file mode 100644
index 0000000..384eb61
--- /dev/null
+++ b/debian/jenkins-matrix-project-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..4ac5356
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,3 @@
+org.codehaus.gmaven gmaven-plugin * * * *
+org.powermock * * * * *
+org.mockito * * * * *
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..7eaee4d
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,3 @@
+
+org.jenkins-ci.plugins matrix-project 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..6eac0ca
--- /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.561</version>
++        <version>debian</version>
+     </parent>
+     <artifactId>matrix-project</artifactId>
+     <version>1.3</version>
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..fa73284
--- /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=matrix-project
+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..169b261
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/jenkinsci/matrix-project-plugin/releases .*/matrix-project-([\d\.]+).tar.gz

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



More information about the pkg-java-commits mailing list