diff options
-rw-r--r-- | debian/changelog | 68 | ||||
-rw-r--r-- | debian/clean | 1 | ||||
-rw-r--r-- | debian/control | 33 | ||||
-rw-r--r-- | debian/copyright | 37 | ||||
-rw-r--r-- | debian/docs | 1 | ||||
-rw-r--r-- | debian/patches/remove-unsupported-syntax.patch | 32 | ||||
-rw-r--r-- | debian/patches/reproducible_build.diff | 15 | ||||
-rw-r--r-- | debian/patches/series | 2 | ||||
-rwxr-xr-x | debian/rules | 12 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/source/lintian-overrides | 7 | ||||
-rw-r--r-- | debian/tests/pkg-js/test | 2 | ||||
-rw-r--r-- | debian/upstream/metadata | 7 | ||||
-rw-r--r-- | debian/watch | 5 |
14 files changed, 223 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c7062e4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,68 @@ +node-d3-geo (1.11.6-1) unstable; urgency=medium + + [ Abhijith Sheheer ] + * Team upload + * New upstream version 1.11.6 + * Added upstream/metadata + * Fixed Format URL in debian/copyright + * Bump Standards-Verison to 4.4.1 + * Bump debhelper compatibility level to 12 + * Update minimum version of pkg-js-tools + * Added Rules-Require-Root in debian/control + * Updated lintain-overrides + + [ Utkarsh Gupta ] + * Fix package wrt cme + * Run wrap-and-sort + + -- Abhijith Sheheer <abhijithsheheer@gmail.com> Fri, 11 Oct 2019 17:48:53 +0000 + +node-d3-geo (1.11.3-3) unstable; urgency=medium + + * Reupload to unstable + * Make build reproducible + * Bump Standards-Version to 4.4.0 (no changes needed) + + -- Pirate Praveen <praveen@debian.org> Wed, 10 Jul 2019 16:40:48 +0530 + +node-d3-geo (1.11.3-2) experimental; urgency=medium + + * Switch to pkg-js-tools + * Install ES module (src directory) + + -- Pirate Praveen <praveen@debian.org> Wed, 19 Jun 2019 15:27:34 +0530 + +node-d3-geo (1.11.3-1) experimental; urgency=medium + + * New upstream version 1.11.3 + * Bump Standards-Version to 4.3.0 (no changes needed) + * Use salsa.debian.org in Vcs-* fields + * Bump debhelper compatibility level to 11 + * Switch to rollup from webpack (rollup is in main now) + + -- Pirate Praveen <praveen@debian.org> Mon, 17 Jun 2019 21:09:06 +0530 + +node-d3-geo (1.9.0-4) unstable; urgency=medium + + * Use webpack to build umd module like upstream (webpack segfault is fixed + with nodejs 8.9) + + -- Pirate Praveen <praveen@debian.org> Sat, 06 Jan 2018 19:32:17 +0530 + +node-d3-geo (1.9.0-3) unstable; urgency=medium + + * Skip webpack (it segfaults), and use only babel + + -- Pirate Praveen <praveen@debian.org> Fri, 13 Oct 2017 23:03:11 +0530 + +node-d3-geo (1.9.0-2) unstable; urgency=medium + + * Don't install src + + -- Pirate Praveen <praveen@debian.org> Fri, 13 Oct 2017 18:12:02 +0530 + +node-d3-geo (1.9.0-1) unstable; urgency=low + + * Initial release (Closes: #878050) + + -- Pirate Praveen <praveen@debian.org> Mon, 09 Oct 2017 14:05:02 +0530 diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..a261f29 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +dist/* diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7fee1af --- /dev/null +++ b/debian/control @@ -0,0 +1,33 @@ +Source: node-d3-geo +Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> +Uploaders: Pirate Praveen <praveen@debian.org>, +Section: javascript +Testsuite: autopkgtest-pkg-nodejs +Priority: optional +Build-Depends: debhelper-compat (= 12), + node-d3-array, + nodejs, + pkg-js-tools (>=0.9.16~), + rollup, + uglifyjs.terser, +Standards-Version: 4.4.1 +Vcs-Browser: https://salsa.debian.org/js-team/node-d3-geo +Vcs-Git: https://salsa.debian.org/js-team/node-d3-geo.git +Homepage: https://d3js.org/d3-geo/ +Rules-Requires-Root: no + +Package: node-d3-geo +Architecture: all +Depends: node-d3-array, + nodejs, + ${misc:Depends}, +Description: Shapes and calculators for spherical coordinates + The edges of a spherical polygon are geodesics (segments of great circles), + not straight lines. Projected to the plane, geodesics are curves in all map + projections except gnomonic, and thus accurate projection requires + interpolation along each arc. + . + D3 uses adaptive sampling inspired by a popular line simplification method to + balance accuracy and performance. + . + Node.js is an event-based server-side JavaScript engine. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..fbbefd2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,37 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: d3-geo +Upstream-Contact: https://github.com/d3/d3-geo/issues +Source: https://d3js.org/d3-geo/ + +Files: * +Copyright: 2010-2016 Mike Bostock (https://bost.ocks.org/mike) +License: BSD-3-Clause + +Files: debian/* +Copyright: 2017 Pirate Praveen <praveen@debian.org> +License: BSD-3-Clause + +License: BSD-3-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. 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. + 3. Neither the name of the University 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 THE HOLDERS OR + CONTRIBUTORS 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. 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/patches/remove-unsupported-syntax.patch b/debian/patches/remove-unsupported-syntax.patch new file mode 100644 index 0000000..8e792ae --- /dev/null +++ b/debian/patches/remove-unsupported-syntax.patch @@ -0,0 +1,32 @@ +Description: This syntax is not supported in packaged rollup/node yet. + Minified file is generated by uglifyjs.terser command line. + +--- a/rollup.config.js ++++ b/rollup.config.js +@@ -1,4 +1,3 @@ +-import {terser} from "rollup-plugin-terser"; + import * as meta from "./package.json"; + + const config = { +@@ -17,20 +16,5 @@ + }; + + export default [ +- config, +- { +- ...config, +- output: { +- ...config.output, +- file: `dist/${meta.name}.min.js` +- }, +- plugins: [ +- ...config.plugins, +- terser({ +- output: { +- preamble: config.output.banner +- } +- }) +- ] +- } ++ config + ]; diff --git a/debian/patches/reproducible_build.diff b/debian/patches/reproducible_build.diff new file mode 100644 index 0000000..289e06d --- /dev/null +++ b/debian/patches/reproducible_build.diff @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <lamby@debian.org> +Last-Update: 2019-06-20 + +--- a/rollup.config.js ++++ b/rollup.config.js +@@ -9,7 +9,7 @@ + format: "umd", + indent: false, + extend: true, +- banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`, ++ banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime())).getFullYear()} ${meta.author.name}`, + globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).filter(key => /^d3-/.test(key)).map(key => ({[key]: "d3"}))) + }, + plugins: [] diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..ba4f208 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +remove-unsupported-syntax.patch +reproducible_build.diff diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..17555c2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ --with nodejs + +override_dh_auto_build: + rollup -c + uglifyjs.terser dist/d3-geo.js -o dist/d3-geo.min.js 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..8f8d1c1 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,7 @@ +# false positives +node-d3-geo source: source-is-missing test/circle-test.js line length is 600 characters (>512) +node-d3-geo source: source-is-missing test/graticule-test.js line length is 609 characters (>512) +node-d3-geo source: insane-line-length-in-source-file test/circle-test.js line length is 602 characters (>512) +node-d3-geo source: source-contains-prebuilt-javascript-object test/circle-test.js line length is 600 characters (>512) +node-d3-geo source: insane-line-length-in-source-file test/graticule-test.js line length is 613 characters (>512) +node-d3-geo source: source-contains-prebuilt-javascript-object test/graticule-test.js line length is 609 characters (>512) diff --git a/debian/tests/pkg-js/test b/debian/tests/pkg-js/test new file mode 100644 index 0000000..62b74fa --- /dev/null +++ b/debian/tests/pkg-js/test @@ -0,0 +1,2 @@ +# tape 'test/**/*.js' +echo "Tests are disabled because topojson-client is not packaged" diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..db9779a --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,7 @@ +--- +Archive: GitHub +Bug-Database: https://github.com/d3/d3-geo/issues +Contact: https://github.com/d3/d3-geo/issues +Name: d3-geo +Repository: https://github.com/d3/d3-geo.git +Repository-Browse: https://github.com/d3/d3-geo diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..2bcc21c --- /dev/null +++ b/debian/watch @@ -0,0 +1,5 @@ +version=3 +opts=\ +dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\ +filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-d3-geo-$1.tar.gz/ \ + https://github.com/d3/d3-geo/tags .*/archive/v?([\d\.]+).tar.gz |