[Pkg-javascript-commits] [node-snapdragon] 01/01: Update packaging

Julien Puydt julien.puydt at laposte.net
Sat Nov 25 21:54:16 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-snapdragon.

commit c03bc5501bc4b73e6116e104cdcc02be3d9472d1
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sat Nov 25 22:48:51 2017 +0100

    Update packaging
---
 debian/changelog               | 14 ++++++++++++
 debian/compat                  |  2 +-
 debian/control                 | 49 ++++++++++++++++++++----------------------
 debian/copyright               |  3 +--
 debian/install                 |  4 ++--
 debian/rules                   |  8 -------
 debian/tests/control           |  6 +++---
 debian/tests/upstreamtestsuite |  6 ++++++
 debian/watch                   |  2 +-
 9 files changed, 51 insertions(+), 43 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b2b86c4..8c1f187 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,17 @@
+node-snapdragon (0.8.1-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Update packaging:
+    - Bump dh compat to 10
+    - Bump std-ver to 4.1.1
+    - Bump d/watch to version 4
+    - Move to section javascript
+    - Use https for d/copyright's Format
+    - Clean d/rules
+    - Make autopkgtest check the installed code
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Sat, 25 Nov 2017 22:47:25 +0100
+
 node-snapdragon (0.8.1-1) unstable; urgency=low
 
   * Initial release (Closes: #842916)
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 a5be392..e277611 100644
--- a/debian/control
+++ b/debian/control
@@ -1,39 +1,36 @@
 Source: node-snapdragon
-Section: web
+Section: javascript
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Sruthi Chandran <srud at disroot.org>
-Build-Depends:
- debhelper (>= 9)
- , dh-buildinfo
- , nodejs
- , mocha
- , node-define-property (>= 0.2.5)
- , node-source-map (>= 0.5.6)
- , node-map-cache (>= 0.2.2)
- , node-base (>= 0.11.1)
- , node-extend-shallow (>= 2.0.1)
- , node-use (>= 2.0.0)
- , node-debug (>= 2.1.0)
- , node-css
-Standards-Version: 3.9.8
+Build-Depends: debhelper (>= 10),
+               mocha,
+               node-base (>= 0.11.1),
+               node-css,
+               node-debug (>= 2.1.0),
+               node-define-property (>= 0.2.5),
+               node-extend-shallow (>= 2.0.1),
+               node-map-cache (>= 0.2.2),
+               node-source-map (>= 0.5.6),
+               node-use (>= 2.0.0),
+               nodejs
+Standards-Version: 4.1.1
 Homepage: https://github.com/jonschlinkert/snapdragon
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-snapdragon.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-snapdragon.git
 
 Package: node-snapdragon
 Architecture: all
-Depends:
- ${misc:Depends}
- , nodejs
- , node-define-property (>= 0.2.5)
- , node-source-map (>= 0.5.6)
- , node-map-cache (>= 0.2.2)
- , node-base (>= 0.11.1)
- , node-extend-shallow (>= 2.0.1)
- , node-use (>= 2.0.0)
- , node-debug (>= 2.1.0)
- , node-css
+Depends: node-base (>= 0.11.1),
+         node-css,
+         node-debug (>= 2.1.0),
+         node-define-property (>= 0.2.5),
+         node-extend-shallow (>= 2.0.1),
+         node-map-cache (>= 0.2.2),
+         node-source-map (>= 0.5.6),
+         node-use (>= 2.0.0),
+         nodejs,
+         ${misc:Depends}
 Description: Fast, pluggable and easy-to-use parser-renderer factory
  .
  Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
index 4610b2d..50a177e 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: snapdragon
 Upstream-Contact: https://github.com/jonschlinkert/snapdragon/issues
 Source: https://github.com/jonschlinkert/snapdragon
@@ -35,4 +35,3 @@ License: Expat
  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.
-
diff --git a/debian/install b/debian/install
index cf9b19a..74c4cb5 100644
--- a/debian/install
+++ b/debian/install
@@ -1,3 +1,3 @@
-package.json usr/lib/nodejs/snapdragon/
-lib usr/lib/nodejs/snapdragon/
 index.js usr/lib/nodejs/snapdragon/
+lib usr/lib/nodejs/snapdragon/
+package.json usr/lib/nodejs/snapdragon/
diff --git a/debian/rules b/debian/rules
index 9eb6b18..3e4507e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +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 -R spec
-
-
diff --git a/debian/tests/control b/debian/tests/control
index b2e02ab..f4f363a 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,5 +1,5 @@
 Tests: require
-Depends: node-snapdragon
+Depends: @
 
-Test-Command: mocha -R spec
-Depends: @, @builddeps@
+Tests: upstreamtestsuite
+Depends: @, node-mocha
diff --git a/debian/tests/upstreamtestsuite b/debian/tests/upstreamtestsuite
new file mode 100644
index 0000000..0b4fb8c
--- /dev/null
+++ b/debian/tests/upstreamtestsuite
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+cp -R test test.modified
+sed -i `find test.modified -type f` -e "s|require('\.\./|require('snapdragon/|g"
+sed -i `find test.modified -type f` -e "s|require('..')|require('snapdragon')|g"
+mocha test.modified
diff --git a/debian/watch b/debian/watch
index c8cef0d..0fd908e 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-snapdragon-$1.tar.gz/ \

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



More information about the Pkg-javascript-commits mailing list