debian/0000775000000000000000000000000012315732362007174 5ustar debian/copyright_hints0000664000000000000000000000153611771073667012354 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: FIXME Upstream-Contact: FIXME Source: FIXME Disclaimer: Autogenerated by CDBS Files: README.markdown bench.js debian/compat debian/control debian/control.in debian/dirs debian/gbp.conf debian/patches/1001_relax_test_timing_tolerance.patch debian/patches/README debian/patches/series debian/source/format debian/watch lib/node-expat.js node-expat.cc package.json test-mystic-library.xml test.js tools/Readme.txt tools/module.gyp tools/node-gyp tools/node-gyp.bat wscript Copyright: *No copyright* License: UNKNOWN FIXME Files: debian/rules Copyright: 2011-2012, Jonas Smedegaard License: GPL-2+ FIXME Files: LICENSE Copyright: 2010, Stephan Maka HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER License: MIT/X11 (BSD like) FIXME debian/links0000664000000000000000000000007612315732316010241 0ustar usr/lib/nodejs/node_expat.node usr/lib/nodejs/node-expat.node debian/install0000664000000000000000000000005612315732234010564 0ustar build/Release/node_expat.node usr/lib/nodejs/ debian/control.in0000664000000000000000000000150312032322304011166 0ustar Source: node-expat Section: web Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Javascript Maintainers Uploaders: Jonas Smedegaard Build-Depends: @cdbs@ Standards-Version: 3.9.3 Homepage: https://github.com/astro/node-expat Vcs-Git: git://git.debian.org/git/collab-maint/node-expat Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/node-expat.git Package: node-node-expat Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, nodejs Conflicts: libnode-node-expat Replaces: libnode-node-expat Provides: libnode-node-expat Description: fast XML parser library for Node Node is an event-based server-side JavaScript engine. . node-expat is a fast XML parser library for Node. debian/copyright0000664000000000000000000000431711737273147011144 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: node-expat Upstream-Contact: Astro http://github.com/astro/node-expat/issues/ Source: https://github.com/astro/node-expat/downloads git://github.com/astro/node-expat Files: * Copyright: 2010, Stephan Maka License: Expat Files: debian/* Copyright: 2011,2012, Jonas Smedegaard License: GPL-2+ License: Expat 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. License: GPL-2+ 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, 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. Comment: On Debian systems the 'GNU General Public License' version 2 is located in '/usr/share/common-licenses/GPL-2'. . You should have received a copy of the 'GNU General Public License' along with this program. If not, see . debian/source/0000775000000000000000000000000011665171457010505 5ustar debian/source/format0000664000000000000000000000001411442224275011701 0ustar 3.0 (quilt) debian/changelog0000664000000000000000000001102012315732352011037 0ustar node-expat (1.6.0-2ubuntu2) trusty; urgency=medium * 9999_switch_to_gyp.patch: Switch from node-waf to node-gyp. * debian/*: Adjust build-deps, debhelper, and rules for gyp. -- Adam Conrad Sat, 29 Mar 2014 23:16:08 -0600 node-expat (1.6.0-2ubuntu1) quantal; urgency=low * Merge with Debian unstable. Remaining changes: - Cope with node -> nodejs renaming. -- Michael Bienia Mon, 01 Oct 2012 16:11:04 +0200 node-expat (1.6.0-2) unstable; urgency=medium * Fix add symlink to still provide old name node-expat (not only new Windows-compatible node_expat). Closes: Bug#678762. Thanks to Lucas Nussbaum and Evgeni Golov. * Raise to urgency=medium as all dependent packages are now broken. -- Jonas Smedegaard Sat, 07 Jul 2012 10:38:24 +0200 node-expat (1.6.0-1ubuntu1) quantal; urgency=low * Cope with node -> nodejs renaming. -- Michael Bienia Mon, 01 Oct 2012 13:52:11 +0200 node-expat (1.6.0-1) unstable; urgency=low * New upstream release. * Directly use github.com URL (not githubredir.debian.net redirector) when fetching upstream source. * Add debian/patches/README documenting patch numbering micro-policy. * Refresh patch. * Improve build routines: + Add stamp files to avoid double configure or build. + Build verbosely, and avoid ANSI colors. + Fix resolve and apply security hardening build flags. -- Jonas Smedegaard Fri, 22 Jun 2012 20:08:42 +0200 node-expat (1.5.0-2) unstable; urgency=low * Use anonscm.debian.org for Vcs-Browser field. * Relax timing tolerance of test to avoid failure on slow architectures. Closes: bug#670678. Thanks to Aaron M. Ucko. -- Jonas Smedegaard Thu, 10 May 2012 14:42:55 +0200 node-expat (1.5.0-1) unstable; urgency=low * New upstream release. -- Jonas Smedegaard Fri, 13 Apr 2012 12:55:58 -0400 node-expat (1.4.5-1) unstable; urgency=low * New upstream release. * Extend my copyright for Debian packaging. * Update copyright file: + Shorten GPL comment, and quote license strings in it. * Build-depend unversioned on nodejs-dev: Required version satisfied in untable (and unavailable in other Debian releases). -- Jonas Smedegaard Thu, 05 Apr 2012 12:40:44 +0200 node-expat (1.4.3-1) unstable; urgency=low * New upstream release. * Update watch file to use more flexible regex. * Bump copyright file format to 1.0. * Bump standards-version to 3.9.3. -- Jonas Smedegaard Thu, 01 Mar 2012 20:27:59 +0100 node-expat (1.4.1-2) unstable; urgency=low * Drop obsolete (and ignored on buildds) libnode-* fallback build- dependency. * Bump debhelper compatilibity level to 7. -- Jonas Smedegaard Wed, 07 Dec 2011 08:08:47 +0700 node-expat (1.4.1-1) unstable; urgency=low * New upstream release. * Rename libnode-node-expat → node-node-expat. Replace and conflict with (and temporarily provide) old package name. * Update package relations: + Relax build-depend unversioned on debhelper and cdbs (needed versions satisfied even in oldstable). + Build-depend on node-vows favored over legacy package name libnode-vows. * Drop dpkg local-options hints from packaging source: now defaults. -- Jonas Smedegaard Tue, 29 Nov 2011 21:57:18 +0700 node-expat (1.4.0-1) unstable; urgency=low * New upstream release. * Run regresssion tests during build. Build-depend on libnode-vows. -- Jonas Smedegaard Sun, 21 Aug 2011 11:46:17 +0200 node-expat (1.3.0-1) unstable; urgency=low * New upstream release. * Bump copyright file format to draft 174 of DEP-5. * Bump policy compliance to standards-version 3.9.2. -- Jonas Smedegaard Sat, 16 Apr 2011 11:02:04 +0200 node-expat (1.2.0-3) unstable; urgency=low * Fix tie proper email addresses to artist and real name of upstream author, as per request. * Package now team-maintained: + Set Debian Javascript Maintainers as maintainer. + Set myself as uploader. -- Jonas Smedegaard Sat, 12 Mar 2011 11:17:07 +0100 node-expat (1.2.0-2) experimental; urgency=low * Fix gitignore /.pc (not bogus raw). * Rename binary package to match micro-policy Node naming scheme: libnode-PKG. -- Jonas Smedegaard Fri, 28 Jan 2011 12:17:53 +0100 node-expat (1.2.0-1) experimental; urgency=low * Initial release. Closes: Bug#611223. -- Jonas Smedegaard Wed, 26 Jan 2011 23:26:25 +0100 debian/compat0000664000000000000000000000000211666637472010410 0ustar 7 debian/rules0000775000000000000000000000543112315731726010262 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright © 2011, 2012 Jonas Smedegaard # Description: Main Debian packaging script for node-expat # # 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, 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 program. If not, see . -include /usr/share/cdbs/1/rules/upstream-tarball.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/class/langcore.mk include /usr/share/cdbs/1/rules/debhelper.mk libpkgname = node-node-expat CDBS_BUILD_DEPENDS += , nodejs-dev, libexpat-dev, node-vows # suppress optional build-dependencies CDBS_BUILD_DEPENDS_rules_upstream-tarball = CDBS_BUILD_DEPENDS_rules_utils_copyright-check = DEB_UPSTREAM_URL = https://github.com/astro/$(DEB_UPSTREAM_PACKAGE)/tarball DEB_UPSTREAM_TARBALL_BASENAME = v$(DEB_UPSTREAM_TARBALL_VERSION) DEB_UPSTREAM_TARBALL_DELIMITER = DEB_UPSTREAM_TARBALL_EXTENSION = DEB_UPSTREAM_RECEIVED_EXTENSION = tar.gz DEB_UPSTREAM_WGET_OPTS += --no-check-certificate DEB_UPSTREAM_TARBALL_MD5 = fd5669799856e52b3d35c55a8795a3c7 DEB_INSTALL_DOCS_$(libpkgname) += README.markdown # Fix backwards compatibility. See bug#678762 DEB_DH_LINK_$(libpkgname) = usr/lib/nodejs/node_expat.node /usr/lib/nodejs/node-expat.node # node-waf build routines NODE-WAF-BUILDFLAGS = CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LINKFLAGS="$(LDFLAGS)" NODE-WAF = node-gyp NODE = NODE_DISABLE_COLORS=1 nodejs configure/$(libpkgname):: debian/stamp-node-waf-configure debian/stamp-node-waf-configure: $(NODE-WAF-BUILDFLAGS) $(NODE-WAF) configure touch $@ build/$(libpkgname):: debian/stamp-node-waf-build debian/stamp-node-waf-build: $(NODE-WAF) build $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,$(NODE) test.js) touch $@ clean:: rm -rf build rm -f .lock-wscript rm -f debian/stamp-node-waf-configure debian/stamp-node-waf-build # Node modules have an uncommon extension preventing autodetection by # dh_shlibdeps, so we do it manually binary-strip-IMPL/$(libpkgname):: $(if $(is_debug_package)$(filter nostrip,$(DEB_BUILD_OPTIONS)),,find "$(cdbs_curdestdir)" -name "*.node" -exec strip --remove-section=.comment --remove-section=.note --strip-unneeded {} +) binary-predeb-IMPL/$(libpkgname):: find "$(cdbs_curdestdir)" -name "*.node" -exec dpkg-shlibdeps -Tdebian/$(cdbs_curpkg).substvars {} + debian/dirs0000664000000000000000000000001711520114701010042 0ustar usr/lib/nodejs debian/control0000664000000000000000000000161712315725410010600 0ustar Source: node-expat Section: web Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Javascript Maintainers Uploaders: Jonas Smedegaard Build-Depends: cdbs, debhelper, dh-buildinfo, nodejs-dev, node-gyp, libexpat-dev, node-vows Standards-Version: 3.9.3 Homepage: https://github.com/astro/node-expat Vcs-Git: git://git.debian.org/git/collab-maint/node-expat Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/node-expat.git Package: node-node-expat Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, nodejs Conflicts: libnode-node-expat Replaces: libnode-node-expat Provides: libnode-node-expat Description: fast XML parser library for Node Node is an event-based server-side JavaScript engine. . node-expat is a fast XML parser library for Node. debian/watch0000664000000000000000000000011411771073204010217 0ustar version=3 https://github.com/astro/node-expat/tags .*/tarball/v?(\d[\d\.]+) debian/gbp.conf0000664000000000000000000000014611442224275010613 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True sign-tags = True debian/patches/0000775000000000000000000000000012315724214010620 5ustar debian/patches/1001_relax_test_timing_tolerance.patch0000664000000000000000000000071311771073661020070 0ustar Description: Relax timing tolerance of test to avoid failure on slow architectures Author: Jonas Smedegaard Bug-Debian: http://bugs.debian.org/670678 Last-Update: 2012-05-10 --- a/test.js +++ b/test.js @@ -212,7 +212,7 @@ var expected = ['wrap', 'short', 'short', 'long', 'short', 'long']; var received = []; - var tolerance = 10/100; + var tolerance = 1; var expectedRuntime = 1000; var start = new Date(); debian/patches/README0000664000000000000000000000021111347270217011475 0ustar 0xxx: Grabbed from upstream development. 1xxx: Possibly relevant for upstream adoption. 2xxx: Only relevant for official Debian release. debian/patches/9999_switch_to_gyp.patch0000664000000000000000000000365512315724200015232 0ustar From e7d7cb51f60b821600ef58fb3c4293af4d3d7582 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Tue, 26 Jun 2012 17:22:19 -0700 Subject: [PATCH] build: add support for building with node-gyp --- binding.gyp | 11 +++++++++++ package.json | 15 ++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 binding.gyp diff --git a/binding.gyp b/binding.gyp new file mode 100644 index 0000000..0059465 --- /dev/null +++ b/binding.gyp @@ -0,0 +1,11 @@ +{ + 'targets': [ + { + 'target_name': 'node_expat', + 'sources': [ 'node-expat.cc' ], + 'libraries': [ + '-lexpat' + ] + } + ] +} diff --git a/package.json b/package.json index be06986..a177510 100644 --- a/package.json +++ b/package.json @@ -3,21 +3,18 @@ ,"main": "./lib/node-expat" ,"description": "NodeJS binding for fast XML parsing." ,"keywords": ["xml","sax","expat","libexpat","parse","parsing"] -,"scripts" : { "install": "node-waf configure build" - ,"update": "node-waf build" - ,"test": "vows --spec ./test.js" - } +,"scripts" : { "test": "vows --spec ./test.js" } ,"dependencies": {} ,"devDependencies": {"vows": ">=0.5.12"} ,"repository": { "type": "git" - , "path": "git://github.com/astro/node-expat.git" - } + , "path": "git://github.com/astro/node-expat.git" + } ,"homepage": "http://github.com/astro/node-expat" ,"bugs": "http://github.com/astro/node-expat/issues" ,"author": { "name": "Astro" - , "email": "astro@spaceboyz.net" - , "web": "http://spaceboyz.net/~astro/" - } + , "email": "astro@spaceboyz.net" + , "web": "http://spaceboyz.net/~astro/" + } ,"contributors": ["Stephan Maka", "Derek Hammer", "Iein Valdez", "Peter Körner", "Camilo Aguilar", "Michael Weibel", "Alexey Zhuchkov", "Satyam Shekhar", "Dhruv Matani", "Andreas Botsikas", "Tom Hughes-Croucher"] ,"licenses": [{ "type": "MIT" }] ,"engines": { "node": ">=0.4" } -- 1.8.5.5 debian/patches/series0000664000000000000000000000010012315724214012024 0ustar 1001_relax_test_timing_tolerance.patch 9999_switch_to_gyp.patch