[Pkg-javascript-commits] [libjs-mousetrap] 02/08: initial packacing

Alexandre Viau aviau at moszumanska.debian.org
Fri Dec 25 01:00:07 UTC 2015


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

aviau pushed a commit to branch master
in repository libjs-mousetrap.

commit 4b0c861ce2d72770c2b368440383374188629a75
Author: aviau <alexandre at alexandreviau.net>
Date:   Thu Dec 24 19:44:51 2015 -0500

    initial packacing
---
 debian/changelog |  5 +++++
 debian/control   | 19 +++++++++++++++++++
 debian/copyright | 31 +++++++++++++++++++++++++++++++
 debian/gbp.conf  |  2 ++
 debian/install   |  2 ++
 debian/rules     | 10 ++++++++++
 debian/watch     |  3 +++
 7 files changed, 72 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..54a9944
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libjs-mousetrap (1.5.3-1) unstable; urgency=medium
+
+  * Initial release. (Closes: #XXXXXX)
+
+ -- Alexandre Viau <aviau at debian.org>  Thu, 24 Dec 2015 19:33:23 -0500
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a878bbb
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: libjs-mousetrap
+Section: web
+Priority: extra
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Alexandre Viau <aviau at debian.org>
+Build-Depends: debhelper (>= 9), yui-compressor
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/libjs-mousetrap.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/libjs-mousetrap.git
+Homepage: https://github.com/ccampbell/mousetrap
+
+Package: libjs-cocktail
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: javascript-common
+Description: library for handling keyboard shortcuts in Javascript
+ Mousetrap is a simple library for handling keyboard shortcuts in
+ Javascript. It has support for keypress, keydown, and keyup events
+ on specific keys, keyboard combinations, or key sequences.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fa8e5b7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mousetrap
+Source: https://github.com/ccampbell/mousetrap
+Files-Excluded: tests/*
+                mousetrap.min.js
+
+
+Files: *
+Copyright: 2015 Craig Campbell <iamcraigcampbell at gmail.com>
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2015 Alexandre Viau <aviau at debian.org>
+License: Expat
+Comment: Debian packaging is licensed under the same terms as upstream
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this software except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+   http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the full text of the Apache License, Version 2.0 can be
+ found in the file `/usr/share/common-licenses/Apache-2.0'.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..dcf772c
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+mousetrap.min.js /usr/share/javascript/mousetrap
+mousetrap.js /usr/share/javascript/mousetrap
diff --git a/debian/rules b/debian/rules
new file mode 100644
index 0000000..e17557d
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+%:
+    dh $@
+
+override_dh_auto_build:
+    yui-compressor -o mousetrap.min.js mousetrap.js
+
+override_dh_auto_clean:
+    dh_clean
+    rm -f mousetrap.min.js
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..5ff4e0a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/libjs-mousetrap-$1\.tar\.gz/ \
+  https://github.com/ccampbell/mousetrap/tags .*/?(\d\.\d.\d)\.tar\.gz

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



More information about the Pkg-javascript-commits mailing list