[Pkg-javascript-commits] [node-lightgallery] 02/04: Import Debian changes 1.6.6-1
Daniel Ring
techwolf-guest at moszumanska.debian.org
Mon Jan 1 09:59:39 UTC 2018
This is an automated email from the git hooks/post-receive script.
techwolf-guest pushed a commit to branch master
in repository node-lightgallery.
commit cf7390584752618923a943b5e93c7eda376165b0
Author: Daniel Ring <dring at wolfishly.me>
Date: Sun Dec 31 20:58:50 2017 -0800
Import Debian changes 1.6.6-1
node-lightgallery (1.6.6-1) unstable; urgency=low
* Initial release (Closes: #885978)
---
debian/changelog | 5 +++
debian/compat | 1 +
debian/control | 35 ++++++++++++++++++++
debian/copyright | 28 ++++++++++++++++
debian/docs | 1 +
debian/install | 2 ++
debian/lintian-overrides | 6 ++++
debian/patches/gruntfile.patch | 64 +++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 17 ++++++++++
debian/source/format | 1 +
debian/source/lintian-overrides | 2 ++
debian/umd-jquery-template-end.js | 1 +
debian/umd-jquery-template-start.js | 15 +++++++++
debian/watch | 5 +++
15 files changed, 184 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..bd449a3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-lightgallery (1.6.6-1) unstable; urgency=low
+
+ * Initial release (Closes: #885978)
+
+ -- Daniel Ring <dring at wolfishly.me> Sun, 31 Dec 2017 20:58:50 -0800
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..60a943f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,35 @@
+Source: node-lightgallery
+Section: javascript
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Daniel Ring <dring at wolfishly.me>
+Build-Depends:
+ debhelper (>= 9)
+ , dh-buildinfo
+ , nodejs
+ , grunt
+ , node-grunt-cli
+ , node-grunt-contrib-clean
+ , node-grunt-contrib-concat
+ , node-grunt-contrib-copy
+ , node-grunt-contrib-uglify
+ , cssmin
+ , ruby-sass
+Standards-Version: 4.1.3
+Homepage: http://sachinchoolur.github.io/lightGallery/
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-lightgallery.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-lightgallery.git
+
+Package: node-lightgallery
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs
+Recommends:
+ libjs-jquery
+Description: Modular lightbox gallery plugin for jQuery
+ Lightgallery is a customizable, modular, and responsive lightbox gallery
+ plugin for jQuery. Its main features include mobile device support,
+ keyboard navigation, animated thumbnails, and HTML5 video display.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..97361b8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lightgallery
+Upstream-Contact: https://github.com/sachinchoolur/lightGallery/issues
+Source: http://sachinchoolur.github.io/lightGallery/
+
+Files: *
+Copyright: 2017 Sachin N <sachi77n at gmail.com>
+License: GPL-3
+
+Files: debian/*
+Copyright: 2017 Daniel Ring <dring at wolfishly.me>
+License: GPL-3
+
+License: GPL-3
+ This program is free software; you can redistribute it
+ and/or modify it under the terms of version 3 of the GNU
+ General Public License as published by the Free Software
+ Foundation.
+ .
+ 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.
+ .
+ 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/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..5709d41
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+dist usr/lib/nodejs/lightgallery/
+package.json usr/lib/nodejs/lightgallery/
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644
index 0000000..f055f7d
--- /dev/null
+++ b/debian/lintian-overrides
@@ -0,0 +1,6 @@
+#Video player embeds are dynamically loaded when necessary
+node-lightgallery: privacy-breach-generic usr/lib/nodejs/lightgallery/dist/js/lightgallery-all.js *
+node-lightgallery: privacy-breach-generic usr/lib/nodejs/lightgallery/dist/js/lightgallery-all.min.js *
+node-lightgallery: privacy-breach-generic usr/lib/nodejs/lightgallery/dist/js/lg-video.js *
+node-lightgallery: privacy-breach-generic usr/lib/nodejs/lightgallery/dist/js/lg-video.min.js *
+
diff --git a/debian/patches/gruntfile.patch b/debian/patches/gruntfile.patch
new file mode 100644
index 0000000..fd6e794
--- /dev/null
+++ b/debian/patches/gruntfile.patch
@@ -0,0 +1,64 @@
+Disable grunt tasks using wrappers not packaged for Debian
+--- a/Gruntfile.js
++++ b/Gruntfile.js
+@@ -1,13 +1,17 @@
+ 'use strict';
+ module.exports = function(grunt) {
+ // Load all grunt tasks
+- require('load-grunt-tasks')(grunt);
++ //require('load-grunt-tasks')(grunt);
++ grunt.loadNpmTasks('grunt-contrib-clean');
++ grunt.loadNpmTasks('grunt-contrib-concat');
++ grunt.loadNpmTasks('grunt-contrib-copy');
++ grunt.loadNpmTasks('grunt-contrib-uglify');
+
+ // Show elapsed time at the end
+- require('time-grunt')(grunt);
++ //require('time-grunt')(grunt);
+
+- grunt.loadNpmTasks('grunt-umd');
+- grunt.loadNpmTasks('grunt-banner');
++ //grunt.loadNpmTasks('grunt-umd');
++ //grunt.loadNpmTasks('grunt-banner');
+
+ // Project configuration.
+ grunt.initConfig({
+@@ -34,7 +38,7 @@
+ 'dist/css/<%= pkg.name %>.css': ['src/css/<%= pkg.name %>.css'],
+ 'dist/css/lg-fb-comment-box.css': ['src/css/lg-fb-comment-box.css'],
+ 'dist/css/lg-transitions.css': ['src/css/lg-transitions.css'],
+- 'dist/js/<%= pkg.name %>.js': ['dist/js/<%= pkg.name %>.js'],
++ 'dist/js/<%= pkg.name %>.js': ['debian/umd-jquery-template-start.js', 'src/js/<%= pkg.name %>.js', 'debian/umd-jquery-template-end.js'],
+ 'dist/js/<%= pkg.name %>-all.js': ['dist/js/<%= pkg.name %>.js', 'modules/lg-autoplay.js', 'modules/lg-fullscreen.js', 'modules/lg-pager.js', 'modules/lg-thumbnail.js', 'modules/lg-video.js', 'modules/lg-zoom.js', 'modules/lg-hash.js', 'modules/lg-share.js']
+ }
+ }
+@@ -51,6 +55,11 @@
+ }, {
+ src: ['dist/js/<%= pkg.name %>.js', 'modules/lg-autoplay.js', 'modules/lg-fullscreen.js', 'modules/lg-pager.js', 'modules/lg-thumbnail.js', 'modules/lg-video.js', 'modules/lg-zoom.js', 'modules/lg-hash.js', 'modules/lg-share.js'],
+ dest: 'dist/js/<%= pkg.name %>-all.min.js'
++ }, {
++ expand: true,
++ cwd: 'modules',
++ src: '*.js',
++ dest: 'dist/js'
+ }]
+ }
+ },
+@@ -137,7 +146,7 @@
+ },
+ jshint: {
+ options: {
+- reporter: require('jshint-stylish')
++ //reporter: require('jshint-stylish')
+ },
+ gruntfile: {
+ options: {
+@@ -197,7 +206,7 @@
+ });
+
+ // Default task.
+- grunt.registerTask('default', ['clean', 'jshint', 'connect', 'qunit', 'umd:all', 'concat','uglify', 'sass', 'cssmin', 'copy', /*'usebanner', 'watch'*/]);
++ grunt.registerTask('default', ['clean', 'concat', 'uglify', 'copy', /*'usebanner', 'watch'*/]);
+ grunt.registerTask('server', function() {
+ grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
+ grunt.task.run(['serve']);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0108572
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+gruntfile.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b873614
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ grunt
+ scss -C --style expanded src/sass/lightgallery.scss src/css/lightgallery.css
+ cssmin <src/css/lightgallery.css >dist/css/lightgallery.min.css
+ cssmin <src/css/lg-fb-comment-box.css >dist/css/lg-fb-comment-box.min.css
+ cssmin <src/css/lg-transitions.css >dist/css/lg-transitions.min.css
+
+#override_dh_auto_test:
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/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..857eaf4
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+#Long line in source file
+node-lightgallery source: source-is-missing modules/lg-thumbnail.js *
diff --git a/debian/umd-jquery-template-end.js b/debian/umd-jquery-template-end.js
new file mode 100644
index 0000000..be4600a
--- /dev/null
+++ b/debian/umd-jquery-template-end.js
@@ -0,0 +1 @@
+}));
diff --git a/debian/umd-jquery-template-start.js b/debian/umd-jquery-template-start.js
new file mode 100644
index 0000000..b3257cf
--- /dev/null
+++ b/debian/umd-jquery-template-start.js
@@ -0,0 +1,15 @@
+(function (root, factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module unless amdModuleId is set
+ define(['jquery'], function (a0) {
+ return (factory(a0));
+ });
+ } else if (typeof exports === 'object') {
+ // Node. Does not work with strict CommonJS, but
+ // only CommonJS-like environments that support module.exports,
+ // like Node.
+ module.exports = factory(require('jquery'));
+ } else {
+ factory(root["jQuery"]);
+ }
+}(this, function ($) {
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..659ccff
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-lightgallery-$1.tar.gz/ \
+ https://github.com/sachinchoolur/lightGallery/tags .*/archive/v?([\d\.]+).tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-lightgallery.git
More information about the Pkg-javascript-commits
mailing list