From 648b44a74a0150665e1cb47baaf52b5c2e87d4bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 18 May 2014 12:24:50 +0200 Subject: Imported Debian patch 3.3.0.2-2 --- debian/README.Debian | 7 + debian/bigendian/char/utf-8/test.std | 20 +++ debian/bigendian/wchar/test.std | 18 +++ debian/changelog | 148 +++++++++++++++++ debian/compat | 1 + debian/control | 33 ++++ debian/copyright | 236 ++++++++++++++++++++++++++++ debian/dirs | 1 + debian/doc-base | 14 ++ debian/docs | 1 + debian/patches/0001-xsd_xsdcxx-rename.patch | 136 ++++++++++++++++ debian/patches/0002-bigendian.patch | 26 +++ debian/patches/series | 2 + debian/rules | 59 +++++++ debian/source/format | 1 + debian/watch | 6 + debian/xsdcxx.lintian-overrides | 1 + 17 files changed, 710 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/bigendian/char/utf-8/test.std create mode 100644 debian/bigendian/wchar/test.std create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/doc-base create mode 100644 debian/docs create mode 100644 debian/patches/0001-xsd_xsdcxx-rename.patch create mode 100644 debian/patches/0002-bigendian.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch create mode 100644 debian/xsdcxx.lintian-overrides diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..13c7c4a --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,7 @@ +XSD for Debian +------------------ + +Due to name conflicts with mono-1.0-devel the `xsd` application was renamed +to `xsdcxx`. The output of `xsdcxx` is the same, including the directories. + + -- Raphael Bossek Sat, 16 Feb 2008 19:26:38 +0100 diff --git a/debian/bigendian/char/utf-8/test.std b/debian/bigendian/char/utf-8/test.std new file mode 100644 index 0000000..68ca51c --- /dev/null +++ b/debian/bigendian/char/utf-8/test.std @@ -0,0 +1,20 @@ + + + + abc + + Օ + + + + 򪪪 + + abc + + aՕc + + ꪪbc + + ab򪪪 + + diff --git a/debian/bigendian/wchar/test.std b/debian/bigendian/wchar/test.std new file mode 100644 index 0000000..cdc3517 --- /dev/null +++ b/debian/bigendian/wchar/test.std @@ -0,0 +1,18 @@ + + + + abc + + ῿퟿ + + 𐀀􏿽 + + abc + + a῿퟿c + + 𐀀􏿽bc + + ab𐀀􏿽 + + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..b53cbbd --- /dev/null +++ b/debian/changelog @@ -0,0 +1,148 @@ +xsd (3.3.0.2-2) unstable; urgency=medium + + * add patch to prevent builderrors on big-endian systems + - new patch 0002-bigendian.patch + - based on patches for bug #604256 + * debian/rules + - use debhelper vars + - replacement of 2 test.std files + * debian/control + - add dpkg-dev (>= 1.15.4) to Build-Depends + + -- Jörg Frings-Fürst Sun, 18 May 2014 12:24:50 +0200 + +xsd (3.3.0.2-1) unstable; urgency=low + + * rewrite debian/copyright + * replace old tarball-in-tarball to the Upstream-tarball + * remove + - patches included in tarball + - debian/README.source + * add hardenning-wrapper to Build-Depends + * rewrite debian/rules + * rename debian/patches/xsd_xsdcxx-rename.patch to + 0001-xsd_xsdcxx-rename.patch + * add file xsdcxx.lintian-overrides + - duplicate-files + * change debian/compat to 9 + * change Standards-Version to 3.9.5 + * change debhelper to >= 9 + * add debian/doc-base + * move Homepage to debian/control source section + * rename xsdcxx.watch to watch + * change to upstream 3.3.0.2 + * New Maintainer (Closes: #741475) + + -- Jörg Frings-Fürst Sun, 20 Apr 2014 16:26:04 +0200 + +xsd (3.3.0.1-1.4) unstable; urgency=medium + + * Non-maintainer upload. + * Stop trying to apply binary git diffs with quilt (closes: #711950). + + -- Julien Cristau Sun, 01 Dec 2013 14:09:10 +0100 + +xsd (3.3.0.1-1.3) unstable; urgency=low + + * Non maintainer upload + * Fix build failure with GCC 4.7. + + -- Matthias Klose Tue, 22 May 2012 16:38:15 +0000 + +xsd (3.3.0.1-1.2) unstable; urgency=medium + + * Non-maintainer upload. + + [ Konstantinos Margaritis ] + * debian/patches/boost1.46.patch: + - Fix FTBFS against boost1.46 (Closes: #624942). + + -- Luca Falavigna Tue, 23 Aug 2011 22:06:28 +0200 + +xsd (3.3.0.1-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix build fail on Renesas sh4 (Closes: #606057). + Update debian/rules. + When architecture of host is sh4, CXXFLAGS was added -mieee option. + + -- Nobuhiro Iwamatsu Fri, 11 Mar 2011 09:45:12 +0900 + +xsd (3.3.0.1-1) unstable; urgency=low + + * Use ASCII encoding instead of UCS-4LE to work around Xerces-C++ bug. + Closes: #604256 + + -- Raphael Bossek Mon, 22 Nov 2010 21:57:58 +0100 + +xsd (3.3.0-2) unstable; urgency=low + + * Added autotools-dev build dependency. Closes: #604086 + + -- Raphael Bossek Sat, 20 Nov 2010 22:28:47 +0100 + +xsd (3.3.0-1) unstable; urgency=low + + * New upstream release. Closes: #556724 + * Update Automake files at build time. Closes: #536423 + + -- Raphael Bossek Thu, 18 Nov 2010 21:27:00 +0100 + +xsd (3.2.0.1-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS with new boost (>= 1.37.0) by using the “-mt” suffix for + boost libraries since starting with this version, only this variant + is available (Closes: #530484): + + debian/patches: Add xsd_fix-boost-ftbfs.patch + + debian/rules: Apply that patch. + * Set urgency to “medium” since this bug affects testing too. + + -- Cyril Brulebois Sat, 18 Jul 2009 10:51:36 +0200 + +xsd (3.2.0.1-1) unstable; urgency=low + + * New upstream version. This version depends on Xerces-C 3.0.0 which + is in experimental right now. (Closes: #505837) + + -- Raphael Bossek Sat, 06 Dec 2008 13:44:38 +0100 + +xsd (3.1.0.1-2) unstable; urgency=low + + * Added build dependency on libboost-date-time-dev. + + -- Raphael Bossek Wed, 18 Jun 2008 06:57:20 +0200 + +xsd (3.1.0.1-1) unstable; urgency=low + + * Update libcult to 1.4.1 to support GCC 4.3 (build errors). + * Added m4 as build dependency. + * Added README.source to confirm with standards version 3.8.0. + + -- Raphael Bossek Tue, 17 Jun 2008 07:04:15 +0200 + +xsd (3.1.0-4) unstable; urgency=low + + * Try to suppress compilation errors by disable not obsolate implementation + (as mentioned in error report #482569) (Closes: #485843) + + -- Raphael Bossek Sun, 15 Jun 2008 21:46:20 +0200 + +xsd (3.1.0-3) unstable; urgency=low + + * Removed old build dependency on libxerces25-dev. (Closes: #483965) + + -- Raphael Bossek Mon, 02 Jun 2008 21:00:43 +0200 + +xsd (3.1.0-2) unstable; urgency=low + + * Fixed bulid problem. (Closes: #482569) + + -- Raphael Bossek Mon, 26 May 2008 12:14:37 +0200 + +xsd (3.1.0-1) unstable; urgency=low + + * Initial release (Closes: #479523) + + -- Raphael Bossek Sat, 16 Feb 2008 19:26:38 +0100 + 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..355646c --- /dev/null +++ b/debian/control @@ -0,0 +1,33 @@ +Source: xsd +Section: devel +Priority: extra +Maintainer: Jörg Frings-Fürst +Build-Depends: + autotools-dev, + debhelper (>= 9), + dpkg-dev (>= 1.15.4), + hardening-wrapper, + libboost-date-time-dev, + libboost-filesystem-dev, + libboost-regex-dev, + libxerces-c-dev (>= 3.0.0), + m4 +Standards-Version: 3.9.5 +Homepage: http://codesynthesis.com +Vcs-Git: git://anonscm.debian.org/collab-maint/xsd.git +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/xsd.git + +Package: xsdcxx +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: XML Data Binding for C++ + CodeSynthesis XSD is an open-source, cross-platform W3C XML Schema to + C++ data binding compiler. Provided with an XML instance specification + (XML Schema), it generates C++ classes that represent the given + vocabulary as well as parsing and serialization code. + You can then access the data stored in XML using types and functions + that semantically correspond to your application domain rather than + dealing with intricacies of reading and writing XML. + + + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0c2f68c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,236 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: xsd +Upstream-Contact: xsd-user Maillist +Source: + +Files: * +Copyright: Copyright (©) 2005-2010 CODE SYNTHESIS TOOLS CC +License: GPL-2+ and FLOSS + This program is free software; you can redistribute it + and/or modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later + version. + . + This program is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more + details. + . + You should have received a copy of the GNU General Public + License along with this package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/GPL-2'. + . + Free/Libre and Open Source Software ("FLOSS") + °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° + 1. Intent + . + We want specified Free/Libre and Open Source Software ("FLOSS") + to be able to use the specified GPL-licensed xsd runtime library + and xsd generated code (collectively called the "Program") despite + the fact that not all FLOSS licenses are compatible with version 2 + of the GNU General Public License (the "GPL"). + . + It is our intent to allow distribution of the entire Derivative + Work (including the Program) under one or more of the FLOSS licenses + listed in section 3 (section 2.a). It is also our intent to disallow + simple relicensing of the Program for the sole purpose of using it in + proprietary applications (section 2.b and 2.c). As an example, consider + two hypothetical scenarios: + . + a) You created a program that uses the xsd generated code and the xsd + runtime library to access information in XML instance documents. + Your program performs useful computations based on this information + (sections 2.b and 2.c are satisfied). You distribute your program, + including the xsd generated code and the xsd runtime library under + the BSD license and make it available at no charge to all third + parties (section 2.a is satisfied). Later you (or someone else) may + choose to base their proprietary application on your code since the + BSD license does not prohibit it. + . + This scenario falls under this FLOSS Exception. + . + b) You created a library that uses the xsd generated code and the xsd + runtime library to access information in XML instance documents. You + did not add to the library any other useful code that uses the xsd + generated code or the xsd runtime library (neither section 2.b nor + 2.c is satisfied). You distribute your library, including the xsd + generated code and the xsd runtime library under the BSD license and + make it available at no charge to all third parties (section 2.a + is satisfied). Later you base your proprietary application on this + library since the BSD license does not prohibit it. + . + This scenario does not fall under this FLOSS Exception (neither + section 2.b nor 2.c is satisfied). You created the library for the + sole purpose of making the xsd generated code and the xsd runtime + library available to your proprietary application. + . + 2. Legal Terms and Conditions + . + As a special exception to the terms and conditions of version 2 of + the GPL you are free to distribute a verbatim copy of the Program + as part of the Derivative Work that is formed from the Program or + any part thereof and one or more works (each, a "FLOSS Work") as + long as you also meet all of these conditions: + . + a) You must cause the Derivative Work that in whole or in part + contains or is derived from the Program or any part thereof, + to be licensed as a whole at no charge to all third parties + under the terms of one or more of the licenses listed in + section 3. + . + b) The Derivative Work should contain one or more FLOSS Work that + can be reasonably considered as derived from the Program or some + part thereof. + . + c) The Derivative Work should not contain any part of the Program + that cannot be reasonably considered as a base of one or more + FLOSS Work. + . + 3. FLOSS License List + . + a) Any license listed in the "GPL-Compatible Free Software Licenses" + and the "GPL-Incompatible Free Software Licenses" sections of the + License List as published by the Free Software Foundation (FSF): + . + http://www.gnu.org/licenses/license-list.html + . + 4. Definitions + . + Terms used, but not defined, herein shall have the meaning + provided in the GPL. + . + Derivative Work means a derivative work under copyright law. + . + 5. Applicability + . + You may choose to redistribute a copy of the Program exclusively under + the terms of the GPL by removing the FLOSS Exception notice from that + copy of the Program. + +Files: xsd/documentation/cxx/tree/dbxml/library.xsd + xsd/documentation/cxx/tree/dbxml/driver.cxx + xsd/documentation/custom-literals.xsd + xsd/examples/cxx/*/driver.cxx + xsd/examples/cxx/parser/generated/library.* + xsd/examples/cxx/parser/hello/hello.* + xsd/examples/cxx/parser/library/library*.* + xsd/examples/cxx/parser/mixed/anchor.hxx + xsd/examples/cxx/parser/mixed/text.* + xsd/examples/cxx/parser/mixin/types.hxx + xsd/examples/cxx/parser/mixin/instance.xml + xsd/examples/cxx/parser/mixin/schema.* + xsd/examples/cxx/parser/multiroot/balance.xml + xsd/examples/cxx/parser/multiroot/deposit.xml + xsd/examples/cxx/parser/multiroot/protocol*.* + xsd/examples/cxx/parser/multiroot/withdraw.xml + xsd/examples/cxx/parser/performance/test.xsd + xsd/examples/cxx/parser/performance/time.* + xsd/examples/cxx/parser/polymorphism/supermen*.* + xsd/examples/cxx/parser/polyroot/*.xml + xsd/examples/cxx/parser/polyroot/supermen*.* + xsd/examples/cxx/parser/wildcard/email.* + xsd/examples/cxx/tree/binary/boost/boost*.* + xsd/examples/cxx/tree/binary/boost/library.* + xsd/examples/cxx/tree/binary/cdr/library.* + xsd/examples/cxx/tree/binary/xdr/library.* + xsd/examples/cxx/tree/caching/library.* + xsd/examples/cxx/tree/compression/library.* + xsd/examples/cxx/tree/compression/compressed*.* + xsd/examples/cxx/tree/custom/calendar/calendar.* + xsd/examples/cxx/tree/custom/calendar/xml-schema-custom.* + xsd/examples/cxx/tree/custom/comments/dom-parse.* + xsd/examples/cxx/tree/custom/comments/people.* + xsd/examples/cxx/tree/custom/comments/xml-schema-custom.* + xsd/examples/cxx/tree/custom/contacts/contacts*.* + xsd/examples/cxx/tree/custom/double/double-custom.* + xsd/examples/cxx/tree/custom/double/order.xsd + xsd/examples/cxx/tree/custom/mixed/people*.* + xsd/examples/cxx/tree/custom/taxonomy/people*.* + xsd/examples/cxx/tree/custom/wildcard/wildcard*.* + xsd/examples/cxx/tree/dbxml/library.xsd + xsd/examples/cxx/tree/embedded/library.* + xsd/examples/cxx/tree/embedded/grammar-input-stream.* + xsd/examples/cxx/tree/embedded/xsdbin.cxx + xsd/examples/cxx/tree/hello/hello.* + xsd/examples/cxx/tree/library/library.* + xsd/examples/cxx/tree/messaging/*.xml + xsd/examples/cxx/tree/messaging/*.cxx + xsd/examples/cxx/tree/messaging/*.hxx + xsd/examples/cxx/tree/messaging/protocol.xsd + xsd/examples/cxx/tree/mixed/text.* + xsd/examples/cxx/tree/multiroot/*.xml + xsd/examples/cxx/tree/multiroot/dom-parse.* + xsd/examples/cxx/tree/multiroot/protocol.xsd + xsd/examples/cxx/tree/performance/parsing.cxx + xsd/examples/cxx/tree/performance/serialization.cxx + xsd/examples/cxx/tree/performance/test.xsd + xsd/examples/cxx/tree/performance/time.* + xsd/examples/cxx/tree/polymorphism/supermen.* + xsd/examples/cxx/tree/streaming/parser.* + xsd/examples/cxx/tree/streaming/position.* + xsd/examples/cxx/tree/streaming/serializer.* + xsd/examples/cxx/tree/wildcard/email.* + xsd/examples/cxx/tree/xpath/dom-parse.* + xsd/examples/cxx/tree/xpath/driver-2.cxx + xsd/examples/cxx/tree/xpath/people.* +Copyright: Boris Kolpackov +License: public-domain + In xsd/LICENSE all files are published under GPL-2 + +Files: xsd/documentation/cxx/tree/dbxml/index.xhtml + xsd/documentation/cxx/tree/guide/cxx-tree-guide.* + xsd/documentation/cxx/tree/guide/index.xhtml + xsd/documentation/cxx/tree/guide/guide.html2ps + xsd/documentation/cxx/tree/manual/cxx-tree-manual.* + xsd/documentation/cxx/tree/manual/index.xhtml + xsd/documentation/cxx/tree/manual/manual.html2ps + xsd/documentation/cxx/praser/guide/cxx-praser-guide.* + xsd/documentation/cxx/praser/guide/index.xhtml + xsd/documentation/cxx/praser/guide/guide.html2ps + xsd/documentation/future.xhtml + xsd/documentation/schema-authoring-guide.xhtml + xsd/documentation/xsd.* + libbackend-elements/documentation/index.xhtml + libcult/documentation/*/index.xhtml + libfrontend-elements/documentation/index.xhtml +Copyright: 2005-2010 CODE SYNTHESIS TOOLS CC +License: GFDL-1.2 + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.2 + as published by the Free Software Foundation; with no Invariant Sections, no + Front-Cover Texts, and no Back-Cover Texts. + . + On Debian systems, the complete text of the GNU Free Documentation License + version 1.2 can be found in "/usr/share/common-licenses/GFDL-1.2". + +Files: debian/* +Copyright: 2008, Raphael Bossek + 2014, Jörg Frings-Fürst +License: GPL-1+ + This program is free software; you can redistribute it + and/or modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 1 of the License, or (at your option) any later + version. + . + This program is distributed in the hope that it will be + useful, but WITHOUT ANY WARRANTY; without even the implied + warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more + details. + . + You should have received a copy of the GNU General Public + License along with this package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 1 can be found in the file + `/usr/share/common-licenses/GPL-1'. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..e772481 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/bin diff --git a/debian/doc-base b/debian/doc-base new file mode 100644 index 0000000..eb746ae --- /dev/null +++ b/debian/doc-base @@ -0,0 +1,14 @@ +Document: xsdcxx +Title: xsd Documentation +Section: Programming/C++ + +Format: PDF +Files: /usr/share/doc/xsdcxx/cxx/tree/manual/cxx-tree-manual.pdf.gz + /usr/share/doc/xsdcxx/cxx/tree/guide/cxx-tree-guide.pdf.gz + /usr/share/doc/xsdcxx/cxx/parser/guide/cxx-parser-guide.pdf.gz + +Format: PostScript +Files: /usr/share/doc/xsdcxx/cxx/tree/manual/cxx-tree-manual.ps.gz + /usr/share/doc/xsdcxx/cxx/tree/guide/cxx-tree-guide.ps.gz + /usr/share/doc/xsdcxx/cxx/parser/guide/cxx-parser-guide.ps.gz + diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/patches/0001-xsd_xsdcxx-rename.patch b/debian/patches/0001-xsd_xsdcxx-rename.patch new file mode 100644 index 0000000..fd4200b --- /dev/null +++ b/debian/patches/0001-xsd_xsdcxx-rename.patch @@ -0,0 +1,136 @@ +Description: change docu from xsd to xsdcxx +Author: Jörg Frings-Fürst +Reviewed-by: +Last-Update: 2014-04-13 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: work/xsd/documentation/xsd.1 +=================================================================== +--- work.orig/xsd/documentation/xsd.1 2010-04-22 13:28:43.000000000 +0200 ++++ work/xsd/documentation/xsd.1 2010-11-19 10:15:53.824581814 +0100 +@@ -1,16 +1,16 @@ + .\" Process this file with + .\" groff -man -Tascii xsd.1 + .\" +-.TH XSD 1 "April 2010" "XSD 3.3.0" ++.TH XSDCXX 1 "April 2010" "XSD 3.3.0" + .SH NAME +-xsd \- W3C XML Schema to C++ Compiler ++xsdcxx \- W3C XML Schema to C++ Compiler + .\" + .\" + .\" + .\"-------------------------------------------------------------------- + .SH SYNOPSIS + .\"-------------------------------------------------------------------- +-.B xsd ++.B xsdcxx + .I command + .B [ + .I options +@@ -20,19 +20,19 @@ + .I file + .B ...] + .in +-.B xsd help ++.B xsdcxx help + .B [ + .I command + .B ] + .in +-.B xsd version ++.B xsdcxx version + .\" + .\" + .\" + .\"-------------------------------------------------------------------- + .SH DESCRIPTION + .\"-------------------------------------------------------------------- +-.B xsd ++.B xsdcxx + generates vocabulary-specific, statically-typed C++ mapping from W3C XML + Schema definitions. Particular mapping to produce is selected by a + .IR command . +@@ -96,7 +96,7 @@ + .PP + .RS + .RS 3 +-.B xsd help ++.B xsdcxx help + .I command + .RE + .PP +@@ -203,7 +203,7 @@ + with namespace + .B http://example.com/hello + and you run +-.B xsd ++.B xsdcxx + on this file, then the string in question will be: + + .B hello.xsd. http://example.com/hello +@@ -1877,7 +1877,7 @@ + .\" + .SH DIAGNOSTICS + If the input file is not a valid W3C XML Schema definition, +-.B xsd ++.B xsdcxx + will issue diagnostic messages to + .B STDERR + and exit with non-zero exit code. +Index: work/xsd-srcdir/xsd/documentation/xsd.xhtml +=================================================================== +--- work.orig/xsd/documentation/xsd.xhtml 2010-02-22 13:38:06.000000000 +0100 ++++ work/xsd/documentation/xsd.xhtml 2010-11-19 10:15:11.900404798 +0100 +@@ -50,19 +50,19 @@ + +

NAME

+ +-

xsd - W3C XML Schema to C++ Compiler

++

xsdcxx - W3C XML Schema to C++ Compiler

+ +

SYNOPSIS

+ +
+-
xsd command [options] file [file ...]
+-
xsd help [command]
+-
xsd version
++
xsdcxx command [options] file [file ...]
++
xsdcxx help [command]
++
xsdcxx version
+
+ +

DESCRIPTION

+ +-

xsd generates vocabulary-specific, statically-typed ++

xsdcxx generates vocabulary-specific, statically-typed + C++ mapping from W3C XML Schema definitions. Particular mapping to + produce is selected by a command. Each mapping has + a number of mapping-specific options that should +@@ -104,7 +104,7 @@ + +

help
+
Print usage information and exit. Use +-

xsd help command

++

xsdcxx help command

+ for command-specific help. +
+ +@@ -174,7 +174,7 @@ + +

For example, if you have file hello.xsd + with namespace http://example.com/hello and you run +- xsd on this file, then the string in question ++ xsdcxx on this file, then the string in question + will be:

+ +

hello.xsd. http://example.com/hello

+@@ -1575,7 +1575,7 @@ +

DIAGNOSTICS

+ +

If the input file is not a valid W3C XML Schema definition, +- xsd will issue diagnostic messages to STDERR ++ xsdcxx will issue diagnostic messages to STDERR + and exit with non-zero exit code.

+ +

BUGS

diff --git a/debian/patches/0002-bigendian.patch b/debian/patches/0002-bigendian.patch new file mode 100644 index 0000000..a0c2f51 --- /dev/null +++ b/debian/patches/0002-bigendian.patch @@ -0,0 +1,26 @@ +Index: trunk/xsd/tests/cxx/tree/encoding/char/utf-8/driver.cxx +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/char/utf-8/driver.cxx 2010-04-28 08:58:09.000000000 +0200 ++++ trunk/xsd/tests/cxx/tree/encoding/char/utf-8/driver.cxx 2014-05-18 12:03:06.243944878 +0200 +@@ -57,7 +57,7 @@ + xml_schema::namespace_infomap map; + map["t"].name = "test"; + +- root (std::cout, *r, map, "UCS-4LE"); ++ root (std::cout, *r, map, "ASCII"); + } + catch (xml_schema::exception const& e) + { +Index: trunk/xsd/tests/cxx/tree/encoding/wchar/driver.cxx +=================================================================== +--- trunk.orig/xsd/tests/cxx/tree/encoding/wchar/driver.cxx 2010-04-28 08:58:09.000000000 +0200 ++++ trunk/xsd/tests/cxx/tree/encoding/wchar/driver.cxx 2014-05-18 12:03:33.164482484 +0200 +@@ -47,7 +47,7 @@ + xml_schema::namespace_infomap map; + map[L"t"].name = L"test"; + +- root (std::cout, *r, map, L"UCS-4LE"); ++ root (std::cout, *r, map, L"ASCII"); + } + catch (xml_schema::exception const& e) + { diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ba3bd82 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +0002-bigendian.patch +0001-xsd_xsdcxx-rename.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8f52fc4 --- /dev/null +++ b/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +export DH_OPTIONS + + +# +# path for bigendian +# +ORGUTF:=$(CURDIR)/xsd/tests/cxx/tree/encoding/char/utf-8/test.std +NEWUTF:=$(CURDIR)/debian/bigendian/char/utf-8/test.std +ORGWCHAR:=$(CURDIR)/xsd/tests/cxx/tree/encoding/wchar/test.std +NEWWCHAR:=$(CURDIR)/debian/bigendian/wchar/test.std + +# +# Hardening +# +export DEB_BUILD_HARDENING=1 + +include /usr/share/dpkg/buildflags.mk +CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) +CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) +CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) +LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) + + +%: + dh $@ + +override_dh_auto_build: + rm -f $(ORGUTF).old + rm -f $(ORGWCHAR).old + mv $(ORGUTF) $(ORUTF).old + mv $(ORGWCHAR) $(ORGWCHAR).old + cp $(NEWUTF) $(ORGUTF) + cp $(NEWWCHAR) $(ORGWCHAR) + dh_auto_build + +override_dh_clean: + rm -f $(CURDIR)/libcult/build/system/configuration-dynamic.make + if test -e "$(ORGUTF).old"; then rm -f $(ORGUTF); mv $(ORGUTF).old $(ORGUTF); fi + if test -e "$(ORGWCHAR).old"; then rm -f $(ORGWCHAR); mv $(ORGWCHAR).old $(ORGWCHAR); fi + rmdir --ignore-fail-on-non-empty $(CURDIR)/libcult/build/system + dh_clean + +override_dh_auto_install: + MAKEFLAGS="$$MAKEFLAGS install_prefix=$(CURDIR)/debian/xsdcxx/usr" $(MAKE) -C $(CURDIR)/ -f makefile install + mv $(CURDIR)/debian/xsdcxx/usr/share/doc/xsd $(CURDIR)/debian/xsdcxx/usr/share/doc/xsdcxx + mv $(CURDIR)/debian/xsdcxx/usr/bin/xsd $(CURDIR)/debian/xsdcxx/usr/bin/xsdcxx + mv $(CURDIR)/debian/xsdcxx/usr/share/man/man1/xsd.1 $(CURDIR)/debian/xsdcxx/usr/share/man/man1/xsdcxx.1 + rm -rf $(CURDIR)/debian/xsdcxx/usr/share/doc/libxsd + find $(CURDIR)/debian/xsdcxx \( -name "COPYRIGHT*" -o -name "FLOSSE*" -o -name "LICENSE*" -o -name "GPL*" \) -exec rm -v {} \; 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..c908dd6 --- /dev/null +++ b/debian/watch @@ -0,0 +1,6 @@ +# Compulsory line, this is a version 3 file +version=3 + +http://codesynthesis.com/download/xsd/(\d+)\.(\d+)/xsd-(\d+)\.(\d+)\.(\d+)-(\d+)\+dep\.tar\.bz2 + + diff --git a/debian/xsdcxx.lintian-overrides b/debian/xsdcxx.lintian-overrides new file mode 100644 index 0000000..ceee049 --- /dev/null +++ b/debian/xsdcxx.lintian-overrides @@ -0,0 +1 @@ +duplicate-files -- cgit v1.2.3