[Pkg-javascript-commits] [node-browser-unpack] 39/40: Debianization

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 12:27:26 UTC 2017


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

rouca pushed a commit to branch master
in repository node-browser-unpack.

commit bc42b827064233d2b95c4a1e8ca470472f5e84ec
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Wed Sep 27 12:57:24 2017 +0200

    Debianization
---
 debian/browser-unpack.1         | 31 +++++++++++++++++++++++++++++++
 debian/changelog                |  4 ++--
 debian/compat                   |  2 +-
 debian/control                  | 28 ++++++++++++++++++++--------
 debian/copyright                | 10 ++++++++--
 debian/manpages                 |  1 +
 debian/rules                    | 19 +++++++++++++------
 debian/source/lintian-overrides |  4 ++++
 debian/watch                    |  2 +-
 9 files changed, 81 insertions(+), 20 deletions(-)

diff --git a/debian/browser-unpack.1 b/debian/browser-unpack.1
new file mode 100644
index 0000000..39b2c3e
--- /dev/null
+++ b/debian/browser-unpack.1
@@ -0,0 +1,31 @@
+.Dd 8/4/17
+.Dt browser-unpack 1
+.Sh NAME
+.Nm browser-unpack
+.Nd parse a bundle generated by browser-pack
+.Sh SYNOPSIS
+.Nm
+.Op Ar file
+.Sh DESCRIPTION
+.Nm 
+parse a bundle generated by browser-pack
+.Nm
+will output a json file from a browserified js file
+.Nm
+will read by default STDIN.
+.Sh EXAMPLES
+.nf
+$ cat main.js
+var foo = require('./foo.js');
+var gamma = require('gamma');
+console.log(foo(gamma(2.3)));
+$ node main.js
+129.50502147699586
+$ browserify main.js > bundle.js
+$ browser-unpack < bundle.js | browser-pack | node
+129.50502147699586
+.fi
+.Sh SEE ALSO
+.Xr browserify 1 ,
+.Xr browser-pack 1,
+.Xr nodejs 1 ,
diff --git a/debian/changelog b/debian/changelog
index 336e4cc..8a703b0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
-node-browser-unpack (1.2.0-1) UNRELEASED; urgency=low
+node-browser-unpack (1.2.0-1) unstable; urgency=low
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #809493)
 
  -- Bastien Roucariès <rouca at debian.org>  Tue, 26 Sep 2017 15:04:08 +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 c39a071..fbf37aa 100644
--- a/debian/control
+++ b/debian/control
@@ -1,13 +1,20 @@
 Source: node-browser-unpack
-Section: web
+Section: javascript
 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
-Standards-Version: 3.9.8
+ , dpkg-dev (>= 1.17.14)
+ , nodejs (>= 6) <!nocheck>
+ , node-concat-stream (>= 1.5.0) <!nocheck>
+ , node-browser-pack (>= 5.0.1) <!nocheck>
+ , node-acorn (>= 4.0.3) <!nocheck>
+ , node-minimist (>= 1.1.1) <!nocheck>
+ , node-browser-pack (>= 2.0) <!nocheck>
+ , node-tape (>= 4.0) <!nocheck>
+Standards-Version: 4.1.0
 Homepage: https://github.com/substack/browser-unpack
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-browser-unpack.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-browser-unpack.git
@@ -16,12 +23,17 @@ Package: node-browser-unpack
 Architecture: all
 Depends:
  ${misc:Depends}
- , nodejs
+ , nodejs (>= 6)
  , node-concat-stream (>= 1.5.0)
  , node-browser-pack (>= 5.0.1)
- , acorn (>= 4.0.3)
+ , node-acorn (>= 4.0.3)
  , node-minimist (>= 1.1.1)
-Description: parse a bundle generated by browser-pack
- FIX_ME long description
+Description: parse a bundle generated by node-browser-pack
+ This package parses a bundle generated by browser-pack.
+ Browser-pack packs Nodej.js source files from a json stream
+ into a browser bundle.
+ .
+ This is dependency of browserify, a Node.js tool that allows
+ one to run Node.js code in browser context.
  .
  Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
index 0fa49bb..1e88be4 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,10 +1,16 @@
-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: browser-unpack
 Upstream-Contact: https://github.com/substack/browser-unpack/issues
 Source: https://github.com/substack/browser-unpack
 
 Files: *
-Copyright: 2017 James Halliday <mail at substack.net> (http://substack.net)
+Copyright: 2013-2017 James Halliday <mail at substack.net> (http://substack.net)
+ 2013-2017, Hugh Kennedy <hughskennedy at gmail.com>
+ 2013-2017, Ian Henry <ian at trello.com>
+ 2013-2017, James Halliday <mail at substack.net>
+ 2013-2017, Jason Johnston <johnston at nationbuilder.com>
+ 2013-2017, Dave Des <dave.des at gmail.com>
+ 2013-2017, Tim Timmis <tim at timwis.com>
 License: Expat
 
 Files: debian/*
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..702bb8d
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/browser-unpack.1
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index de57af0..4e51c16 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,14 +2,21 @@
 # -*- makefile -*-
 
 # Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
 
 %:
 	dh $@
 
-#override_dh_auto_build:
-
-#override_dh_auto_test:
-
-
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+override_dh_auto_test:
+	tap -R spec test/*.js
+else
+override_dh_auto_test:
+	@echo '**********************************************************'
+	@echo 'Skip test                  '
+	@echo '**********************************************************'
+endif
 
+override_dh_fixperms:
+	dh_fixperms
+	chmod a+x debian/node-browser-unpack/usr/lib/nodejs/browser-unpack/bin/cmd.js
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..8f6231c
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,4 @@
+# test file are generated with older browser-pack and needed for regression testing, they are manually modified and thus are considered source
+source-contains-prebuilt-javascript-object test/.*
+source-is-missing test/.* 
+insane-line-length-in-source-file test/.*
diff --git a/debian/watch b/debian/watch
index 08bcf6f..7844eb7 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-browser-unpack-$1.tar.gz/ \

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



More information about the Pkg-javascript-commits mailing list