Import Debian changes 0.5.1+dfsg-ok1

node-marked (0.5.1+dfsg-ok1) yangtze; urgency=medium

  * Build for openKylin.
This commit is contained in:
openKylinBot 2022-04-25 22:03:04 +08:00 committed by Lu zhiping
parent 423d64f7b4
commit 45cdb10090
17 changed files with 171 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
node-marked (0.5.1+dfsg-ok1) yangtze; urgency=medium
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.com> Mon, 25 Apr 2022 22:03:04 +0800

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

32
debian/control vendored Normal file
View File

@ -0,0 +1,32 @@
Source: node-marked
Section: javascript
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Uploaders: Julian Taylor <jtaylor.debian@googlemail.com>
Build-Depends: debhelper (>= 9~), node-uglify
Standards-Version: 4.2.1
Homepage: https://github.com/chjj/marked
Vcs-Git: https://salsa.debian.org/js-team/node-marked.git
Vcs-Browser: https://salsa.debian.org/js-team/node-marked
Package: node-marked
Architecture: all
Depends: nodejs (>= 0.6.19~dfsg1-0), ${misc:Depends}
Description: Full-featured markdown parser and compiler for NodeJS
Marked implements all markdown features while having a high processing
speed. It is also fully compatible with client-side javascript.
.
Additionally Marked also implements github flavored markdown.
.
This package contains the marked executable and node module.
Package: libjs-marked
Architecture: all
Depends: ${misc:Depends}
Description: Full-featured markdown parser and compiler
Marked implements all markdown features while having a high processing
speed. It is also fully compatible with client-side javascript.
.
Additionally Marked also implements github flavored markdown.
.
This package contains the javascript module.

38
debian/copyright vendored Normal file
View File

@ -0,0 +1,38 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: marked
Source: https://github.com/chjj/marked
Comment:
DFSG-repackaged via debian/new-upstream to exclude the following unlicensed files:
test/original/*
(originally obtained from
http://six.pairlist.net/pipermail/markdown-discuss/2004-December/000909.html)
and the minified version of the library marked.min.js
Files: *
Copyright: 2011-2018, Christopher Jeffrey (https://github.com/chjj/)
License: Expat
Files: debian/*
Copyright: 2012, Jérémy Lal <kapouer@melix.org>
2013,2014,2018 Julian Taylor <jtaylor.debian@googlemail.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 (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.

1
debian/docs vendored Normal file
View File

@ -0,0 +1 @@
README.md

2
debian/libjs-marked.install vendored Normal file
View File

@ -0,0 +1,2 @@
marked.js usr/share/javascript/marked/
marked.min.js usr/share/javascript/marked/

1
debian/manpages vendored Normal file
View File

@ -0,0 +1 @@
man/marked.1

25
debian/new-upstream vendored Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
set -e
version=$2
filename=`readlink -f $3`
targetdir=`dirname $filename`
dir=`mktemp -d`
curdir=`pwd`
origname="${targetdir}/node-marked_${version}+dfsg.orig.tar.gz"
echo "Repacking marked version $version from $filename"
cd "$dir"
tar xzf "$filename"
# unknown license files see README.source
rm -rf marked-$version/test/original
#remove minified file, we will minify in build
rm -f marked-$version/marked.min.js
tar czf "$origname" marked-$version
echo "Repacked tarball is $origname"
cd -
rm -rf "$dir"

3
debian/node-marked.install vendored Normal file
View File

@ -0,0 +1,3 @@
bin usr/lib/nodejs/marked
lib usr/lib/nodejs/marked
package.json usr/lib/nodejs/marked

1
debian/node-marked.links vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/nodejs/marked/bin/marked usr/bin/marked

17
debian/patches/2001_man_global.patch vendored Normal file
View File

@ -0,0 +1,17 @@
Description: simply spawn 'man marked' instead of trying to locate marked.1
Forwarded: not-needed
Author: Jérémy Lal <kapouer@melix.org>
Last-Update: 2012-03-15
Index: node-marked/bin/marked
===================================================================
--- node-marked.orig/bin/marked
+++ node-marked/bin/marked
@@ -23,7 +23,7 @@ function help() {
stdio: 'inherit'
};
- spawn('man', [path.resolve(__dirname, '/../man/marked.1')], options)
+ spawn('man', ['marked'], options)
.on('error', function() {
fs.readFile(path.resolve(__dirname, '/../man/marked.1.txt'), 'utf8', function(err, data) {
if (err) throw err;

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
2001_man_global.patch

13
debian/rules vendored Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@
override_dh_auto_test:
override_dh_auto_install:
override_dh_auto_clean:
rm -f marked.js marked.min.js

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

23
debian/tests/basic vendored Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
set -efu
cd $ADTTMP
cat << EOF | marked -o test.html
An h1 header
============
Paragraphs are separated by a blank line.
2nd paragraph. *Italic*, **bold**. Itemized lists
look like:
* this one
* that one
EOF
md=$(md5sum test.html | cut -d" " -f 1)
exp="e30f31a4fbb8c06ba6077034ecae3cde"
echo "expecting $exp, got $md"
test "$md" = "$exp"
echo "ok"

2
debian/tests/control vendored Normal file
View File

@ -0,0 +1,2 @@
Tests: basic
Depends: node-marked

5
debian/watch vendored Normal file
View File

@ -0,0 +1,5 @@
version=3
opts=filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-marked-$1.tar.gz/,\
dversionmangle=s/\+dfsg\d*+$// \
https://github.com/chjj/marked/tags .*/archive/v?([\d\.]+).tar.gz debian debian/new-upstream