[modello] 02/24: Initial Debian Packaging

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Jul 9 10:49:15 UTC 2015


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

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

commit 1f70f324644aa439378e3dac8c05c86bf6f7388f
Author: Damien Raude-Morvan <drazzib at debian.org>
Date:   Sun Dec 4 02:44:53 2011 +0100

    Initial Debian Packaging
---
 debian/build.properties                | 13 +++++
 debian/build.xml                       | 72 ++++++++++++++++++++++++++
 debian/changelog                       |  7 +++
 debian/compat                          |  1 +
 debian/control                         | 62 +++++++++++++++++++++++
 debian/copyright                       | 92 ++++++++++++++++++++++++++++++++++
 debian/libmodello1.4-java-doc.doc-base |  9 ++++
 debian/libmodello1.4-java.poms         | 12 +++++
 debian/maven.rules                     | 14 ++++++
 debian/orig-tar.sh                     | 19 +++++++
 debian/rules                           | 35 +++++++++++++
 debian/source/format                   |  1 +
 debian/watch                           |  2 +
 13 files changed, 339 insertions(+)

diff --git a/debian/build.properties b/debian/build.properties
new file mode 100644
index 0000000..ceffebf
--- /dev/null
+++ b/debian/build.properties
@@ -0,0 +1,13 @@
+classpath.compile=\
+           /usr/share/java/plexus-container-default.jar:\
+           /usr/share/java/plexus-compiler-api.jar:\
+           /usr/share/java/plexus-compiler-javac.jar:\
+           /usr/share/java/plexus-utils.jar:\
+           ${basedir}/modello-core/build/modello-core-${version}.jar:\
+           ${basedir}/modello-plugins/modello-plugin-java/build/modello-plugin-java-${version}.jar:\
+           ${basedir}/modello-plugins/modello-plugin-xml/build/modello-plugin-xml-${version}.jar:\
+           ${basedir}/modello-plugins/modello-plugin-xsd/build/modello-plugin-xsd-${version}.jar
+classpath.test=
+javadoc.dir=build/api
+maven.test.skip=true
+build.javaVersion=1.5
diff --git a/debian/build.xml b/debian/build.xml
new file mode 100644
index 0000000..996ee90
--- /dev/null
+++ b/debian/build.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+
+<project name="pkg-java" default="package" basedir="..">
+
+    <property file="debian/build.properties"/>
+    <property name="maven.build" value="/usr/share/maven-ant-helper/maven-build.xml"/>
+    <property file="/usr/share/maven-ant-helper/maven-defaults.properties"/>
+
+    <macrodef name="cleanmodule">
+	    <attribute name="dir"/>
+	    <sequential>
+		  <ant target="clean" antfile="${maven.build}" dir="@{dir}">
+            <property name="debian.dir" location="debian" />
+            <property name="project.dir" value="@{dir}" />
+          </ant> 
+	    </sequential>
+    </macrodef>
+
+    <macrodef name="packagemodule">
+	    <attribute name="dir"/>
+	    <sequential>
+		<ant target="package" antfile="${maven.build}" dir="@{dir}">
+          <property name="debian.dir" location="debian" />
+          <property name="project.dir" value="@{dir}" />
+		</ant>
+	    </sequential>
+    </macrodef>
+
+    <target name="clean">
+        <delete dir="build"/>
+      <cleanmodule dir="modello-core"/>
+      <cleanmodule dir="modello-plugins/modello-plugin-java"/>
+      <cleanmodule dir="modello-plugins/modello-plugin-converters"/>
+      <cleanmodule dir="modello-plugins/modello-plugin-dom4j"/>
+      <cleanmodule dir="modello-plugins/modello-plugin-jdom"/>
+      <cleanmodule dir="modello-plugins/modello-plugin-stax"/>
+      <cleanmodule dir="modello-plugins/modello-plugin-xsd"/>
+      <cleanmodule dir="modello-plugins/modello-plugin-xdoc"/>
+      <cleanmodule dir="modello-plugins/modello-plugin-xml"/>
+      <cleanmodule dir="modello-plugins/modello-plugin-xpp3"/>
+    </target>
+
+    <target name="package">
+      <packagemodule dir=""/>
+      <packagemodule dir="modello-core"/>
+      <packagemodule dir="modello-plugins/modello-plugin-java"/>
+      <packagemodule dir="modello-plugins/modello-plugin-converters"/>
+      <packagemodule dir="modello-plugins/modello-plugin-xml"/>
+      <packagemodule dir="modello-plugins/modello-plugin-dom4j"/>
+      <packagemodule dir="modello-plugins/modello-plugin-jdom"/>
+      <packagemodule dir="modello-plugins/modello-plugin-stax"/>
+      <packagemodule dir="modello-plugins/modello-plugin-xsd"/>
+      <packagemodule dir="modello-plugins/modello-plugin-xdoc"/>
+      <packagemodule dir="modello-plugins/modello-plugin-xpp3"/>
+    </target>
+
+    <target name="javadoc">
+        <javadoc destdir="${javadoc.dir}">
+        <packageset dir="modello-core/src/main/java/"/>
+	    <packageset dir="modello-plugins/modello-plugin-java/src/main/java/"/>
+	    <packageset dir="modello-plugins/modello-plugin-converters/src/main/java/"/>
+	    <packageset dir="modello-plugins/modello-plugin-dom4j/src/main/java/"/>
+	    <packageset dir="modello-plugins/modello-plugin-jdom/src/main/java/"/>
+	    <packageset dir="modello-plugins/modello-plugin-stax/src/main/java/"/>
+	    <packageset dir="modello-plugins/modello-plugin-xdoc/src/main/java/"/>
+	    <packageset dir="modello-plugins/modello-plugin-xml/src/main/java/"/>
+	    <packageset dir="modello-plugins/modello-plugin-xpp3/src/main/java/"/>
+	    <packageset dir="modello-plugins/modello-plugin-xsd/src/main/java/"/>
+        </javadoc>
+    </target>
+
+</project>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..93d7dfe
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,7 @@
+modello1.4 (1.4.1-1) unstable; urgency=low
+
+  * New upstream release:
+    - based on modello source package.
+    - require new source package to avoid conflict between Maven 2 / Maven 3.
+
+ -- Damien Raude-Morvan <drazzib at debian.org>  Sun, 04 Dec 2011 03:01:18 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..7b8ae56
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,62 @@
+Source: modello1.4
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Torsten Werner <twerner at debian.org>,
+           Ludovic Claude <ludovic.claude at laposte.net>,
+           Michael Koch <konqueror at gmx.de>,
+           Damien Raude-Morvan <drazzib at debian.org>
+Build-Depends-Indep: ant,
+                     ant-optional,
+                     default-jdk-doc,
+                     junit,
+                     libplexus-build-api-java,
+                     libplexus-compiler-api-java,
+                     libplexus-compiler-javac-java,
+                     libplexus-containers-java (>= 1.0~beta3.0.7),
+                     libplexus-containers-java-doc,
+                     libplexus-utils-java-doc,
+                     maven-ant-helper (>> 4),
+                     maven-repo-helper
+Build-Depends: cdbs, debhelper (>= 7), default-jdk
+Standards-Version: 3.9.2
+Vcs-Git: git://git.debian.org/git/pkg-java/modello1.4.git
+Vcs-Browser: http://git.debian.org/?p=pkg-java/modello1.4.git
+Homepage: http://modello.codehaus.org
+
+Package: libmodello1.4-java
+Architecture: all
+Depends: libplexus-build-api-java,
+         libplexus-containers-java (>= 1.0~beta3.0.7),
+         ${misc:Depends}
+Suggests: libmodello1.4-java-doc
+Description: a Data Model toolkit in use by the Maven 2 Project
+ Once a DataModel is defined, the toolkit can be used to generate any of the
+ following at compile time.
+ .
+    * Java Pojos of the DataModel.
+    * Java Pojos to XML Writer. (provided via xpp3, stax, jdom or dom4j)
+    * XML to Java Pojos Reader. (provided via xpp3, stax or dom4j)
+    * XDOC documentation of the DataModel.
+    * XML Schema to validate the DataModel.
+ .
+ Modello is used to build the maven system.
+
+Package: libmodello1.4-java-doc
+Architecture: all
+Section: doc
+Depends: default-jdk-doc, ${misc:Depends}
+Suggests: libmodello1.4-java
+Description: a Data Model toolkit in use by the Maven 2 Project
+ Once a DataModel is defined, the toolkit can be used to generate any of the
+ following at compile time.
+ .
+    * Java Pojos of the DataModel.
+    * Java Pojos to XML Writer. (provided via xpp3, stax, jdom or dom4j)
+    * XML to Java Pojos Reader. (provided via xpp3, stax or dom4j)
+    * XDOC documentation of the DataModel.
+    * XML Schema to validate the DataModel.
+ .
+ Modello is used to build the maven system.
+ .
+ This package provides the API documentation for Modello.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4b5d5a6
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,92 @@
+This package was debianized by Paul Cager <paul-debian at home.paulcager.org>
+Mon, 18 Jun 2007 17:12:05 +0100
+
+The Debian packaging is Copyright (c) 2007 Paul Cager and is licensed under
+the GNU General Public License version 2. On Debian systems, the complete text
+of the GNU General Public License version 2 can be found in
+'/usr/share/common-licenses/GPL-2'.
+
+
+modello was downloaded from
+
+    https://svn.codehaus.org/modello/tags/modello-1.0-alpha-13/
+
+Authors:
+
+    Brett Porter    brett at apache.org
+    Jason van Zyl   jason at maven.org
+    Dan Diephouse   dan at envoisolutions.com
+    Emmanuel Evenisse emmanuel at venisse.net
+    John Casey      jdcasey at commonjava.org
+    Trygve Laugstol trygvis at codehaus.org
+    Arnaud Heritier aheritier at gmail.com
+    Milos Kleint    mkleint at codehaus.org
+
+
+Copyright:
+
+    Copyright (C) 2004 - 2007, Codehaus.org
+    Copyright (C) 1999 Intalio, Inc
+
+License:
+
+    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.
+
+
+
+A number of files contain an additional license declaration:
+
+    Redistribution and use of this software and associated documentation
+    ("Software"), with or without modification, are permitted provided
+    that the following conditions are met:
+
+    1. Redistributions of source code must retain copyright
+       statements and notices.  Redistributions must also contain a
+       copy of this document.
+
+    2. Redistributions in binary form must reproduce the
+       above copyright notice, this list of conditions and the
+       following disclaimer in the documentation and/or other
+       materials provided with the distribution.
+
+    3. The name "Exolab" must not be used to endorse or promote
+       products derived from this Software without prior written
+       permission of Intalio, Inc.  For written permission,
+       please contact info at codehaus.org.
+
+    4. Products derived from this Software may not be called "Exolab"
+       nor may "Exolab" appear in their names without prior written
+       permission of Intalio, Inc. Exolab is a registered
+       trademark of Intalio, Inc.
+
+    5. Due credit should be given to the Exolab Project
+       (http://www.codehaus.org/).
+
+    THIS SOFTWARE IS PROVIDED BY INTALIO, INC. AND CONTRIBUTORS
+    ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
+    NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+    FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
+    INTALIO, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+    STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+    OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/libmodello1.4-java-doc.doc-base b/debian/libmodello1.4-java-doc.doc-base
new file mode 100644
index 0000000..be2e01c
--- /dev/null
+++ b/debian/libmodello1.4-java-doc.doc-base
@@ -0,0 +1,9 @@
+Document: libmodello1.4-java
+Title: API Javadoc for libmodello-java
+Author: Codehaus developers
+Abstract: This is the API Javadoc provided by the libmodello-java library.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libmodello1.4-java/api/index.html
+Files: /usr/share/doc/libmodello1.4-java/api/*
diff --git a/debian/libmodello1.4-java.poms b/debian/libmodello1.4-java.poms
new file mode 100644
index 0000000..86f1754
--- /dev/null
+++ b/debian/libmodello1.4-java.poms
@@ -0,0 +1,12 @@
+pom.xml --no-parent
+modello-core/pom.xml
+modello-plugins/pom.xml
+modello-plugins/modello-plugin-converters/pom.xml
+modello-plugins/modello-plugin-dom4j/pom.xml
+modello-plugins/modello-plugin-java/pom.xml
+modello-plugins/modello-plugin-jdom/pom.xml
+modello-plugins/modello-plugin-stax/pom.xml
+modello-plugins/modello-plugin-xdoc/pom.xml
+modello-plugins/modello-plugin-xml/pom.xml
+modello-plugins/modello-plugin-xpp3/pom.xml
+modello-plugins/modello-plugin-xsd/pom.xml
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..414e36c
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,14 @@
+junit junit jar s/3\..*/3.x/
+
+org.codehaus.modello modello * s/.*/1.4.x/ * *
+org.codehaus.modello modello-core * s/.*/1.4.x/ * *
+org.codehaus.modello modello-plugins * s/.*/1.4.x/ * *
+org.codehaus.modello modello-plugin-converters * s/.*/1.4.x/ * *
+org.codehaus.modello modello-plugin-dom4j * s/.*/1.4.x/ * *
+org.codehaus.modello modello-plugin-java * s/.*/1.4.x/ * *
+org.codehaus.modello modello-plugin-jdom * s/.*/1.4.x/ * *
+org.codehaus.modello modello-plugin-stax * s/.*/1.4.x/ * *
+org.codehaus.modello modello-plugin-xdoc * s/.*/1.4.x/ * *
+org.codehaus.modello modello-plugin-xml * s/.*/1.4.x/ * *
+org.codehaus.modello modello-plugin-xpp3 * s/.*/1.4.x/ * *
+org.codehaus.modello modello-plugin-xsd * s/.*/1.4.x/ * *
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
new file mode 100755
index 0000000..dbe25e6
--- /dev/null
+++ b/debian/orig-tar.sh
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+VERSION=$2
+TAR=../modello1.4_$VERSION.orig.tar.gz
+DIR=modello-$VERSION
+TAG=modello-$2
+
+svn export https://svn.codehaus.org/modello/tags/$TAG $DIR
+rm -rf $DIR/modello-maven-plugin
+rm -rf $DIR/modello-test
+tar -c -z -f $TAR $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..30ca480
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+PACKAGE              := $(DEB_SOURCE_PACKAGE)
+VERSION              := $(DEB_UPSTREAM_VERSION)
+JAVA_HOME            := /usr/lib/jvm/default-java
+DEB_JARS             := ant-nodeps junit plexus-build-api plexus-compiler-api \
+  plexus-compiler-javac plexus-velocity plexus-utils velocity
+DEB_ANT_BUILD_TARGET := package javadoc
+DEB_ANT_BUILDFILE    := debian/build.xml
+DEB_ANT_ARGS         := -Dpackage=$(PACKAGE) -Dversion=$(VERSION)
+API_DOCS             := build/api
+BASE_MODULES         := core
+PLUGINS              := converters dom4j java jdom stax xdoc \
+  xml xpp3 xsd
+
+get-orig-source:
+	uscan --force-download --download-version $(VERSION) --rename
+
+binary-post-install/lib$(PACKAGE)-java::
+	mh_installpoms -plib$(PACKAGE)-java 
+	set -e; for MODULE in $(BASE_MODULES); do \
+	  mh_installjar -plib$(PACKAGE)-java -l -s -j1.4.x modello-$$MODULE/pom.xml modello-$$MODULE/build/modello-$$MODULE-$(VERSION).jar; \
+	done
+	set -e; for MODULE in $(PLUGINS); do \
+	  mh_installjar -plib$(PACKAGE)-java -l -s -j1.4.x modello-plugins/modello-plugin-$$MODULE/pom.xml modello-plugins/modello-plugin-$$MODULE/build/modello-plugin-$$MODULE-$(VERSION).jar; \
+	done
+
+binary-post-install/lib$(PACKAGE)-java-doc::
+	dh_install -plib$(PACKAGE)-java-doc $(API_DOCS) usr/share/doc/lib$(PACKAGE)-java
+
+clean::
+	mh_clean
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..d48ede3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://svn.codehaus.org/modello/tags/ modello-(\d.*)/ debian debian/orig-tar.sh

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



More information about the pkg-java-commits mailing list