[Pkg-javascript-commits] [node-diffie-hellman] 86/88: Finalize debian
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:19:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-diffie-hellman.
commit 61c72a0ae79b593b9a211b2137a511118f876155
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Wed Apr 19 23:54:03 2017 +0200
Finalize debian
---
debian/changelog | 9 +++------
debian/compat | 2 +-
debian/control | 11 ++++++++---
debian/copyright | 2 +-
debian/install | 1 +
debian/rules | 6 ++----
debian/tests/control | 3 +++
debian/tests/runtestsuite | 13 +++++++++++++
debian/watch | 2 +-
9 files changed, 33 insertions(+), 16 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index bb564e1..f3bdd1a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,5 @@
-node-diffie-hellman (5.0.2-1) UNRELEASED; urgency=low
+node-diffie-hellman (5.0.2-1) unstable; urgency=low
- [ Bastien Roucariès <rouca at debian.org> Wed, 19 Apr 2017 23:29:34 +0200 ]
- * Initial release (Closes: #nnnn)
+ * Initial release (Closes: #860771)
- [ bastien ]
-
- -- bastien <bastien at portable2015-bastien.roucariès.eu> Wed, 19 Apr 2017 23:29:51 +0200
+ -- Bastien Roucariès <rouca at debian.org> Wed, 19 Apr 2017 23:53:13 +0200
diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index 771f87b..cff9d9a 100644
--- a/debian/control
+++ b/debian/control
@@ -4,9 +4,14 @@ Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
Uploaders: Bastien Roucariès <rouca at debian.org>
Build-Depends:
- debhelper (>= 9)
+ debhelper (>= 10)
, dh-buildinfo
- , nodejs
+ , nodejs (>= 4.7)
+ , dpkg-dev (>= 1.17.14)
+ , node-tape (>= 3.0.1) <!nocheck>
+ , node-randombytes (>= 2.0.0) <!nocheck>
+ , node-miller-rabin (>= 4.0.0) <!nocheck>
+ , node-bn.js (>= 4.1.0) <!nocheck>
Standards-Version: 3.9.8
Homepage: https://github.com/crypto-browserify/diffie-hellman
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-diffie-hellman.git
@@ -16,7 +21,7 @@ Package: node-diffie-hellman
Architecture: all
Depends:
${misc:Depends}
- , nodejs
+ , nodejs (>=4.7)
, node-randombytes (>= 2.0.0)
, node-miller-rabin (>= 4.0.0)
, node-bn.js (>= 4.1.0)
diff --git a/debian/copyright b/debian/copyright
index 9eb3dba..d229a26 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -4,7 +4,7 @@ Upstream-Contact: https://github.com/crypto-browserify/diffie-hellman/issues
Source: https://github.com/crypto-browserify/diffie-hellman
Files: *
-Copyright: 2017 Calvin Metcalf
+Copyright: 2014-2017 Calvin Metcalf
License: Expat
Files: debian/*
diff --git a/debian/install b/debian/install
index b5cd3a3..0c2de24 100644
--- a/debian/install
+++ b/debian/install
@@ -1,3 +1,4 @@
lib usr/lib/nodejs/diffie-hellman/
index.js usr/lib/nodejs/diffie-hellman/
+browser.js usr/lib/nodejs/diffie-hellman/
package.json usr/lib/nodejs/diffie-hellman/
diff --git a/debian/rules b/debian/rules
index de57af0..63d39f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,5 @@
#override_dh_auto_build:
-#override_dh_auto_test:
-
-
-
+override_dh_auto_test:
+ tape test.js
diff --git a/debian/tests/control b/debian/tests/control
index b72c688..03e132b 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
Tests: require
Depends: node-diffie-hellman
+
+Tests: runtestsuite
+Depends: node-diffie-hellman, node-tape (>= 3.0.1)
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..16bed46
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+# notice the / at end in order to load this module
+PACKAGE='diffie-hellman'
+SEDCMD="s,require\s*[(]\s*'[.]/,require('$PACKAGE'/,g"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp test.js $tmpdir/test.js
+echo 'test.js' |
+ xargs -n1 sh -c 'set -e; echo "TESTING: $3"; sed "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+tape $tmpdir/test.js
diff --git a/debian/watch b/debian/watch
index 8e60641..bd4762d 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,4 @@
-version=3
+version=4
opts=\
dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-diffie-hellman-$1.tar.gz/ \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-diffie-hellman.git
More information about the Pkg-javascript-commits
mailing list