[pkg-java] r3386 - in trunk: . modello modello/debian

Paul Cager paulcager-guest at alioth.debian.org
Tue May 1 22:01:58 UTC 2007


Author: paulcager-guest
Date: 2007-05-01 22:01:57 +0000 (Tue, 01 May 2007)
New Revision: 3386

Added:
   trunk/modello/
   trunk/modello/debian/
   trunk/modello/debian/build.xml
   trunk/modello/debian/changelog
   trunk/modello/debian/compat
   trunk/modello/debian/control
   trunk/modello/debian/copyright
   trunk/modello/debian/libmodello-java-doc.doc-base
   trunk/modello/debian/rules
Log:
Initial import of skeleton packaging. Not ready yet!


Added: trunk/modello/debian/build.xml
===================================================================
--- trunk/modello/debian/build.xml	2007-04-30 10:41:58 UTC (rev 3385)
+++ trunk/modello/debian/build.xml	2007-05-01 22:01:57 UTC (rev 3386)
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+
+<!--
+      This build.xml file was written for the Debian project.
+      This file copyright (c) Paul Cager <paul-debian at home.paulcager.org>
+
+        This software and documentation is provided "as is," and
+        the copyright holders and contributing author(s) make no
+        representations or warranties, express or implied, including
+        but not limited to, warranties of merchantability or fitness
+        for any particular purpose or that the use of the software or
+        documentation will not infringe any third party patents,
+        copyrights, trademarks or other rights. 
+
+        The copyright holders and contributing author(s) will not be
+        liable for any direct, indirect, special or consequential damages
+        arising out of any use of the software or documentation, even if
+        advised of the possibility of such damage.
+
+        Permission is hereby granted to use, copy, modify, and distribute
+        this source code, or portions hereof, documentation and executables,
+        for any purpose, without fee, subject to the following restrictions:
+
+        1. The origin of this source code must not be misrepresented.
+        2. Altered versions must be plainly marked as such and must
+           not be misrepresented as being the original source.
+        3. This Copyright notice may not be removed or altered from any
+           source or altered source distribution.
+-->
+
+<project name="pkg-java" default="package" basedir="..">
+
+<target name="package" depends="jar,javadoc"/>
+
+<target name="init">
+	<property name="src.dir" value="."/>
+	<property name="build.dir" value="build"/>
+	<property name="jar.suffix" value="-${version}.jar"/>
+	<property name="jar" value="${build.dir}/${package}-${version}.jar"/>
+	<property name="javadoc.dir" value="${build.dir}/doc/api"/>
+	<echo message="Classpath: ${java.class.path}" />
+</target>
+
+<target name="compile" depends="init">
+	<mkdir dir="${build.dir}"/>
+	<javac srcdir="${src.dir}"
+		destdir="${build.dir}"
+		debug="on">
+		<include name="**/main/java/**/*.java"/>
+	</javac>
+</target>
+
+<target name="jar" depends="compile">
+	<delete file="${jar}"/>
+
+	<jar jarfile="${build.dir}/${package}${jar.suffix}"
+		basedir="${build.dir}"
+		includes="**/*.class,**/*.properties" />
+</target>
+
+<target name="javadoc" depends="init">
+	<mkdir dir="${javadoc.dir}"/>
+	<javadoc 
+		packagenames="org.codehaus.*"
+		sourcepath="src/main/java"
+		destdir="${javadoc.dir}"
+		author="true"
+		version="true"
+		windowtitle="${package} API"
+		doctitle="${package} - ${version}"
+		classpath="${java.class.path}" >
+	</javadoc>
+</target>
+
+<target name="clean" depends="init">
+	<delete dir="${build.dir}"/>
+</target>
+</project>

Added: trunk/modello/debian/changelog
===================================================================
--- trunk/modello/debian/changelog	2007-04-30 10:41:58 UTC (rev 3385)
+++ trunk/modello/debian/changelog	2007-05-01 22:01:57 UTC (rev 3386)
@@ -0,0 +1,5 @@
+modello (1.0-alpha-15-1) unstable; urgency=low
+
+  * Initial release. (Closes: 421626)
+
+ -- Paul Cager <paul-debian at home.paulcager.org>  Sun, 29 Apr 2007 20:45:10 +0100

Added: trunk/modello/debian/compat
===================================================================
--- trunk/modello/debian/compat	2007-04-30 10:41:58 UTC (rev 3385)
+++ trunk/modello/debian/compat	2007-05-01 22:01:57 UTC (rev 3386)
@@ -0,0 +1 @@
+5

Added: trunk/modello/debian/control
===================================================================
--- trunk/modello/debian/control	2007-04-30 10:41:58 UTC (rev 3385)
+++ trunk/modello/debian/control	2007-05-01 22:01:57 UTC (rev 3386)
@@ -0,0 +1,58 @@
+Source: modello
+Section: devel
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Paul Cager <paul-debian at home.paulcager.org>
+Build-Depends-Indep: java-gcj-compat-dev (>=1.0.65), ant-optional, libxalan2-java,
+                     libbcpg-java, libbcpg-java-doc,
+		     libbcprov-java, libbcprov-java-doc,
+		     classpath-doc
+Build-Depends: ant, debhelper (>= 5), cdbs (>= 0.4.5.3)
+Standards-Version: 3.7.2
+
+Package: libmodello-java
+Architecture: all
+Section: devel
+Suggests: libmodello-java-doc
+Description: a Data Model toolkit in use by the Maven 2 Project
+ Modello is used to build the maven system.
+ .
+ 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.
+    * Java Model to Prevayler Store (actually this plugin is in the
+      sandbox).
+    * Java Model to JPOX Store.
+    * Java Model to JPOX Mapping.
+ .
+  Homepage: http://modello.codehaus.org
+
+Package: libmodello-java-doc
+Architecture: all
+Section: doc
+Depends: classpath-doc
+Suggests: libmodello-java
+Description:  a Data Model toolkit in use by the Maven 2 Project
+ Modello is used to build the maven system.
+ .
+ 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.
+    * Java Model to Prevayler Store (actually this plugin is in the
+      sandbox).
+    * Java Model to JPOX Store.
+    * Java Model to JPOX Mapping.
+ .
+ This package provides the API documentation for Modello.
+ .
+  Homepage: http://modello.codehaus.org

Added: trunk/modello/debian/copyright
===================================================================
--- trunk/modello/debian/copyright	2007-04-30 10:41:58 UTC (rev 3385)
+++ trunk/modello/debian/copyright	2007-05-01 22:01:57 UTC (rev 3386)
@@ -0,0 +1,44 @@
+This package was debianized by Paul Cager <paul-debian at home.paulcager.org>
+Sun, 29 Apr 2007 18:27:29 +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-15/
+
+Upstream 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 NOTICES:
+
+	Copyright (c) 2007, Codehaus.org
+
+	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.

Added: trunk/modello/debian/libmodello-java-doc.doc-base
===================================================================
--- trunk/modello/debian/libmodello-java-doc.doc-base	2007-04-30 10:41:58 UTC (rev 3385)
+++ trunk/modello/debian/libmodello-java-doc.doc-base	2007-05-01 22:01:57 UTC (rev 3386)
@@ -0,0 +1,9 @@
+Document: libmodello-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/libcommons-modello-java/api/index.html
+Files: /usr/share/doc/libcommons-modello-java/api/*

Added: trunk/modello/debian/rules
===================================================================
--- trunk/modello/debian/rules	2007-04-30 10:41:58 UTC (rev 3385)
+++ trunk/modello/debian/rules	2007-05-01 22:01:57 UTC (rev 3386)
@@ -0,0 +1,42 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+PACKAGE              := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ')
+VERSION              := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ' | sed 's/-[0-9]*$$//')
+JAVA_HOME            := /usr/lib/jvm/java-gcj
+ANT_HOME             := /usr/share/ant
+#DEB_JARS             := $(ANT_HOME)/lib/ant-launcher.jar $(ANT_HOME)/lib/ant-trax.jar xalan2 
+DEB_JARS             := $(ANT_HOME)/lib/ant-launcher.jar $(ANT_HOME)/lib/ant-trax.jar xalan2 \
+			/usr/share/java/junit.jar \
+			$(shell find /usr/share/java -type f -name 'wagon*' -print) \
+			$(shell find /usr/share/java -type f -name 'plexus*' -print) \
+			/usr/share/java/libplexus-utils.jar \
+                        /usr/share/java/commons-lang.jar
+
+DEB_ANT_BUILD_TARGET := package
+DEB_ANT_BUILDFILE    := ./debian/build.xml
+DEB_ANT_ARGS         := -Dpackage=$(PACKAGE) -Dversion=$(VERSION)
+#DEB_ANT_INVOKE       := ant -verbose -Dpackage=$(PACKAGE) -Dversion=$(VERSION) -f $(BUILD_FILE)
+API_DOCS             := build/doc/api
+SVN                  := https://svn.codehaus.org/modello/tags/modello-$(VERSION)
+
+
+get-orig-source:
+	echo "Getting version $(VERSION) from $(SVN)"
+	mkdir orig_tmp
+	cd orig_tmp && \
+		svn export -q $(SVN) $(PACKAGE) && \
+		rm -rf modello-maven-plugin && \
+		tar czf ../../$(PACKAGE)_$(VERSION).orig.tar.gz $(PACKAGE)
+	rm -rf orig_tmp
+	
+
+binary-post-install/$(PACKAGE)::
+	dh_install -plib$(PACKAGE)-java build/$(PACKAGE)-$(VERSION).jar usr/share/java && \
+	dh_link -plib$(PACKAGE)-java usr/share/java/$(PACKAGE)-$(VERSION).jar usr/share/java/$(PACKAGE).jar; \
+
+binary-post-install/$(PACKAGE)-doc::
+	dh_install -plib$(PACKAGE)-java-doc $(API_DOCS) usr/share/doc/$(PACKAGE)


Property changes on: trunk/modello/debian/rules
___________________________________________________________________
Name: svn:executable
   + 




More information about the pkg-java-commits mailing list