[Pkg-javascript-commits] [node-moment] 03/03: Initial packaging

Julien Puydt julien.puydt at laposte.net
Thu Oct 8 08:25:22 UTC 2015


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

jpuydt-guest pushed a commit to branch master
in repository node-moment.

commit c871d0fd97bdc0fbf260fcb4808e6574757e79bf
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Oct 8 10:14:12 2015 +0200

    Initial packaging
---
 debian/changelog                |  5 +++++
 debian/compat                   |  1 +
 debian/control                  | 29 +++++++++++++++++++++++++++++
 debian/copyright                | 35 +++++++++++++++++++++++++++++++++++
 debian/gbp.conf                 |  2 ++
 debian/libjs-moment.install     |  2 ++
 debian/node-moment.links        |  1 +
 debian/rules                    | 10 ++++++++++
 debian/source.lintian-overrides |  5 +++++
 debian/watch                    |  6 ++++++
 10 files changed, 96 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..82a5b58
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-moment (2.10.6+dfsg-1) UNRELEASED; urgency=medium
+
+  * Initial packaging. (Closes: #759598)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Thu, 08 Oct 2015 09:37:31 +0200
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..09b2fea
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: node-moment
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Julien Puydt <julien.puydt at laposte.net>
+Build-Depends:
+ debhelper (>= 9), dh-buildinfo, nodejs, uglifyjs
+Standards-Version: 3.9.6
+Homepage: https://github.com/moment/moment
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-moment.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-moment.git
+
+Package: node-moment
+Architecture: all
+Depends: ${misc:Depends}, nodejs, libjs-moment (= ${binary:Version})
+Description: Work with dates in JavaScript (Node.js module)
+ A lightweight JavaScript date library to parse, validate,
+ manipulate and format dates.
+ .
+ Node.js is an event-based server-side JavaScript engine.
+ 
+Package: libjs-moment
+Architecture: all
+Depends: ${misc:Depends}
+Description: Work with dates in JavaScript (library)
+ A lightweight JavaScript date library to parse, validate,
+ manipulate and format dates.
+ .
+ This package contains the JavaScript library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f878b92
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Moment.js
+Upstream-Contact: https://github.com/moment/moment/issues
+Source: https://github.com/moment/moment
+Files-Excluded: *.min.js
+
+Files: *
+Copyright: 2011-2015 Tim Wood, Iskren Chernev and Moment.js contributors
+License: Expat
+
+Files: debian/*
+Copyright: 2015 Julien Puydt
+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/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..c8f9559
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
\ No newline at end of file
diff --git a/debian/libjs-moment.install b/debian/libjs-moment.install
new file mode 100644
index 0000000..100f508
--- /dev/null
+++ b/debian/libjs-moment.install
@@ -0,0 +1,2 @@
+moment.js usr/share/javascript/moment
+moment.min.js usr/share/javascript/moment
\ No newline at end of file
diff --git a/debian/node-moment.links b/debian/node-moment.links
new file mode 100644
index 0000000..605338b
--- /dev/null
+++ b/debian/node-moment.links
@@ -0,0 +1 @@
+usr/share/javascript/moment/moment.js usr/lib/nodejs/moment.js
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e7fb335
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	uglifyjs moment.js -o moment.min.js
diff --git a/debian/source.lintian-overrides b/debian/source.lintian-overrides
new file mode 100644
index 0000000..1a626aa
--- /dev/null
+++ b/debian/source.lintian-overrides
@@ -0,0 +1,5 @@
+# lintian finds the lines are long because it count chars, not letters!
+node-moment source: source-is-missing locale/*.js
+node-moment source: source-is-missing src/locale/*.js
+# no PHP here, move along...
+node-moment source: composer-package-without-pkg-php-tools-builddep
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..e0eb153
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=3
+opts=\
+repacksuffix=+dfsg,\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-moment-$1.tar.gz/ \
+https://github.com/moment/moment/tags .*/archive/?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list