[tiles-autotag] 01/02: Initial packaging
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Thu Apr 14 10:34:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository tiles-autotag.
commit 586d1879b0e8359c0bb1521affd1f2bb368d87ff
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue Apr 12 13:26:37 2016 +0200
Initial packaging
---
debian/README.source | 9 ++++++
debian/changelog | 5 ++++
debian/compat | 1 +
debian/control | 29 +++++++++++++++++++
debian/copyright | 18 ++++++++++++
debian/libtiles-autotag-java.poms | 35 +++++++++++++++++++++++
debian/maven.ignoreRules | 2 ++
debian/maven.properties | 3 ++
debian/maven.rules | 3 ++
debian/orig-tar.sh | 20 +++++++++++++
debian/patches/01-xmlpull-dependency.patch | 18 ++++++++++++
debian/patches/02-velocity-compatibility.patch | 39 ++++++++++++++++++++++++++
debian/patches/series | 2 ++
debian/rules | 7 +++++
debian/source/format | 1 +
debian/watch | 4 +++
16 files changed, 196 insertions(+)
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..491e050
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,9 @@
+Information about tiles-autotag
+-------------------------------
+
+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/changelog b/debian/changelog
new file mode 100644
index 0000000..07fe71f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+tiles-autotag (1.1.0-1) unstable; urgency=medium
+
+ * Initial release (Closes: #820738)
+
+ -- Emmanuel Bourg <ebourg at apache.org> Mon, 11 Apr 2016 22:01:43 +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..63d4d46
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: tiles-autotag
+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), default-jdk, maven-debian-helper (>= 1.5)
+Build-Depends-Indep: junit4,
+ libcommons-io-java,
+ libeasymock-java,
+ libfreemarker-java,
+ libmaven-bundle-plugin-java,
+ libmaven2-core-java,
+ libplexus-compiler-java,
+ libqdox-java,
+ libxstream-java,
+ velocity
+Standards-Version: 3.9.8
+Vcs-Git: https://anonscm.debian.org/git/pkg-java/tiles-autotag.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/tiles-autotag.git
+Homepage: http://tiles.apache.org/tiles-autotag/
+
+Package: libtiles-autotag-java
+Architecture: all
+Depends: ${maven:Depends}, ${misc:Depends}
+Suggests: ${maven:OptionalDepends}
+Description: Automatic tag generation for Apache Tiles
+ Autotag generates tags (or tag-like) artifact from a common template
+ code for a range of templating languages. JSP tags, Freemarker directive
+ models and Velocity directives are generated from a common template model.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d3d46c8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,18 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Tiles Autotag
+Source: http://tiles.apache.org/tiles-autotag/
+Comment:
+ The FREEMARKER-LICENSE.txt and XSTREAM-LICENSE.txt files do not apply
+ to the code in this package.
+
+Files: *
+Copyright: 2010-2012, The Apache Software Foundation
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016, Emmanuel Bourg <ebourg at apache.org>
+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/libtiles-autotag-java.poms b/debian/libtiles-autotag-java.poms
new file mode 100644
index 0000000..f0f55c6
--- /dev/null
+++ b/debian/libtiles-autotag-java.poms
@@ -0,0 +1,35 @@
+# 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 --no-parent --has-package-version
+tiles-autotag-core-runtime/pom.xml --has-package-version
+tiles-autotag-core/pom.xml --has-package-version
+tiles-autotag-jsp/pom.xml --has-package-version
+tiles-autotag-freemarker/pom.xml --has-package-version
+tiles-autotag-velocity/pom.xml --has-package-version
+maven-autotag-plugin/pom.xml --has-package-version
+assembly/pom.xml --ignore
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..a059d02
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,2 @@
+
+org.apache.maven.plugins maven-release-plugin * * * *
diff --git a/debian/maven.properties b/debian/maven.properties
new file mode 100644
index 0000000..37dea91
--- /dev/null
+++ b/debian/maven.properties
@@ -0,0 +1,3 @@
+# Include here properties to pass to Maven during the build.
+# For example:
+# maven.test.skip=true
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..3fa7d48
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,3 @@
+
+junit junit * s/.*/4.x/ * *
+org.codehaus.plexus plexus-compiler* * s/.*/2.x/ * *
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..7dbca67
--- /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=../tiles-autotag_$VERSION.orig.tar.xz
+DIR=tiles-autotag-$VERSION
+TAG=$(echo "tiles-autotag-$VERSION" | sed -re's/~(alpha|beta|rc)/-\1-/')
+
+svn export http://svn.apache.org/repos/asf/tiles/autotag/tags/${TAG}/ $DIR
+XZ_OPT=--best tar -c -J -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/patches/01-xmlpull-dependency.patch b/debian/patches/01-xmlpull-dependency.patch
new file mode 100644
index 0000000..fad6f58
--- /dev/null
+++ b/debian/patches/01-xmlpull-dependency.patch
@@ -0,0 +1,18 @@
+Description: Add an explicit dependency on xpp3 to avoid a runtime exception
+ (xstream < 1.4 did depend on xpp3, but it became optional in the version 1.4)
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/maven-autotag-plugin/pom.xml
++++ b/maven-autotag-plugin/pom.xml
+@@ -59,6 +59,11 @@
+ <version>1.3.1</version>
+ </dependency>
+ <dependency>
++ <groupId>xpp3</groupId>
++ <artifactId>xpp3</artifactId>
++ <version>debian</version>
++ </dependency>
++ <dependency>
+ <groupId>org.apache.tiles</groupId>
+ <artifactId>tiles-autotag-jsp</artifactId>
+ <version>1.1.0</version>
diff --git a/debian/patches/02-velocity-compatibility.patch b/debian/patches/02-velocity-compatibility.patch
new file mode 100644
index 0000000..5f11205
--- /dev/null
+++ b/debian/patches/02-velocity-compatibility.patch
@@ -0,0 +1,39 @@
+Description: Ignore the tests relying on the behavior of Velocity < 1.7
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/tiles-autotag-core/src/test/java/org/apache/tiles/autotag/generate/AbstractTemplateSuiteGeneratorTest.java
++++ b/tiles-autotag-core/src/test/java/org/apache/tiles/autotag/generate/AbstractTemplateSuiteGeneratorTest.java
+@@ -174,6 +174,7 @@
+ * @throws ParseErrorException If something goes wrong.
+ * @throws ResourceNotFoundException If something goes wrong.
+ */
++ @org.junit.Ignore
+ @Test(expected = AutotagRuntimeException.class)
+ public void testGenerateException3() throws Exception {
+ directory.delete();
+@@ -202,6 +203,7 @@
+ * @throws ParseErrorException If something goes wrong.
+ * @throws ResourceNotFoundException If something goes wrong.
+ */
++ @org.junit.Ignore
+ @Test(expected = AutotagRuntimeException.class)
+ public void testGenerateException4() throws Exception {
+ directory.delete();
+--- a/tiles-autotag-core/src/test/java/org/apache/tiles/autotag/generate/AbstractTemplateClassGeneratorTest.java
++++ b/tiles-autotag-core/src/test/java/org/apache/tiles/autotag/generate/AbstractTemplateClassGeneratorTest.java
+@@ -177,6 +177,7 @@
+ * Test method for {@link AbstractTemplateClassGenerator#generate(File, String, TemplateSuite, TemplateClass, Map)}.
+ * @throws Exception If something goes wrong.
+ */
++ @org.junit.Ignore
+ @Test(expected = AutotagRuntimeException.class)
+ public void testGenerateException3() throws Exception {
+ directory.delete();
+@@ -208,6 +209,7 @@
+ * @throws ParseErrorException If something goes wrong.
+ * @throws ResourceNotFoundException If something goes wrong.
+ */
++ @org.junit.Ignore
+ @Test(expected = AutotagRuntimeException.class)
+ public void testGenerateException4() throws Exception {
+ directory.delete();
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..dbe6232
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01-xmlpull-dependency.patch
+02-velocity-compatibility.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..aba914b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --buildsystem=maven
+
+get-orig-source:
+ uscan --download-current-version --force-download --no-symlink
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..40d7b36
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+opts="uversionmangle=s/-(alpha|beta|rc)(-)?/~$1$2/" \
+ http://svn.apache.org/repos/asf/tiles/autotag/tags/ \
+ tiles-autotag-(\d.*)/ debian debian/orig-tar.sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/tiles-autotag.git
More information about the pkg-java-commits
mailing list