From 41a436d523bd80532d472f75b8ea7cd81fa5327a Mon Sep 17 00:00:00 2001 From: openKylinBot Date: Mon, 25 Apr 2022 22:03:04 +0800 Subject: [PATCH] Import Debian changes 6.0.0-ok1 node-serialize-javascript (6.0.0-ok1) yangtze; urgency=medium * Build for openKylin. --- debian/changelog | 5 +++ debian/control | 29 +++++++++++++ debian/copyright | 69 +++++++++++++++++++++++++++++++ debian/copyright-check | 3 ++ debian/copyright_hints | 42 +++++++++++++++++++ debian/gbp.conf | 8 ++++ debian/install | 1 + debian/patches/2001_privacy.patch | 19 +++++++++ debian/patches/series | 1 + debian/rules | 34 +++++++++++++++ debian/source/format | 1 + debian/source/lintian-overrides | 3 ++ debian/tests/control | 7 ++++ debian/upstream/metadata | 5 +++ debian/watch | 9 ++++ 15 files changed, 236 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/copyright-check create mode 100644 debian/copyright_hints create mode 100644 debian/gbp.conf create mode 100644 debian/install create mode 100644 debian/patches/2001_privacy.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/lintian-overrides create mode 100644 debian/tests/control create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..483750d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +node-serialize-javascript (6.0.0-ok1) yangtze; urgency=medium + + * Build for openKylin. + + -- openKylinBot Mon, 25 Apr 2022 22:03:04 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f3804be --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: node-serialize-javascript +Section: javascript +Priority: optional +Maintainer: Debian Javascript Maintainers +Uploaders: + Jonas Smedegaard , +Build-Depends: + debhelper-compat (= 13), + mocha , + node-chai, + node-randombytes , + pandoc , +Standards-Version: 4.6.0 +Rules-Requires-Root: no +Homepage: https://github.com/yahoo/serialize-javascript +Vcs-Git: https://salsa.debian.org/js-team/node-serialize-javascript.git +Vcs-Browser: https://salsa.debian.org/js-team/node-serialize-javascript + +Package: node-serialize-javascript +Architecture: all +Depends: + node-randombytes, + ${misc:Depends}, +Description: serialize JavaScript to a superset of JSON + serialize-javascript is a Nodejs module + to serialize JavaScript to a _superset_ of JSON + that includes regular expressions, dates and functions. + . + Nodejs an event-based server-side JavaScript engine. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6161e70 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,69 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: serialize-javascript +Upstream-Contact: https://github.com/yahoo/serialize-javascript/issues/ +Source: https://github.com/yahoo/serialize-javascript + +Files: * +Copyright: + 2014 Yahoo! Inc. +License-Grant: + Copyrights licensed under the New BSD License. + See the accompanying file for terms. +License: BSD-3-clause~Yahoo +Reference: package.json +Reference: LICENSE + +Files: + debian/* +Copyright: + 2020-2021 Jonas Smedegaard +License-Grant: + This packaging 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, or (at your option) any later version. +License: GPL-3+ +Reference: debian/copyright + +License: BSD-3-clause~Yahoo + Redistribution and use in source and binary forms, + with or without modification, + are permitted + provided that the following conditions are met: + * Redistributions of source code must retain + the above copyright notice, this list of conditions + and the following disclaimer. + * Redistributions in binary form must reproduce + the above copyright notice, this list of conditions + and the following disclaimer + in the documentation and/or other materials + provided with the distribution. + * Neither the name of the Yahoo! Inc. + nor the names of its contributors + may be used to endorse or promote products + derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED + BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. + IN NO EVENT SHALL YAHOO! INC. BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; + OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: GPL-3+ +Reference: /usr/share/common-licenses/GPL-3 diff --git a/debian/copyright-check b/debian/copyright-check new file mode 100755 index 0000000..b7ac352 --- /dev/null +++ b/debian/copyright-check @@ -0,0 +1,3 @@ +#!/bin/sh + +licensecheck --check '.*' --recursive --copyright --deb-machine --ignore '^(debian/(changelog|copyright(_hints)?))$' --lines 0 -- * > debian/copyright_hints diff --git a/debian/copyright_hints b/debian/copyright_hints new file mode 100644 index 0000000..4dc4884 --- /dev/null +++ b/debian/copyright_hints @@ -0,0 +1,42 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: FIXME +Upstream-Contact: FIXME +Source: FIXME +Disclaimer: Autogenerated by licensecheck + +Files: README.md + debian/control + debian/copyright-check + debian/gbp.conf + debian/install + debian/patches/2001_privacy.patch + debian/patches/series + debian/rules + debian/source/format + debian/tests/control + debian/upstream/metadata + debian/watch + package-lock.json + test/benchmark/serialize.js + test/unit/serialize.js +Copyright: NONE +License: UNKNOWN + FIXME + +Files: LICENSE + index.js +Copyright: 2014, Yahoo! Inc. +License: BSD-3-clause + FIXME + +Files: package.json +Copyright: NONE +License: BSD-3-clause + FIXME + +Files: debian/source/lintian-overrides +Copyright: GPL-3+ + gpl-3+ +License: UNKNOWN + FIXME + diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..64798a5 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,8 @@ +# Configuration file for git-buildpackage and friends + +[DEFAULT] +pristine-tar = True +sign-tags = True +filter = */.git* +debian-branch = debian/latest +upstream-branch = upstream/latest diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..3b49716 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +package.json index.js usr/share/nodejs/serialize-javascript diff --git a/debian/patches/2001_privacy.patch b/debian/patches/2001_privacy.patch new file mode 100644 index 0000000..05e5b2a --- /dev/null +++ b/debian/patches/2001_privacy.patch @@ -0,0 +1,19 @@ +Description: Avoid privacy breach in documentation +Forwarded: no +Author: Jonas Smedegaard +Last-Update: 2020-12-03 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/README.md ++++ b/README.md +@@ -3,10 +3,6 @@ + + Serialize JavaScript to a _superset_ of JSON that includes regular expressions, dates and functions. + +-[![npm Version][npm-badge]][npm] +-[![Dependency Status][david-badge]][david] +-![Test](https://github.com/yahoo/serialize-javascript/workflows/Test/badge.svg) +- + ## Overview + + The code in this package began its life as an internal module to [express-state][]. To expand its usefulness, it now lives as `serialize-javascript` — an independent package on npm. diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..dc84184 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +2001_privacy.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..edbaafb --- /dev/null +++ b/debian/rules @@ -0,0 +1,34 @@ +#!/usr/bin/make -f + +# generate documentation unless nodoc requested +ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) +DOCS = README.html README.txt +endif + +# normalize output with TAP where possible unless terse requested +MOCHA = mocha --no-timeout +ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS))) +MOCHA += --reporter tap +else +MOCHA += --reporter dot --no-colors +endif + +%: + dh $@ + +%.html: %.md + pandoc --from gfm-raw_html --to html --standalone --output $@ $< + +%.txt: %.md + pandoc --from gfm-raw_html --to plain --output $@ $< + +override_dh_clean: + dh_clean -- $(DOCS) $(CHANGELOGS) + +override_dh_auto_build: $(DOCS) + +override_dh_auto_test: + $(MOCHA) test/unit + +override_dh_installdocs: + dh_installdocs --all -- $(DOCS) 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/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..068cb86 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,3 @@ +# License is in Reference field (see bug#786450) +missing-license-paragraph-in-dep5-copyright debian/copyright gpl-3\+ * +missing-license-text-in-dep5-copyright debian/copyright GPL-3\+ * diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..fb24320 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,7 @@ +Test-Command: + sed -i -e 's,\.\./\.\./,serialize-javascript,' test/unit/serialize.js + && mocha --reporter=tap test/unit +Depends: + node-serialize-javascript, + mocha, + node-chai, diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..bd0a740 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/yahoo/serialize-javascript/issues +Bug-Submit: https://github.com/yahoo/serialize-javascript/issues/new +Repository: https://github.com/yahoo/serialize-javascript.git +Repository-Browse: https://github.com/yahoo/serialize-javascript diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..a312273 --- /dev/null +++ b/debian/watch @@ -0,0 +1,9 @@ +version=4 +# check: uscan --report +# update: gbp import-orig --upstream-vcs-tag=vX.Y.Z --uscan + +opts=\ +filenamemangle=s/.*?(@ANY_VERSION@@ARCHIVE_EXT@)/@PACKAGE@-$1/,\ +dversionmangle=auto \ +https://github.com/yahoo/serialize-javascript/tags \ +.*?@ANY_VERSION@@ARCHIVE_EXT@ group