[Pkg-javascript-commits] [node-has-cors] 03/04: add bug number and description from ITP; set GPL-3.0+ license for debian/*; enable build-time tests and autopkgtests

Paolo Greppi paolog-guest at moszumanska.debian.org
Thu Dec 15 14:16:30 UTC 2016


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

paolog-guest pushed a commit to branch master
in repository node-has-cors.

commit a90fee5367f609ab8e82ddd9598c0ea307b5b60f
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Thu Dec 15 14:12:47 2016 +0000

    add bug number and description from ITP; set GPL-3.0+ license for debian/*; enable build-time tests and autopkgtests
---
 debian/changelog     |  1 -
 debian/control       |  9 +++++++--
 debian/copyright     | 24 ++++++++++++++++++++----
 debian/rules         |  3 ++-
 debian/tests/control |  3 +++
 5 files changed, 32 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c16a74a..4e6cada 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,5 @@
 node-has-cors (1.1.0-1) UNRELEASED; urgency=low
 
   * Initial release (Closes: #nnnn)
-  * New upstream release
 
  -- Paolo Greppi <paolo.greppi at libpf.com>  Thu, 15 Dec 2016 10:15:39 +0000
diff --git a/debian/control b/debian/control
index 9c81ecc..09753c6 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,8 @@ Uploaders: Paolo Greppi <paolo.greppi at libpf.com>
 Build-Depends:
  debhelper (>= 9)
  , dh-buildinfo
+ , mocha
+ , chai
  , nodejs
 Standards-Version: 3.9.8
 Homepage: https://github.com/component/has-cors
@@ -17,7 +19,10 @@ Architecture: all
 Depends:
  ${misc:Depends}
  , nodejs
-Description: Detects support for Cross-Origin Resource Sharing
- FIX_ME long description
+Description: Detect support for Cross-Origin Resource Sharing
+ Node.js module to detect support for CORS (Cross-Origin Resource
+ Sharing), the mechanism that allows restricted resources on a web
+ page to be requested from another domain outside the domain from
+ which the resource originated.
  .
  Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
index 776270b..a7755de 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -7,10 +7,6 @@ Files: *
 Copyright: 2016 Nathan Rajlich <nathan at tootallnate.net> (http://n8.io/)
 License: Expat
 
-Files: debian/*
-Copyright: 2016 Paolo Greppi <paolo.greppi at libpf.com>
-License: Expat
-
 License: Expat
  Permission is hereby granted, free of charge, to any person
  obtaining a copy of this software and associated documentation files
@@ -32,3 +28,23 @@ License: Expat
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
 
+Files: debian/*
+Copyright: 2016 Paolo Greppi <paolo.greppi at libpf.com>
+License: GPL-3.0+
+
+License: GPL-3.0+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/rules b/debian/rules
index b77c631..2f920d4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,8 @@
 
 #override_dh_auto_build:
 
-#override_dh_auto_test:
+override_dh_auto_test:
+	mocha -R spec
 
 override_dh_installchangelogs:
 	dh_installchangelogs -k History.md
diff --git a/debian/tests/control b/debian/tests/control
index eb8b220..62a8630 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
 Tests: require
 Depends: node-has-cors
+
+Test-Command: mocha -R spec
+Depends: @, @builddeps@

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



More information about the Pkg-javascript-commits mailing list