[Pkg-javascript-commits] [knowl.js] 02/02: First draft of Debian package.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Feb 5 23:25:31 UTC 2016


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

dtorrance-guest pushed a commit to branch master
in repository knowl.js.

commit 53644e7101194ec10c70594d5ed847e616195d2c
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Fri Feb 5 17:17:48 2016 -0500

    First draft of Debian package.
---
 debian/changelog     |  6 ++++++
 debian/clean         |  1 +
 debian/compat        |  1 +
 debian/control       | 21 +++++++++++++++++++++
 debian/copyright     | 32 ++++++++++++++++++++++++++++++++
 debian/install       |  3 +++
 debian/rules         | 24 ++++++++++++++++++++++++
 debian/source/format |  1 +
 debian/watch         |  2 ++
 9 files changed, 91 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e666de6
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+knowl.js (0~20160130-1) unstable; urgency=low
+
+  * Initial release (Closes: #813852).
+
+ -- Doug Torrance <dtorrance at piedmont.edu>  Fri, 05 Feb 2016 17:19:08 -0500
+
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..8627481
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+knowl.min.js
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..6feef6c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: knowl.js
+Section: web
+Priority: extra
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Doug Torrance <dtorrance at piedmont.edu>
+Build-Depends: debhelper (>= 9), uglifyjs
+Standards-Version: 3.9.7
+Homepage: http://aimath.org/knowlepedia/
+Vcs-Browser: https://anonscm.debian.org/git/pkg-javascript/knowl.js.git
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/knowl.js.git
+
+Package: libjs-knowl
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: javascript-common
+Description: JavaScript library for transclusion of supplementary information
+ Like the familiar hyperlink, knowls can be used to provide relevant,
+ supplementary information and are referenced from within the body of a web
+ page. But unlike the hyperlink, which simply takes you to a new web page, the
+ knowl conveniently serves up the information at your original location with the
+ click of a mouse button. With a similar click, the knowl then disappears.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fbc7c0b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: knowl.js
+Source: http://aimath.org/knowlepedia/
+
+Files: *
+Copyright: 2011 Harald Schilly
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2016 Doug Torrance <dtorrance at piedmont.edu>
+License: GPL-3+
+
+License: GPL-3+
+ 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 program 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 package; if not, see
+ <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..e0ba447
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+knowl.js usr/share/javascript/knowl
+knowl.min.js usr/share/javascript/knowl
+knowlstyle.css usr/share/javascript/knowl
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3dc9ca7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+%:
+	dh $@
+
+override_dh_auto_build:
+	uglifyjs -o knowl.min.js knowl.js
+
+# Upstream doesn't ship a tarball, so we create our own.  The version number
+# comes from the most recent timestamp of the two files.
+get-orig-source:
+	wget -P tmp http://aimath.org/knowl.js
+	wget -P tmp http://aimath.org/knowlstyle.css
+	date -d @`stat -c %Y tmp/knowl.js` +%Y%m%d  > jsdate
+	date -d @`stat -c %Y tmp/knowlstyle.css	` +%Y%m%d > cssdate
+	if test `cat cssdate` -ge `cat jsdate`; then \
+		cat cssdate > date; \
+	else \
+		cat jsdate > date; \
+	fi
+	cd tmp && \
+	tar -cf knowl.js_0~`cat ../date`.orig.tar knowl.js knowlstyle.css
+	gzip -n tmp/knowl.js_0~`cat date`.orig.tar
+	mv tmp/knowl.js_0~`cat date`.orig.tar.gz ..
+	rm -rf tmp *date
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/watch b/debian/watch
new file mode 100644
index 0000000..7820204
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+# Upstream does not ship a tarball or use version numbers.  We create a tarball
+# using the get-orig-source target of debian/rules.

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



More information about the Pkg-javascript-commits mailing list