[pkg-java] r11936 - in trunk/xmlbeans/debian: . patches
Damien Raude-Morvan
drazzib at alioth.debian.org
Thu Mar 25 23:02:53 UTC 2010
Author: drazzib
Date: 2010-03-25 23:02:49 +0000 (Thu, 25 Mar 2010)
New Revision: 11936
Added:
trunk/xmlbeans/debian/patches/scripts.patch
Modified:
trunk/xmlbeans/debian/changelog
trunk/xmlbeans/debian/control
trunk/xmlbeans/debian/patches/build-xml.patch
trunk/xmlbeans/debian/patches/series
trunk/xmlbeans/debian/rules
Log:
* New xmlbeans package which contains CLI tools (Closes: #571245)
* TODO: build manpages for those tools
Modified: trunk/xmlbeans/debian/changelog
===================================================================
--- trunk/xmlbeans/debian/changelog 2010-03-25 22:51:31 UTC (rev 11935)
+++ trunk/xmlbeans/debian/changelog 2010-03-25 23:02:49 UTC (rev 11936)
@@ -1,3 +1,10 @@
+xmlbeans (2.5.0-2) UNRELEASED; urgency=low
+
+ * New xmlbeans package which contains CLI tools (Closes: #571245)
+ * TODO: build manpages for those tools
+
+ -- Damien Raude-Morvan <drazzib at debian.org> Thu, 25 Mar 2010 23:59:43 +0100
+
xmlbeans (2.5.0-1) unstable; urgency=low
* Import package in Debian based on Thierry Carrez <thierry.carrez at ubuntu.com>
Modified: trunk/xmlbeans/debian/control
===================================================================
--- trunk/xmlbeans/debian/control 2010-03-25 22:51:31 UTC (rev 11935)
+++ trunk/xmlbeans/debian/control 2010-03-25 23:02:49 UTC (rev 11936)
@@ -25,3 +25,31 @@
* A cursor model through which you can traverse the full XML infoset.
* Support for XML DOM.
+Package: xmlbeans
+Architecture: all
+Depends: ${misc:Depends}, default-jre-headless | java2-runtime-headless,
+ libxmlbeans-java (>= ${source:Version})
+Description: Java library for accessing XML by binding it to Java types - tools
+ XMLBeans is a technology for accessing XML by binding it to Java types.
+ .
+ XMLBeans provides several ways to get at the XML, including:
+ * Through XML schema that has been compiled to generate Java types that
+ represent schema types. In this way, you can access instances of the
+ schema through JavaBeans-style accessors after the fashion of "getFoo"
+ and "setFoo". The XMLBeans API also allows you to reflect into the XML
+ schema itself through an XML Schema Object model.
+ * A cursor model through which you can traverse the full XML infoset.
+ * Support for XML DOM.
+ .
+ This package provide some command-line tools:
+ * dumpxsb: XSB File Dumper
+ * inst2xsd: Instance to Schema Tool
+ * scomp: Schema Compiler
+ * sdownload: Schema Downloader
+ * sfactor: Schema Factoring Tool
+ * svalidate: Streaming Instance Validator
+ * validate: Instance Validator
+ * xpretty: XML Pretty Printer
+ * xsd2inst: Schema to Instance Tool
+ * xsdtree: Schema Type Hierarchy Printer
+ * xstc: Invoke XSTC
Modified: trunk/xmlbeans/debian/patches/build-xml.patch
===================================================================
--- trunk/xmlbeans/debian/patches/build-xml.patch 2010-03-25 22:51:31 UTC (rev 11935)
+++ trunk/xmlbeans/debian/patches/build-xml.patch 2010-03-25 23:02:49 UTC (rev 11936)
@@ -1,3 +1,7 @@
+Description: build.xml: Fix build classpath
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2010-03-26
+Forwarded: not-needed
--- a/build.xml
+++ b/build.xml
@@ -237,7 +237,7 @@
Added: trunk/xmlbeans/debian/patches/scripts.patch
===================================================================
--- trunk/xmlbeans/debian/patches/scripts.patch (rev 0)
+++ trunk/xmlbeans/debian/patches/scripts.patch 2010-03-25 23:02:49 UTC (rev 11936)
@@ -0,0 +1,161 @@
+Description: Fix XMLBEANS_LIB variables in all CLI scripts
+ to use /usr/share/java/
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2010-03-26
+Forwarded: not-needed
+--- a/bin/dumpxsb
++++ b/bin/dumpxsb
+@@ -18,11 +18,9 @@
+ #XSB file dumper
+ #Prints the contents of an xsb file in human-readmble form
+
+-echo `dirname $0`
++XMLBEANS_LIB=/usr/share/java
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
+-
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+
+ case "`uname`" in
+ CYGWIN*)
+--- a/bin/inst2xsd
++++ b/bin/inst2xsd
+@@ -18,9 +18,9 @@
+ #Instance to Schema tool
+ #Builds xsd files from xml instance files.
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
++XMLBEANS_LIB=/usr/share/java
+
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+
+ case "`uname`" in
+ CYGWIN*)
+--- a/bin/scomp
++++ b/bin/scomp
+@@ -18,9 +18,9 @@
+ #Schema compiler
+ #Builds XBean types from xsd files.
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
++XMLBEANS_LIB=/usr/share/java
+
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$JAVA_HOME/lib/tools.jar:$XMLBEANS_LIB/resolver.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$JAVA_HOME/lib/tools.jar:$XMLBEANS_LIB/resolver.jar
+
+ case "`uname`" in
+ CYGWIN*)
+--- a/bin/sdownload
++++ b/bin/sdownload
+@@ -18,9 +18,9 @@
+ #Schema downloader
+ #Tool to download Schema files
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
++XMLBEANS_LIB=/usr/share/java
+
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+
+ case "`uname`" in
+ CYGWIN*)
+--- a/bin/sfactor
++++ b/bin/sfactor
+@@ -20,9 +20,9 @@
+ ## Factors redundant definitions out of a set of schemas and
+ ## uses imports instead.
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
++XMLBEANS_LIB=/usr/share/java
+
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/resolver.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/resolver.jar
+
+ case "`uname`" in
+ CYGWIN*)
+--- a/bin/svalidate
++++ b/bin/svalidate
+@@ -19,9 +19,9 @@
+ #
+ # Validates an instance against a schema.
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
++XMLBEANS_LIB=/usr/share/java
+
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/jsr173_1.0_ri.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/jsr173_1.0_ri.jar
+
+ case "`uname`" in
+ CYGWIN*)
+--- a/bin/validate
++++ b/bin/validate
+@@ -19,9 +19,9 @@
+ #
+ # Validates an instance against a schema.
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
++XMLBEANS_LIB=/usr/share/java
+
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+
+ case "`uname`" in
+ CYGWIN*)
+--- a/bin/xpretty
++++ b/bin/xpretty
+@@ -17,9 +17,9 @@
+
+ #Invokes pretty printer
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
++XMLBEANS_LIB=/usr/share/java
+
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+
+ case "`uname`" in
+ CYGWIN*)
+--- a/bin/xsd2inst
++++ b/bin/xsd2inst
+@@ -17,9 +17,9 @@
+
+ #Schema to instance tool
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
++XMLBEANS_LIB=/usr/share/java
+
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+
+ case "`uname`" in
+ CYGWIN*)
+--- a/bin/xsdtree
++++ b/bin/xsdtree
+@@ -17,9 +17,9 @@
+
+ # Invokes type hierarchy printer
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
++XMLBEANS_LIB=/usr/share/java
+
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar
+
+ case "`uname`" in
+ CYGWIN*)
+--- a/bin/xstc
++++ b/bin/xstc
+@@ -17,9 +17,9 @@
+
+ # Invokes XSTC
+
+-if [ -z "$XMLBEANS_LIB" ]; then . `dirname $0`/_setlib; fi
++XMLBEANS_LIB=/usr/share/java
+
+-cp=$XMLBEANS_LIB/xbean.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/resolver.jar
++cp=$XMLBEANS_LIB/xmlbeans.jar:$XMLBEANS_LIB/xmlbeans-qname.jar:$XMLBEANS_LIB/jsr173_1.0_api.jar:$XMLBEANS_LIB/resolver.jar
+
+ case "`uname`" in
+ CYGWIN*)
Modified: trunk/xmlbeans/debian/patches/series
===================================================================
--- trunk/xmlbeans/debian/patches/series 2010-03-25 22:51:31 UTC (rev 11935)
+++ trunk/xmlbeans/debian/patches/series 2010-03-25 23:02:49 UTC (rev 11936)
@@ -1 +1,2 @@
build-xml.patch
+scripts.patch
Modified: trunk/xmlbeans/debian/rules
===================================================================
--- trunk/xmlbeans/debian/rules 2010-03-25 22:51:31 UTC (rev 11935)
+++ trunk/xmlbeans/debian/rules 2010-03-25 23:02:49 UTC (rev 11936)
@@ -12,12 +12,21 @@
DEB_ANT_BUILDFILE := build.xml
DEB_JARS := ant-nodeps
+XMLBEANS_TOOLS := dumpxsb inst2xsd scomp sdownload sfactor \
+ svalidate validate xpretty xsd2inst xsdtree xstc
+
install/libxmlbeans-java::
mh_installpoms -plibxmlbeans-java
mh_installjar -plibxmlbeans-java -nxmlbeans -l debian/poms/xmlbeans.xml build/lib/xbean.jar
mh_installjar -plibxmlbeans-java -nxmlbeans-qname -l debian/poms/qname.xml build/lib/xmlbeans-qname.jar
mh_installjar -plibxmlbeans-java -nxmlbeans_xpath -l debian/poms/xpath.xml build/lib/xbean_xpath.jar
+install/xmlbeans::
+ for TOOL in $(XMLBEANS_TOOLS); do \
+ dh_install bin/$$TOOL /usr/bin/; \
+ done
+
+
clean::
-rm -rf debian/tmp
More information about the pkg-java-commits
mailing list