[Pkg-javascript-commits] [node-miller-rabin] 33/37: Improve debianization
Bastien Roucariès
rouca at moszumanska.debian.org
Thu May 4 10:20:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-miller-rabin.
commit 9f11d2e5901d8c2fd0d91333f1d8b097b567b7f0
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Mon Apr 17 14:05:13 2017 +0200
Improve debianization
---
debian/changelog | 10 ++++------
debian/control | 19 ++++++++++++++++---
debian/copyright | 2 +-
debian/links | 1 -
debian/rules | 8 ++++++++
debian/watch | 2 +-
6 files changed, 30 insertions(+), 12 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b4380fd..1d6c26e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,6 @@
-node-miller-rabin (4.0.0-1) UNRELEASED; urgency=low
+node-miller-rabin (4.0.0-1) unstable; urgency=low
- [ Bastien Roucariès <rouca at debian.org> Mon, 17 Apr 2017 09:52:13 +0200 ]
- * Initial release (Closes: #nnnn)
+ * Initial release (Closes: #860331).
+ * Do not package /usr/bin/miller-rabin.
- [ bastien ]
-
- -- bastien <bastien at portable2015-bastien.roucariès.eu> Mon, 17 Apr 2017 09:52:31 +0200
+ -- Bastien Roucariès <rouca at debian.org> Mon, 17 Apr 2017 14:05:03 +0200
diff --git a/debian/control b/debian/control
index 9ada883..39f2ec8 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,11 @@ Uploaders: Bastien Roucariès <rouca at debian.org>
Build-Depends:
debhelper (>= 10)
, dh-buildinfo
- , nodejs
+ , nodejs (>= 4.7)
+ , dpkg-dev (>= 1.17.14)
+ , node-brorand (>= 1.0.1) <!nocheck>
+ , node-bn.js (>= 4.0.0) <!nocheck>
+ , mocha (>= 1.2) <!nocheck>
Standards-Version: 3.9.8
Homepage: https://github.com/indutny/miller-rabin
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-miller-rabin.git
@@ -16,10 +20,19 @@ Package: node-miller-rabin
Architecture: all
Depends:
${misc:Depends}
- , nodejs
+ , nodejs (>= 4.7)
, node-brorand (>= 1.0.1)
, node-bn.js (>= 4.0.0)
Description: Miller Rabin algorithm for primality test
- FIX_ME long description
+ This a pure javascript implementation of Miller Rabin primality test.
+ .
+ The Miller–Rabin primality test or Rabin–Miller primality test is a
+ primality test: an algorithm which determines whether a given number
+ is prime.
+ .
+ Like the Fermat and Solovay–Strassen tests, the Miller–Rabin test
+ relies on an equality or set of equalities that hold true for prime
+ values, then checks whether or not they hold for a number that is
+ tested for primality.
.
Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
index 81fc221..65455af 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -4,7 +4,7 @@ Upstream-Contact: https://github.com/indutny/miller-rabin/issues
Source: https://github.com/indutny/miller-rabin
Files: *
-Copyright: 2017 Fedor Indutny <fedor at indutny.com>
+Copyright: 2014-2017 Fedor Indutny <fedor at indutny.com>
License: Expat
Files: debian/*
diff --git a/debian/links b/debian/links
deleted file mode 100644
index 8cb0327..0000000
--- a/debian/links
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/nodejs/miller-rabin/bin/miller-rabin usr/bin/miller-rabin
diff --git a/debian/rules b/debian/rules
index de57af0..e31349d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,4 +12,12 @@
#override_dh_auto_test:
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ mocha -R spec test/
+else
+ @echo '**********************************************************'
+ @echo 'Skip test suite '
+ @echo '**********************************************************'
+endif
diff --git a/debian/watch b/debian/watch
index 045a83e..3f2a277 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-miller-rabin-$1.tar.gz/ \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-miller-rabin.git
More information about the Pkg-javascript-commits
mailing list