[Pkg-javascript-commits] [node-component-emitter] 03/03: Update Debian packaging for version 1.2.0.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri Apr 3 22:16:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository node-component-emitter.

commit 5167bbb17b5f86a40059f3bb6ae8a712007f0138
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Apr 4 00:09:30 2015 +0200

    Update Debian packaging for version 1.2.0.
---
 debian/changelog              |  7 +++----
 debian/compat                 |  2 +-
 debian/control                | 36 ++++++++++++++++++------------------
 debian/copyright              |  8 ++++----
 debian/gbp.conf               | 16 ++++++++++++++++
 debian/install                |  2 +-
 debian/patches/makefile.patch | 21 ---------------------
 debian/patches/series         |  1 -
 debian/rules                  |  6 ++++--
 debian/tests/control          |  2 ++
 debian/tests/require          |  3 +++
 debian/upstream/metadata      |  6 ++++++
 debian/watch                  |  5 +++--
 13 files changed, 61 insertions(+), 54 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9a464cd..7625d3f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,5 @@
-node-component-emitter (1.1.2-1) UNRELEASED; urgency=low
+node-component-emitter (1.2.0-1) UNRELEASED; urgency=low
 
-  * Initial release (Closes: #750177)
-
- -- Leo Iannacone <l3on at ubuntu.com>  Mon, 02 Jun 2014 12:29:03 +0200
+  * Initial release (Closes: #781854)
 
+ -- Bas Couwenberg <sebastic at debian.org>  Fri, 03 Apr 2015 22:31:39 +0200
diff --git a/debian/compat b/debian/compat
index 45a4fb7..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-8
+9
diff --git a/debian/control b/debian/control
index 437ffa0..7dcd4c3 100644
--- a/debian/control
+++ b/debian/control
@@ -1,27 +1,27 @@
 Source: node-component-emitter
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Bas Couwenberg <sebastic at debian.org>
 Section: web
 Priority: extra
-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
-Uploaders: Leo Iannacone <l3on at ubuntu.com>
-Build-Depends:
- debhelper (>= 8)
- , dh-buildinfo
- , nodejs
- , node-should
- , node-mocha
-Standards-Version: 3.9.5
-Homepage: https://github.com/component/emitter
+Build-Depends: debhelper (>= 9),
+               dh-buildinfo,
+               nodejs,
+               node-should,
+               mocha
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-javascript/node-component-emitter.git
 Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-component-emitter.git
-Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-component-emitter.git
+Homepage: https://github.com/component/emitter
+XS-Testsuite: autopkgtest
 
 Package: node-component-emitter
 Architecture: all
-Depends:
- ${misc:Depends}
- , nodejs
-Description: event emitter component - Node.js module
- This package contains a event emitter object for Node.js.
- The Emitter object can also be used as mixin, exteding
- regular objects and making them as emitters.
+Depends: ${misc:Depends},
+         nodejs
+Description: Event emitter for Node.js
+ emitter is a Node.js module for emitting events.
+ .
+ The Emitter object can be used as an instance, mixin or prototype mixin.
  .
  Node.js is an event-based server-side JavaScript engine.
+
diff --git a/debian/copyright b/debian/copyright
index 4af2648..ac3af1c 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,14 +1,14 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: component-emitter
-Upstream-Contact: https://github.com/component/emitter/issues
+Upstream-Name: emitter
+Upstream-Contact: Component contributors <dev at component.io>
 Source: https://github.com/component/emitter
 
 Files: *
-Copyright: 2014 Component contributors <dev at component.io>
+Copyright: 2014, Component contributors <dev at component.io>
 License: Expat
 
 Files: debian/*
-Copyright: 2014 Leo Iannacone <l3on at ubuntu.com>
+Copyright: 2015, Bas Couwenberg <sebastic at debian.org>
 License: Expat
 
 License: Expat
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..21d0417
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,16 @@
+[DEFAULT]
+
+# The default name for the upstream branch is "upstream".
+# Change it if the name is different (for instance, "master").
+upstream-branch = upstream
+
+# The default name for the Debian branch is "master".
+# Change it if the name is different (for instance, "debian/unstable").
+debian-branch = master
+
+# git-import-orig uses the following names for the upstream tags.
+# Change the value if you are not using git-import-orig
+upstream-tag = upstream/%(version)s
+
+# Always use pristine-tar.
+pristine-tar = True
diff --git a/debian/install b/debian/install
index 03fe287..9c8be6b 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1,2 @@
 package.json usr/lib/nodejs/component-emitter/
-index.js usr/lib/nodejs/component-emitter/
+index.js     usr/lib/nodejs/component-emitter/
diff --git a/debian/patches/makefile.patch b/debian/patches/makefile.patch
deleted file mode 100644
index e659198..0000000
--- a/debian/patches/makefile.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-Description: Use system mocha binary
-Author: Leo Iannacone <l3on at ubuntu.com>
-Forwarded: not-needed
-
----
- Makefile |    4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
---- a/Makefile
-+++ b/Makefile
-@@ -1,7 +1,7 @@
-
- test:
--	@./node_modules/.bin/mocha \
-+	mocha \
- 		--require should \
- 		--reporter spec
-
--.PHONY: test
-\ No newline at end of file
-+.PHONY: test
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 82374e5..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-makefile.patch
diff --git a/debian/rules b/debian/rules
index b77c631..3cc90ac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,11 @@
 %:
 	dh $@
 
-#override_dh_auto_build:
+override_dh_auto_build:
+	# Skip upstream Makefile
 
-#override_dh_auto_test:
+override_dh_auto_test:
+	mocha --require should --reporter spec
 
 override_dh_installchangelogs:
 	dh_installchangelogs -k History.md
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..c6bf6bd
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-component-emitter
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..f940c27
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('emitter');"
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..58fcbd4
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+---
+Bug-Database: https://github.com/component/emitter/issues
+Bug-Submit: https://github.com/component/emitter/issues/new
+Name: emitter
+Repository: https://github.com/component/emitter.git
+Repository-Browse: https://github.com/component/emitter
diff --git a/debian/watch b/debian/watch
index 5f37cc7..f3cec0d 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,5 +1,6 @@
 version=3
 opts=\
-dversionmangle=s/\?(debian|dfsg|ds|deb)\d*$//,\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
 filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-component-emitter-$1.tar.gz/ \
- https://github.com/component/emitter/tags .*/archive/v?([\d\.]+).tar.gz
+https://github.com/component/emitter/tags \
+.*/archive/v?([\d\.]+).tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-component-emitter.git



More information about the Pkg-javascript-commits mailing list