[Pkg-javascript-commits] [select2.js] 02/02: initial packaging

Alexandre Viau aviau at moszumanska.debian.org
Thu Dec 31 14:29:01 UTC 2015


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

aviau pushed a commit to branch master
in repository select2.js.

commit 650188567e7c541e25d4c79d33ff39f94fd52dc4
Author: aviau <alexandre at alexandreviau.net>
Date:   Thu Dec 31 09:25:11 2015 -0500

    initial packaging
---
 debian/changelog     |  5 ++++
 debian/compat        |  1 +
 debian/control       | 19 ++++++++++++++
 debian/copyright     | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/gbp.conf      |  2 ++
 debian/install       |  2 ++
 debian/rules         | 12 +++++++++
 debian/source/format |  1 +
 debian/watch         |  3 +++
 9 files changed, 117 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3c79bb3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+select2.js (4.0.1~dfsg1-1) unstable; urgency=medium
+
+  * Initial release. (Closes: #809387)
+
+ -- Alexandre Viau <aviau at debian.org>  Tue, 29 Dec 2015 20:05:26 -0500
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..43863f0
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: select2.js
+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), uglifyjs
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/select2.js.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/select2.js.git
+Homepage: https://github.com/select2/select2
+
+Package: libjs-select2.js
+Architecture: all
+Depends: ${misc:Depends}, libjs-jquery
+Recommends: javascript-common
+Description: jQuery based replacement for select boxes
+ Select2 is a jQuery based replacement for select boxes. It supports
+ searching, tagging, remote data sets, infinite scrolling, and many
+ other highly used options.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8ea1093
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,72 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: select2.js
+Source: https://github.com/select2/select2
+Files-Excluded: dist/js/*.min.js
+                dist/js/i18n/*
+                dist/css/*.min.css
+
+
+Files: *
+Copyright: 2012-2015 Kevin Brown, Igor Vaynberg, and Select2 contributors
+License: Expat
+Comment: Upstream embeds concatenated JavaScript in the dist/ folder.
+ Debian currently does not have Grunt, so we are unable to generate
+ an equivalent of the dist/ folder. The code in dist/ is still readable,
+ commented, not minified and easy to modify, so we are installing it
+ directly.
+
+Files: dist/js/select2.js
+       dist/js/select2.full.js
+Copyright: 2012-2015 Kevin Brown, Igor Vaynberg, and Select2 contributors
+           2011-2014 The Dojo Foundation
+License: BSD-3-Clause or Expat, and Expat
+Comment: Both files embed a copy of almond.js, which is dual licensed
+ BSD-3-Clause and Expat. The rest of the file is all Expat.
+
+Files: debian/*
+Copyright: 2015 Alexandre Viau <aviau at debian.org>
+License: Expat
+Comment: Debian packaging is licensed under the same terms as upstream
+
+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.
+
+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:
+ .
+   * Redistributions of source code must retain the above copyright notice, this
+     list of conditions and the following disclaimer.
+   * 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.
+   * Neither the name of the Dojo Foundation 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 COPYRIGHT OWNER 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/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..2529d1e
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+dist/css/* usr/share/javascript/select2.js
+dist/js/* usr/share/javascript/select2.js
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..682dbf5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+%:
+	dh $@
+
+override_dh_auto_build:
+	uglifyjs -o dist/js/select2.full.min.js dist/js/select2.full.js
+	uglifyjs -o dist/js/select2.min.js dist/js/select2.js
+
+override_dh_auto_clean:
+	dh_clean
+	rm -f dist/js/select2.full.min.js
+	rm -f dist/js/select2.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/watch b/debian/watch
new file mode 100644
index 0000000..fd37bb8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/select2.js-$1\.tar\.gz/,repacksuffix=~dfsg1,dversionmangle=s/\~dfsg\d*$// \
+ https://github.com/select2/select2/releases .*/archive/v?(\d[\d\.]+)\.tar\.gz

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



More information about the Pkg-javascript-commits mailing list