debian/0000755000000000000000000000000012142714756007177 5ustar debian/rules0000755000000000000000000000277512142663565010273 0ustar #!/usr/bin/make -f include /usr/share/dpkg/default.mk CXXFLAGS += -DTIXML_USE_STL OBJ_FILES := tinyxml.o tinyxmlparser.o tinyxmlerror.o %: dh $@ --parallel override_dh_auto_build: dh_auto_build -- CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" ar rc libtinyxml.a $(OBJ_FILES) rm *.o xmltest dh_auto_build -- CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS) -fPIC" LDFLAGS="$(LDFLAGS)" g++ -shared -Wl,-soname,libtinyxml.so.$(DEB_VERSION_UPSTREAM) \ -o libtinyxml.so.$(DEB_VERSION_UPSTREAM) $(LDFLAGS) \ $(OBJ_FILES) override_dh_auto_install: mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig mkdir -p debian/tmp/usr/include install -m 644 -p libtinyxml.so.$(DEB_VERSION_UPSTREAM) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ ln -f -s libtinyxml.so.$(DEB_VERSION_UPSTREAM) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libtinyxml.so install -m 644 -p libtinyxml.a debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ install -m 644 -p tinyxml.h debian/tmp/usr/include/ sed -e 's/\$${DEB_HOST_MULTIARCH}/$(DEB_HOST_MULTIARCH)/' -e 's/\$${DEB_VERSION_UPSTREAM}/$(DEB_VERSION_UPSTREAM)/' \ debian/tinyxml.pc.in > debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/tinyxml.pc override_dh_auto_test: mkdir xmltestdir cp -a utf8test*.xml xmltestdir cd xmltestdir && ../xmltest rm -rf xmltestdir override_dh_auto_clean: dh_auto_clean rm -f libtinyxml.so* libtinyxml.a rm -rf xmltestdir override_dh_strip: dh_strip --dbg-package=libtinyxml$(DEB_VERSION_UPSTREAM)-dbg override_dh_install: dh_install --fail-missing debian/source/0000755000000000000000000000000011570013701010461 5ustar debian/source/format0000644000000000000000000000001411565153566011711 0ustar 3.0 (quilt) debian/gbp.conf0000644000000000000000000000003611565153566010621 0ustar [DEFAULT] pristine-tar = True debian/libtinyxml-dev.install0000644000000000000000000000014411765063311013527 0ustar usr/include/tinyxml.h usr/lib/*/libtinyxml.a usr/lib/*/libtinyxml.so usr/lib/*/pkgconfig/tinyxml.pc debian/libtinyxml-doc.docs0000644000000000000000000000000511564764442013006 0ustar docs debian/libtinyxml2.6.2.install0000644000000000000000000000003211765063311013335 0ustar usr/lib/*/libtinyxml.so.* debian/compat0000644000000000000000000000000211567563365010405 0ustar 7 debian/changelog0000644000000000000000000000306412142714670011047 0ustar tinyxml (2.6.2-2) unstable; urgency=low * Include /usr/share/dpkg/default.mk to set build flags and simplify debian/rules. - Build-depend on dpkg-dev (>= 1.16.1~). * Enable parallel building. * Convert to multiarch. * Bump Standards-Version to 3.9.4, no changes needed. * Use canonical URIs for Vcs-* fields. * Switch to my @debian.org email address. -- Felix Geyer Thu, 09 May 2013 14:42:26 +0200 tinyxml (2.6.2-1) unstable; urgency=low * New upstream release. * Switch to source format 3.0 (quilt). * Change SONAME and package names for new upstream version. * Bump Standards-Version to 3.9.2, no changes needed. * Add entity-encoding.patch from upstream bugtracker. -- Felix Geyer Tue, 24 May 2011 17:51:42 +0200 tinyxml (2.5.3-3) unstable; urgency=low * Revert most changes from 2.5.3-2 (Closes: #574852). Only provide tinyxml with STL support. * Set the source package format explicitly to "1.0". * Override libtinyxml2.5.3 shlibs to require at least 2.5.3-3. -- Felix Geyer Fri, 16 Apr 2010 00:54:55 +0200 tinyxml (2.5.3-2) unstable; urgency=low * Build a second variant of the library without STL support called libtinyxml-nostl.so * Rename library with STL support from libtinyxml.so to libtinyxml-stl.so * Add pkg-config files. -- Felix Geyer Thu, 18 Mar 2010 19:59:41 +0100 tinyxml (2.5.3-1) unstable; urgency=low * Initial release. (Closes: #531968) -- Felix Geyer Sun, 28 Feb 2010 20:13:57 +0100 debian/control0000644000000000000000000000450712142664115010601 0ustar Source: tinyxml Section: libs Priority: optional Maintainer: Felix Geyer Build-Depends: debhelper (>= 8.1.3~), dpkg-dev (>= 1.16.1~) Standards-Version: 3.9.4 Homepage: http://www.grinninglizard.com/tinyxml/ Vcs-Git: git://anonscm.debian.org/collab-maint/tinyxml.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/tinyxml.git Package: libtinyxml2.6.2 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: C++ XML parsing library This package contains the shared version of the TinyXml library. . TinyXml is a simple and small C++ XML parser that can be easily integrating into other programs. It reads XML and creates C++ objects representing the XML document. The objects can be manipulated, changed, and saved again as XML. Package: libtinyxml2.6.2-dbg Section: debug Priority: extra Architecture: any Multi-Arch: same Depends: ${misc:Depends}, libtinyxml2.6.2 (= ${binary:Version}) Description: TinyXml library - debug files This package contains debug symbols of the TinyXml library. . TinyXml is a simple and small C++ XML parser that can be easily integrating into other programs. It reads XML and creates C++ objects representing the XML document. The objects can be manipulated, changed, and saved again as XML. Package: libtinyxml-dev Section: libdevel Architecture: any Multi-Arch: same Depends: ${misc:Depends}, libtinyxml2.6.2 (= ${binary:Version}) Suggests: libtinyxml-doc Description: TinyXml library - header and static library This package contains the header file and a static version of the TinyXml library. . TinyXml is a simple and small C++ XML parser that can be easily integrating into other programs. It reads XML and creates C++ objects representing the XML document. The objects can be manipulated, changed, and saved again as XML. Package: libtinyxml-doc Section: doc Priority: extra Architecture: all Depends: ${misc:Depends} Recommends: libtinyxml-dev Description: TinyXml library - documentation files This package contains the documentation to program with the TinyXml library. . TinyXml is a simple and small C++ XML parser that can be easily integrating into other programs. It reads XML and creates C++ objects representing the XML document. The objects can be manipulated, changed, and saved again as XML. debian/tinyxml.pc.in0000644000000000000000000000037611765063311011634 0ustar prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib/${DEB_HOST_MULTIARCH} includedir=${prefix}/include Name: TinyXml Description: simple, small, C++ XML parser Version: ${DEB_VERSION_UPSTREAM} Libs: -L${libdir} -ltinyxml Cflags: -I${includedir} debian/watch0000644000000000000000000000010211565153566010225 0ustar version=3 http://sf.net/tinyxml/ tinyxml_(\d+)_(\d+)_(\d+).tar.gz debian/copyright0000644000000000000000000000270711564764442011144 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: TinyXml Maintainer: Lee Thomason Source: http://sourceforge.net/projects/tinyxml/ Files: * Copyright: 2000-2007, Lee Thomason 2002-2004, Yves Berquin License: ZLIB Files: tinystr.* Copyright: 2000-2007, Lee Thomason 2002-2004, Yves Berquin 2005, Tyge Lovset License: ZLIB Files: debian/* Copyright: 2009-2010, Felix Geyer License: ZLIB License: ZLIB This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. . 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. . 3. This notice may not be removed or altered from any source distribution. debian/patches/0000755000000000000000000000000011565153730010623 5ustar debian/patches/enforce-use-stl.patch0000644000000000000000000000104511564764442014666 0ustar Description: TinyXml is built with TIXML_USE_STL, so we have to enforce it when the library is used. Author: Felix Geyer diff -Nur tinyxml-2.5.3/tinyxml.h tinyxml-2.5.3.patch/tinyxml.h --- tinyxml-2.5.3/tinyxml.h 2007-05-07 00:41:23.000000000 +0200 +++ tinyxml-2.5.3.patch/tinyxml.h 2009-07-08 22:32:03.000000000 +0200 @@ -26,6 +26,10 @@ #ifndef TINYXML_INCLUDED #define TINYXML_INCLUDED +#ifndef TIXML_USE_STL + #define TIXML_USE_STL +#endif + #ifdef _MSC_VER #pragma warning( push ) #pragma warning( disable : 4530 ) debian/patches/series0000644000000000000000000000005411565153737012046 0ustar enforce-use-stl.patch entity-encoding.patch debian/patches/entity-encoding.patch0000644000000000000000000000277711565153566014770 0ustar Description: TinyXML incorrectly encodes text element containing an ampersand followed by either x or #. Origin: http://sourceforge.net/tracker/index.php?func=detail&aid=3031828&group_id=13559&atid=313559 diff -u -r1.105 tinyxml.cpp --- a/tinyxml.cpp +++ b/tinyxml.cpp @@ -57,30 +57,7 @@ { unsigned char c = (unsigned char) str[i]; - if ( c == '&' - && i < ( (int)str.length() - 2 ) - && str[i+1] == '#' - && str[i+2] == 'x' ) - { - // Hexadecimal character reference. - // Pass through unchanged. - // © -- copyright symbol, for example. - // - // The -1 is a bug fix from Rob Laveaux. It keeps - // an overflow from happening if there is no ';'. - // There are actually 2 ways to exit this loop - - // while fails (error case) and break (semicolon found). - // However, there is no mechanism (currently) for - // this function to return an error. - while ( i<(int)str.length()-1 ) - { - outString->append( str.c_str() + i, 1 ); - ++i; - if ( str[i] == ';' ) - break; - } - } - else if ( c == '&' ) + if ( c == '&' ) { outString->append( entity[0].str, entity[0].strLength ); ++i; diff -u -r1.89 xmltest.cpp --- a/xmltest.cpp +++ b/xmltest.cpp @@ -1340,6 +1340,16 @@ }*/ } + #ifdef TIXML_USE_STL + { + TiXmlDocument xml; + xml.Parse("foo&#xa+bar"); + std::string str; + str << xml; + XmlTest( "Entity escaping", "foo&#xa+bar", str.c_str() ); + } + #endif + /* 1417717 experiment { TiXmlDocument xml;