[Pkg-javascript-commits] [node-decompress-zip] 02/02: Initial Debian packaging.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Sun Mar 1 15:42:12 UTC 2015


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

sebastic pushed a commit to branch master
in repository node-decompress-zip.

commit 810e0c173a8c26fcc7f515620adc30227b83cb7d
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sun Mar 1 16:22:21 2015 +0100

    Initial Debian packaging.
---
 debian/changelog                |  6 +++
 debian/compat                   |  1 +
 debian/control                  | 44 ++++++++++++++++++
 debian/copyright                | 34 ++++++++++++++
 debian/dirs                     |  1 +
 debian/docs                     |  1 +
 debian/gbp.conf                 | 16 +++++++
 debian/install                  |  3 ++
 debian/links                    |  1 +
 debian/man/decompress-zip.1.xml | 98 +++++++++++++++++++++++++++++++++++++++++
 debian/manpages                 |  1 +
 debian/patches/nodejs.patch     | 27 ++++++++++++
 debian/patches/series           |  1 +
 debian/rules                    | 21 +++++++++
 debian/source/format            |  1 +
 debian/tests/control            |  2 +
 debian/tests/require            |  3 ++
 debian/upstream/metadata        |  6 +++
 debian/watch                    |  6 +++
 19 files changed, 273 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..85834d8
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-decompress-zip (0.1.0-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #779498)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sat, 28 Feb 2015 15:47:27 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0159c72
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,44 @@
+Source: node-decompress-zip
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Bas Couwenberg <sebastic at debian.org>
+Section: web
+Priority: extra
+Build-Depends: debhelper (>= 9),
+               dh-buildinfo,
+               nodejs,
+               docbook2x,
+               docbook-xsl,
+               docbook-xml,
+               xsltproc
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/cgit/pkg-javascript/node-decompress-zip.git
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-decompress-zip.git
+Homepage: https://github.com/bower/decompress-zip
+XS-Testsuite: autopkgtest
+
+Package: node-decompress-zip
+Architecture: all
+Depends: ${misc:Depends},
+         nodejs,
+         node-q (>= 1.1.2),
+         node-readable-stream (>= 1.1.8),
+         node-mkpath (>= 0.1.0),
+         node-binary (>= 0.3.0),
+         node-nopt (>= 3.0.1),
+         node-graceful-fs (>= 3.0.0),
+         node-touch (>= 0.0.3)
+Description: Extract files from a ZIP archive in Node.js
+ decompress-zip allows extracting files from a ZIP archive in Node.js
+ .
+ The module provides .extract() to extracts the contents of the ZIP archive,
+ and .list() which acts much like extract except:
+ .
+  * the success event is list
+  * the data for the event is an array of paths
+  * no files are actually extracted
+  * there are no options
+ .
+ This package contains the decompress-zip module for Node.js
+ .
+ Node.js is an event-based server-side JavaScript engine.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..30f8a16
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: decompress-zip
+Upstream-Contact: Bower Team (https://github.com/bower/decompress-zip/issues)
+Source: https://github.com/bower/decompress-zip
+
+Files: *
+Copyright: Bower team
+License: Expat
+
+Files: debian/*
+Copyright: 2015, Bas Couwenberg <sebastic at debian.org>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ 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/dirs b/debian/dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..21d0417
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,16 @@
+[DEFAULT]
+
+# The default name for the upstream branch is "upstream".
+# Change it if the name is different (for instance, "master").
+upstream-branch = upstream
+
+# The default name for the Debian branch is "master".
+# Change it if the name is different (for instance, "debian/unstable").
+debian-branch = master
+
+# git-import-orig uses the following names for the upstream tags.
+# Change the value if you are not using git-import-orig
+upstream-tag = upstream/%(version)s
+
+# Always use pristine-tar.
+pristine-tar = True
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..c9d8db0
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+package.json usr/lib/nodejs/decompress-zip/
+bin          usr/lib/nodejs/decompress-zip/
+lib          usr/lib/nodejs/decompress-zip/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..47c9131
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/decompress-zip/bin/decompress-zip usr/bin/decompress-zip
diff --git a/debian/man/decompress-zip.1.xml b/debian/man/decompress-zip.1.xml
new file mode 100644
index 0000000..df12a17
--- /dev/null
+++ b/debian/man/decompress-zip.1.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+<refentry id='decompress-zip'>
+
+  <refmeta>
+    <refentrytitle>decompress-zip</refentrytitle>
+    <manvolnum>1</manvolnum>
+  </refmeta>
+
+  <refnamediv>
+    <refname>decompress-zip</refname>
+    <refpurpose>extract files from a ZIP archive with Node.js</refpurpose>
+  </refnamediv>
+
+  <refsynopsisdiv id='synopsis'>
+    <cmdsynopsis>
+      <command>decompress-zip</command>
+      <group>
+        <arg choice='opt'><option>-x</option>
+          <arg choice='opt'><option>-p</option> <replaceable>path</replaceable></arg>
+        </arg>
+        <arg choice='opt'><option>-l</option></arg>
+        <arg choice='opt'><option>-v</option></arg>
+        <arg choice='opt'><option>-h</option></arg>
+      </group>
+      <arg choice='plain'><replaceable>file</replaceable></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+
+  <refsect1 id='description'>
+    <title>DESCRIPTION</title>
+    <para>
+      <command>decompress-zip</command> is a simple commandline utility to
+      list or extract files from a zip archive using the decompress-zip module
+      for Node.js.
+    </para>
+  </refsect1>
+
+  <refsect1 id='options'>
+    <title>OPTIONS</title>
+
+    <variablelist>
+
+      <varlistentry>
+        <term><option>-x</option></term>
+        <term><option>--extract</option></term>
+        <listitem>
+          <para>
+            extract the given file
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><option>-p</option> <replaceable>path</replaceable></term>
+        <term><option>--path</option> <replaceable>path</replaceable></term>
+        <listitem>
+          <para>
+            extract the file into <replaceable>path</replaceable>
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><option>-l</option></term>
+        <term><option>--list</option></term>
+        <listitem>
+          <para>
+            list the contents of the given file
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><option>-v</option></term>
+        <term><option>--version</option></term>
+        <listitem>
+          <para>
+            display version and exit
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><option>-h</option></term>
+        <term><option>--help</option></term>
+        <listitem>
+          <para>
+            show usage information
+          </para>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
+  </refsect1>
+
+</refentry>
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..13cdaf4
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/man/*.1
diff --git a/debian/patches/nodejs.patch b/debian/patches/nodejs.patch
new file mode 100644
index 0000000..25c63e2
--- /dev/null
+++ b/debian/patches/nodejs.patch
@@ -0,0 +1,27 @@
+Description: Switch NodeJS command from node (upstream) to nodejs (Debian).
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/Gruntfile.js
++++ b/Gruntfile.js
+@@ -33,10 +33,10 @@ module.exports = function (grunt) {
+         },
+         exec: {
+             coverage: {
+-                command: 'node node_modules/istanbul/lib/cli.js cover --dir ./coverage node_modules/mocha/bin/_mocha -- -R dot test/*.js'
++                command: 'nodejs node_modules/istanbul/lib/cli.js cover --dir ./coverage node_modules/mocha/bin/_mocha -- -R dot test/*.js'
+             },
+             'test-files': {
+-                command: 'node download-test-assets.js'
++                command: 'nodejs download-test-assets.js'
+             }
+         },
+         watch: {
+--- a/bin/decompress-zip
++++ b/bin/decompress-zip
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ 'use strict';
+ var nopt = require('nopt');
+ var path = require('path');
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..81a5e8e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+nodejs.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4a37179
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+MANPAGES := $(wildcard debian/man/*.*.xml)
+
+%:
+	dh $@
+
+override_dh_clean:
+	dh_clean debian/man/*.1
+
+override_dh_auto_build:
+	# Create man page from DocBook XML
+	for x in $(MANPAGES) ; do \
+	    docbook2x-man $$x ; \
+	    mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
+	done
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..7ea8a7e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-decompress-zip
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..37de8e0
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('decompress-zip');"
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..798db80
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,6 @@
+---
+Bug-Database: https://github.com/bower/decompress-zip/issues
+Bug-Submit: https://github.com/bower/decompress-zip/issues/new
+Name: decompress-zip
+Repository: https://github.com/bower/decompress-zip.git
+Repository-Browse: https://github.com/bower/decompress-zip
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..68bc098
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-decompress-zip-$1.tar.gz/ \
+https://github.com/bower/decompress-zip/tags \
+.*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list