[maven-archetype] 01/03: Initial debianization

Eugenio Cano-Manuel zero123-guest at alioth.debian.org
Fri Sep 6 16:51:34 UTC 2013


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

zero123-guest pushed a commit to branch master
in repository maven-archetype.

commit 65d73b8da11363160b999b2176f90ac86205eaa0
Author: Eugenio Cano-Manuel <eugeniocanom at gmail.com>
Date:   Fri Sep 6 10:59:55 2013 +0200

    Initial debianization
---
 debian/README.source                |    9 +++++++
 debian/add-modello-version.sh       |    6 +++++
 debian/changelog                    |    5 ++++
 debian/compat                       |    1 +
 debian/control                      |   47 +++++++++++++++++++++++++++++++++++
 debian/copyright                    |   18 ++++++++++++++
 debian/libmaven-archetype-java.poms |   36 +++++++++++++++++++++++++++
 debian/maven.cleanIgnoreRules       |    1 +
 debian/maven.ignoreRules            |   16 ++++++++++++
 debian/maven.properties             |    7 ++++++
 debian/maven.publishedRules         |    7 ++++++
 debian/maven.rules                  |   19 ++++++++++++++
 debian/orig-tar.sh                  |   20 +++++++++++++++
 debian/rules                        |   15 +++++++++++
 debian/source/format                |    1 +
 debian/watch                        |    4 +++
 16 files changed, 212 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..80bb0cc
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about maven-archetype
+---------------------------------
+
+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.
diff --git a/debian/add-modello-version.sh b/debian/add-modello-version.sh
new file mode 100755
index 0000000..a898db7
--- /dev/null
+++ b/debian/add-modello-version.sh
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+for pom in $(find archetype-common archetype-models -iname 'pom.xml')
+do
+	sed -i -e'/<artifactId>modello-maven-plugin<\/artifactId>/a <version>1.4.1<\/version>' $pom
+done
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..03ab530
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+maven-archetype (2.2-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #721982)
+
+ -- Eugenio Cano-Manuel Mendoza <eugeniocanom at gmail.com>  Thu, 05 Sep 2013 12:14:34 +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..ded3717
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,47 @@
+Source: maven-archetype
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Eugenio Cano-Manuel Mendoza <eugeniocanom at gmail.com>
+Build-Depends: debhelper (>= 9),
+ default-jdk,
+ maven-debian-helper (>= 1.6.5)
+Build-Depends-Indep:
+ ant-optional,
+ libmaven-antrun-plugin-java,
+ libmaven-dependency-plugin-java,  
+ libmodello-maven-plugin1.4-java,
+ libplexus-containers1.5-java (>= 1.5.5),  
+ libcommons-io-java,
+ libdom4j-java,
+ libjchardet-java,
+ libjdom1-java (>= 1.1.3),
+ libmaven-invoker-java,
+ libmaven-parent-java (>= 21),
+ libmaven2-core-java,
+ libplexus-container-default-java,
+ libplexus-utils-java,
+ default-jdk-doc,
+ libcommons-io-java-doc,
+ libdom4j-java-doc,
+ libjdom1-java-doc,
+ libmaven2-core-java-doc,
+ libplexus-container-default-java-doc,
+ libplexus-containers1.5-java-doc,
+ libplexus-utils-java-doc,
+ libmaven-javadoc-plugin-java 
+Standards-Version: 3.9.4
+Vcs-Git: git://anonscm.debian.org/pkg-java/maven-archetype.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/maven-archetype.git
+Homepage: http://maven.apache.org/archetype
+
+Package: libmaven-archetype-java
+Architecture: all
+Depends: ${misc:Depends}, ${maven:Depends}
+Recommends: ${maven:OptionalDepends}
+Description: Maven Archetype
+ Maven Archetype is a set of tools to deal with archetypes, i.e. an abstract
+ representation of a kind of project that can be instantiated into a concrete
+ customized Maven project. An archetype knows which files will be part of
+ the instantiated project and which properties to fill to properly customize
+ the project.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..7fdfb32
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,18 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Maven Archetype
+Upstream-Contact: dev at maven.apache.org
+Source: http://maven.apache.org/archetype
+
+Files: *
+Copyright: 2007-2013, The Apache Software Foundation
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2013, Eugenio Cano-Manuel Mendoza <eugeniocanom at gmail.com>
+License: Apache-2.0
+
+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/libmaven-archetype-java.poms b/debian/libmaven-archetype-java.poms
new file mode 100644
index 0000000..e7391e8
--- /dev/null
+++ b/debian/libmaven-archetype-java.poms
@@ -0,0 +1,36 @@
+# 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
+archetype-testing/pom.xml --ignore
+archetype-models/pom.xml --has-package-version
+archetype-models/archetype-catalog/pom.xml --has-package-version
+archetype-models/archetype-descriptor/pom.xml --has-package-version
+archetype-models/archetype-registry/pom.xml --has-package-version
+archetype-common/pom.xml --has-package-version
+maven-archetype-plugin/pom.xml --ignore
+archetype-packaging/pom.xml --ignore
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..4f4cdca
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,16 @@
+
+org.apache.maven.archetype archetype-packaging jar * * *
+org.apache.maven.archetype archetype-testing pom * * *
+org.apache.maven.plugins maven-archetype-plugin maven-plugin * * *
+junit junit * * * *
+org.apache.maven.archetype archetype-proxy * * * *
+org.apache.maven.archetype archetype-repository * * * *
+org.apache.maven.plugins maven-surefire-plugin * * * *
+org.apache.maven.shared maven-plugin-testing-harness * * * *
+org.apache.maven.wagon wagon-file * * * *
+org.apache.maven.wagon wagon-http * * * *
+org.apache.rat apache-rat-plugin * * * *
+org.codehaus.cargo cargo-core-api-container * * * *
+org.codehaus.cargo cargo-core-api-generic * * * *
+org.codehaus.cargo cargo-core-container-jetty * * * *
+org.mortbay.jetty jetty * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..38959f4
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,7 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
+
+maven.test.skip=true
+maven.compiler.source=1.6
+maven.compiler.target=1.6
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..4b77a7f
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1,7 @@
+
+org.apache.maven.archetype archetype-catalog jar s/.*/debian/ * *
+org.apache.maven.archetype archetype-common jar s/.*/debian/ * *
+org.apache.maven.archetype archetype-descriptor jar s/.*/debian/ * *
+org.apache.maven.archetype archetype-models pom s/.*/debian/ * *
+org.apache.maven.archetype archetype-registry jar s/.*/debian/ * *
+org.apache.maven.archetype maven-archetype pom s/.*/debian/ * *
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..d35352e
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,19 @@
+
+commons-collections commons-collections jar s/3\..*/3.x/ * *
+s/jdom/org.jdom/ jdom jar s/1\..*/debian/ * *
+org.apache.maven maven-parent pom s/.*/debian/ * *
+org.apache.maven.archetype archetype-catalog jar s/.*/debian/ * *
+org.apache.maven.archetype archetype-common jar s/.*/debian/ * *
+org.apache.maven.archetype archetype-descriptor jar s/.*/debian/ * *
+org.apache.maven.archetype archetype-models pom s/.*/debian/ * *
+org.apache.maven.archetype archetype-registry jar s/.*/debian/ * *
+org.apache.maven.archetype maven-archetype pom s/.*/debian/ * *
+org.apache.velocity velocity jar s/.*/debian/ * *
+org.codehaus.modello modello-maven-plugin maven-plugin s/.*/1.4.x/ * *
+org.codehaus.plexus plexus-component-annotations jar s/.*/1.5.5/ * *
+org.codehaus.plexus plexus-component-metadata maven-plugin s/.*/1.5.5/ * *
+org.codehaus.plexus plexus-container-default jar s/1\.0-alpha.*/1.0-alpha/ * *
+org.codehaus.plexus plexus-interactivity-api jar s/.*/debian/ * *
+org.codehaus.plexus plexus-velocity jar s/.*/debian/ * *
+org.codehaus.modello modello-maven-plugin * s/.*/1.4.1/ * *
+s/ant/org.apache.ant/ * * s/.*/debian/ * *
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..a866402
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+#
+# Removes unwanted content from the upstream sources.
+# Called by uscan with '--upstream-version' <version> <file>
+#
+
+VERSION=$2
+TAR=../maven-archetype_$VERSION.orig.tar.gz
+DIR=maven-archetype-$VERSION
+TAG=$(echo "maven-archetype-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')
+
+svn export http://svn.apache.org/repos/asf/maven/archetype/tags/${TAG}/ $DIR
+GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
+rm -rf $DIR ../$TAG
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+  . .svn/deb-layout
+  mv $TAR $origDir && echo "moved $TAR to $origDir"
+fi
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..65c9ebe
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+
+export DH_VERBOSE=1
+
+%:
+	dh $@ --buildsystem=maven
+
+override_dh_auto_build:
+	sed -i -e's/<groupId>jdom<\/groupId>/<groupId>org.jdom<\/groupId>/' archetype-common/pom.xml
+	debian/add-modello-version.sh
+	dh_auto_build
+
+override_dh_auto_configure:
+	dh_auto_configure
+	sed -i '/1.4.x/d' archetype-common/pom.xml
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..2728680
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="uversionmangle=s/-(alpha|beta)-/~$1/" \
+  http://svn.apache.org/repos/asf/maven/archetype/tags/ \
+  maven-archetype-(\d.*)/ debian debian/orig-tar.sh

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-archetype.git



More information about the pkg-java-commits mailing list