[Pkg-javascript-commits] [node-to-regex-range] 06/07: Update packaging

Julien Puydt julien.puydt at laposte.net
Sat Nov 25 16:46:27 UTC 2017


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

jpuydt-guest pushed a commit to branch master
in repository node-to-regex-range.

commit 19274f1a81181c5e19a695b1cbc42a074868052b
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sat Nov 25 17:31:12 2017 +0100

    Update packaging
---
 debian/changelog               |  9 +++++++++
 debian/compat                  |  2 +-
 debian/control                 | 26 ++++++++++++--------------
 debian/copyright               |  2 +-
 debian/docs                    |  1 +
 debian/rules                   |  6 ------
 debian/tests/control           |  6 +++---
 debian/tests/upstreamtestsuite |  5 +++++
 debian/watch                   | 11 ++---------
 9 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8586d3c..6959e57 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,15 @@ node-to-regex-range (3.0.0-1) UNRELEASED; urgency=medium
 
   * Team upload
   * New upstream release
+  * Update packaging:
+    - Use https in d/copyright's Format
+    - Bump dh compat to 10
+    - Clean d/rules
+    - Move to section javascript
+    - Bump std-ver to 4.1.1
+    - Update d/watch (version 4 and direct upstream github)
+    - Made autopkgtest check the installed code
+    - Ship example.js as documentation
 
  -- Julien Puydt <julien.puydt at laposte.net>  Sat, 25 Nov 2017 17:21:52 +0100
 
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 3a590c8..f06b9e9 100644
--- a/debian/control
+++ b/debian/control
@@ -1,27 +1,25 @@
 Source: node-to-regex-range
-Section: web
+Section: javascript
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Pirate Praveen <praveen at debian.org>
-Build-Depends:
- debhelper (>= 9)
- , dh-buildinfo
- , nodejs
- , mocha
- , node-repeat-string (>= 1.5.4~)
- , node-is-number (>= 2.1.0~)
-Standards-Version: 3.9.8
+Build-Depends: debhelper (>= 10),
+               mocha,
+               node-fill-range,
+               node-is-number (>= 2.1.0~),
+               node-repeat-string (>= 1.5.4~),
+               nodejs
+Standards-Version: 4.1.1
 Homepage: https://github.com/jonschlinkert/to-regex-range
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-to-regex-range.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-to-regex-range.git
 
 Package: node-to-regex-range
 Architecture: all
-Depends:
- ${misc:Depends}
- , nodejs
- , node-repeat-string (>= 1.5.4~)
- , node-is-number (>= 2.1.0~)
+Depends: node-is-number (>= 2.1.0~),
+         node-repeat-string (>= 1.5.4~),
+         nodejs,
+         ${misc:Depends}
 Description: returns a regex-compatible range from two numbers, min and max
  It comes with 855,412 generated unit tests to validate it's accuracy! Useful
  for creating regular expressions to validate numbers, ranges, years, etc.
diff --git a/debian/copyright b/debian/copyright
index 777374e..548daad 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,4 +1,4 @@
-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: to-regex-range
 Upstream-Contact: https://github.com/jonschlinkert/to-regex-range/issues
 Source: https://github.com/jonschlinkert/to-regex-range
diff --git a/debian/docs b/debian/docs
index b43bf86..5b291c0 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1,2 @@
 README.md
+examples.js
diff --git a/debian/rules b/debian/rules
index 3170fba..95a8f0f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,7 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
 
 %:
 	dh $@
 
-#override_dh_auto_build:
-
 override_dh_auto_test:
 	mocha
diff --git a/debian/tests/control b/debian/tests/control
index 9268088..4b43831 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,5 +1,5 @@
 Tests: require
-Depends: node-to-regex-range
+Depends: @
 
-Test-Command: mocha
-Depends: @, @builddeps@
+Tests: upstreamtestsuite
+Depends: @, node-fill-range, node-mocha
diff --git a/debian/tests/upstreamtestsuite b/debian/tests/upstreamtestsuite
new file mode 100644
index 0000000..635d119
--- /dev/null
+++ b/debian/tests/upstreamtestsuite
@@ -0,0 +1,5 @@
+#!/bin/sh
+set -e
+cp test/test.js test.js
+sed -i test.js -e "s|require('..')|require('to-regex-range')|g"
+mocha test.js
diff --git a/debian/watch b/debian/watch
index 0d2fe64..b13d7d5 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,9 +1,2 @@
-version=3
-# It is not recommended use fakeupstream. Please investigate more.
-# Origin url: FIX_ME repo url
-# Take a look at https://wiki.debian.org/debian/watch/
-# See also fakeupstream: http://anonscm.debian.org/viewvc/qa/trunk/cgi-bin/fakeupstream.cgi?view=markup
-opts=\
-dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
-filenamemangle=s/.*=// \
- http://qa.debian.org/cgi-bin/fakeupstream.cgi?upstream=npmjs/to-regex-range .*=to-regex-range-(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz))
+version=4
+https://github.com/jonschlinkert/to-regex-range/tags .*/archive/v?([\d\.]+).tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-to-regex-range.git



More information about the Pkg-javascript-commits mailing list