[libaxiom-java] 01/21: Initial packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Mar 24 10:34:39 UTC 2016


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

ebourg-guest pushed a commit to branch master
in repository libaxiom-java.

commit 96f20a5df29be44b1eebb18937eb52a2482a719b
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Mar 24 09:15:09 2016 +0100

    Initial packaging
---
 debian/ant.properties |   2 +
 debian/build.xml      | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/changelog      |  17 ++++++++
 debian/compat         |   1 +
 debian/control        |  25 ++++++++++++
 debian/copyright      |  55 ++++++++++++++++++++++++++
 debian/orig-tar.sh    |  18 +++++++++
 debian/rules          |  28 +++++++++++++
 debian/watch          |   2 +
 9 files changed, 254 insertions(+)

diff --git a/debian/ant.properties b/debian/ant.properties
new file mode 100644
index 0000000..82b239a
--- /dev/null
+++ b/debian/ant.properties
@@ -0,0 +1,2 @@
+ant.build.javac.target=1.4
+ant.build.javac.source=1.4
diff --git a/debian/build.xml b/debian/build.xml
new file mode 100644
index 0000000..f7c3642
--- /dev/null
+++ b/debian/build.xml
@@ -0,0 +1,106 @@
+<project name="axiom" basedir=".." default="build">
+
+  <property name="modules.dir" value="${basedir}/modules"/>
+  <property name="src.subdir" value="src/main/java"/>
+  <property name="test.subdir" value="src/test/java"/>
+  <property name="rsrc.subdir" value="src/main/resources"/>
+  <property name="build.dir" value="${basedir}/build"/>
+  <property name="target.dir" value="${basedir}/target"/>
+
+  <path id="classpath">
+    <fileset dir="${target.dir}">
+      <include name="**/*.jar"/>
+    </fileset>
+  </path>
+  <path id="classpath.test">
+    <dirset dir="${modules.dir}">
+       <include name="*/${test.subdir}"/>
+    </dirset>
+    <path refid="classpath"/>
+  </path>
+
+  <target name="build">
+    <mkdir dir="${build.dir}"/>
+    <mkdir dir="${target.dir}"/>
+    <antcall target="dojar">
+      <param name="jarname" value="axiom-api"/>
+    </antcall>
+    <antcall target="dojar">
+      <param name="jarname" value="axiom-dom"/>
+    </antcall>
+    <antcall target="dojar">
+      <param name="jarname" value="axiom-impl"/>
+    </antcall>
+  </target>
+
+  <target name="test">
+    <antcall target="compile-module-test">
+      <param name="jarname" value="axiom-api"/>
+    </antcall>
+    <antcall target="compile-module-test">
+      <param name="jarname" value="axiom-dom"/>
+    </antcall>
+    <antcall target="compile-module-test">
+      <param name="jarname" value="axiom-impl"/>
+    </antcall>
+    <antcall target="test-module">
+      <param name="jarname" value="axiom-api"/>
+    </antcall>
+    <antcall target="test-module">
+      <param name="jarname" value="axiom-dom"/>
+    </antcall>
+    <antcall target="test-module">
+      <param name="jarname" value="axiom-impl"/>
+    </antcall>
+  </target>
+
+  <target name="clean" depends="clean-compile-test">
+    <delete dir="${build.dir}"/>
+    <delete dir="${target.dir}"/>
+  </target>
+
+  <target name="dojar">
+    <mkdir dir="${build.dir}/${jarname}"/>
+    <javac srcdir="${modules.dir}/${jarname}/${src.subdir}"
+           destdir="${build.dir}/${jarname}"
+           classpathref="classpath"
+           deprecation="false"
+           failonerror="true"/>
+    <jar destfile="${target.dir}/${jarname}-${artifactVersion}.jar">
+      <fileset dir="${build.dir}/${jarname}">
+        <include name="**/*"/>
+      </fileset>
+      <fileset dir="${modules.dir}/${jarname}/${rsrc.subdir}">
+        <include name="**/*"/>
+      </fileset>
+    </jar>
+  </target>
+
+  <target name="compile-module-test">
+    <javac srcdir="${modules.dir}/${jarname}/${test.subdir}">
+      <classpath>
+        <path refid="classpath.test"/>
+      </classpath>
+    </javac>
+  </target>
+
+  <target name="clean-compile-test">
+    <delete>
+      <fileset dir="${modules.dir}" includes="axiom-*/${test.subdir}/**/*.class" />
+    </delete>
+  </target>
+
+  <target name="test-module">
+    <junit haltonfailure="yes">
+      <classpath refid="classpath.test"/>
+      <formatter type="plain" usefile="false"/>
+      <batchtest>
+        <fileset dir="${modules.dir}/${jarname}/${test.subdir}">
+          <include name="**/*Test.java"/>
+          <include name="**/*TestCase.java"/>
+        </fileset>
+      </batchtest>
+    </junit>
+  </target>
+
+</project>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e643277
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,17 @@
+libaxiom-java (1.2.8-1) unstable; urgency=low
+
+  * Port package to pkg-java based largely on existing Ubuntu package
+
+ -- Chris Grzegorczyk <grze at eucalyptus.com>  Thu, 17 Dec 2009 05:12:24 -0800
+
+libaxiom-java (1.2.8-0ubuntu2) karmic; urgency=low
+
+  * Added debian/ant.properties to build java2-compatible code
+
+ -- Thierry Carrez <thierry.carrez at ubuntu.com>  Mon, 24 Aug 2009 11:06:48 +0200
+
+libaxiom-java (1.2.8-0ubuntu1) karmic; urgency=low
+
+  * Initial release. New Eucalyptus dependency.
+
+ -- Thierry Carrez <thierry.carrez at ubuntu.com>  Fri, 24 Jul 2009 14:55:33 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..567f663
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: libaxiom-java
+Section: java
+Priority: optional
+Maintainer: Chris Grzegorczyk <grze at eucalyptus.com>
+DM-Upload-Allowed: yes
+Uploaders: Graziano Obertelli <graziano at eucalyptus.com>, Kyo Lee <kyo.lee at eucalyptus.com>
+XSBC-Original-Maintainer: Thierry Carrez <thierry.carrez at ubuntu.com>
+Build-Depends-Indep: default-jdk,
+  libcommons-logging-java,
+  libjaxen-java,
+  liblog4j1.2-java,
+  libgnumail-java,
+  libgnuinet-java,
+  libxerces2-java,
+  junit
+Build-Depends: ant-optional, debhelper (>= 5), cdbs (>= 0.4.5.3)
+Standards-Version: 3.8.3
+
+Package: libaxiom-java
+Architecture: all
+Depends: default-jre-headless | java2-runtime-headless, ${misc:Depends}
+Description: Apache AXIOM Java library (AXIs Object Model)
+ Apache AXIOM is a StAX-based, XML Infoset compliant object model which
+ supports on-demand building of the object tree.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..085d7e8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,55 @@
+This package was debianized by Thierry Carrez <thierry.carrez at ubuntu.com> on
+Tue, 23 Jun 2009 09:53:10 +0200
+
+Source tarballs were tar.gz-ed from the .zip source distribution downloaded
+from: http://archive.apache.org/dist/ws/commons/axiom/
+
+Copyright:
+    This product includes software developed by
+    The Apache Software Foundation (http://www.apache.org/).
+    Portions Copyright 2006 International Business Machines Corp.
+    axiom-tests/test-resources/xml/test/tests.xsl file is
+      Copyright (C) 2000-2002 bob mcwhirter & James Strachan
+
+Authors:
+    The Apache Software Foundation, including but not limited to:
+    Saminda Abeyruwan
+    Afkham Azeez
+    Eran Chinthaka
+    Glen Daniels
+    Jaliya Ekanayake
+    Nandana Mihindukulasooriya
+    Ruchith Fernando
+    Thilina Gunarathne
+    Chathura Herath
+    Deepal Jayasinghe
+    Chatra Nakkawita
+    Srinath Perera
+    Ajith Ranabahu
+    Venkat Reddy
+    Rich Scheuerle
+    Ashutosh Shahi
+    Aleksander Slominski
+    Davanum Srinivas
+    Jayachandra Sekhara Rao Sunkara
+    Andreas Veithen
+    Dasarath Weerathunga
+    Sanjiva Weerawarana
+
+License:
+    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.
+
+On Debian GNU/Linux and Ubuntu systems, the complete text of the Apache 2.0
+License can be found in the /usr/share/common-licenses/Apache-2.0 file.
+
+The same license and copyright applies to the Debian packaging.
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100644
index 0000000..ecd1afb
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# $1 = version
+TAR=../libaxiom-java_$2.orig.tar.gz
+DIR=libaxiom-java-$2.orig
+
+# clean up the upstream tarball
+svn export  http://svn.apache.org/repos/asf/webservices/commons/tags/axiom/$2/ $DIR
+GZIP=--best tar -c -z -f $TAR $DIR
+rm -rf $DIR
+rm ../$2
+
+# 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..6e963cd
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,28 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+SRCARCHIVE           := http://archive.apache.org/dist/ws/commons/axiom/
+SRCDIRECTORY         := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 'y/\./_/')
+JAVA_HOME            := /usr/lib/jvm/default-java
+DEB_ANT_CHECK_TARGET := test
+DEB_ANT_BUILDFILE    := ./debian/build.xml
+DEB_ANT_ARGS         := -DartifactVersion=$(DEB_UPSTREAM_VERSION)
+DEB_JARS             := commons-logging-api jaxen log4j-1.2 xercesImpl \
+                        gnumail inetlib ant-junit junit
+
+binary-post-install/libaxiom-java::
+	for jar in api dom impl; do \
+		dh_install -plibaxiom-java target/axiom-$$jar-$(DEB_UPSTREAM_VERSION).jar usr/share/java; \
+		dh_link -plibaxiom-java usr/share/java/axiom-$$jar-$(DEB_UPSTREAM_VERSION).jar usr/share/java/axiom-$$jar.jar; \
+	done
+
+get-orig-source:
+	mkdir -p orig_tmp
+	cd orig_tmp && \
+		wget $(SRCARCHIVE)/$(SRCDIRECTORY)/axiom-$(DEB_UPSTREAM_VERSION)-src.zip && \
+		unzip -n axiom-$(DEB_UPSTREAM_VERSION)-src.zip && \
+		tar czf ../../libaxiom-java_$(DEB_UPSTREAM_VERSION).orig.tar.gz axiom-$(DEB_UPSTREAM_VERSION)
+	rm -rf orig_tmp
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ee2d5f7
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://svn.apache.org/repos/asf/webservices/commons/tags/axiom/ ([0-9].*)/ debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list