[DRE-commits] [ruby-rails-assets-jquery-nicescroll] 02/03: make lintian happy

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun Dec 13 10:22:42 UTC 2015


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

praveen pushed a commit to branch master
in repository ruby-rails-assets-jquery-nicescroll.

commit b4b6fba3a7b2bb53d4d862425c31163e631aad1b
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Sun Dec 13 15:40:00 2015 +0530

    make lintian happy
---
 debian/changelog                                   |  4 +-
 debian/control                                     | 23 +++++++++--
 debian/copyright                                   | 45 ++++++++++------------
 debian/install                                     |  1 +
 debian/libjs-jquery-nicescroll.install             |  2 +
 debian/patches/series                              |  1 +
 debian/patches/set-engine-root.patch               | 12 ++++++
 ...cs => ruby-rails-assets-jquery-nicescroll.docs} |  0
 debian/ruby-rails-assets-jquery-nicescroll.links   |  2 +
 debian/tests/control                               |  5 +++
 debian/tests/smoke-test                            | 15 ++++++++
 11 files changed, 80 insertions(+), 30 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index aeae636..85f3093 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-ruby-rails-assets-jquery.nicescroll (3.6.6-1) UNRELEASED; urgency=medium
+ruby-rails-assets-jquery-nicescroll (3.6.6-1) UNRELEASED; urgency=medium
 
   * Initial release (Closes: #807798)
 
- -- Pirate Praveen <praveen at debian.org>  Sun, 13 Dec 2015 15:29:47 +0530
+ -- Pirate Praveen <praveen at debian.org>  Sat, 12 Dec 2015 22:12:12 +0530
diff --git a/debian/control b/debian/control
index fd15763..7dde111 100644
--- a/debian/control
+++ b/debian/control
@@ -1,4 +1,4 @@
-Source: ruby-rails-assets-jquery.nicescroll
+Source: ruby-rails-assets-jquery-nicescroll
 Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
@@ -13,11 +13,28 @@ Homepage: https://github.com/inuyaksa/jquery.nicescroll
 Testsuite: autopkgtest-pkg-ruby
 XS-Ruby-Versions: all
 
-Package: ruby-rails-assets-jquery.nicescroll
+Package: ruby-rails-assets-jquery-nicescroll
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
 Depends: ruby | ruby-interpreter,
          ruby-rails-assets-jquery (>= 1.8.3),
+         libjs-jquery-nicescroll (= ${source:Version}),
          ${misc:Depends},
          ${shlibs:Depends}
-Description:
+Description: provide jquery.nicescroll via rails asset pipeline
+ Nicescroll is a jquery plugin, for nice scrollbars with a very similar
+ ios/mobile style.
+ .
+ This package is autogenerated by rails-assets.org
+
+Package: libjs-jquery-nicescroll
+Section: web
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: jquery plugin, for nice scrollbars
+ jquery plugin, for nice scrollbars with a very similar ios/mobile style.
+ .
+ Easy-to-use solution to have a custom scrollbars compatble with destkop,
+ tablet and phone devices.
+ .
+ It supports DIVs, IFrames, textarea, and document page (body) scrollbars.
diff --git a/debian/copyright b/debian/copyright
index 5e62308..0a38ebb 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,35 +1,30 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: rails-assets-jquery.nicescroll
-Source: https://github.com/inuyaksa/jquery.nicescroll
+Source: https://rails-assets.org
 
 Files: *
-Copyright: <years> <put author's name and email here>
-           <years> <likewise for another author>
-License: GPL-2+ (FIXME)
+Copyright: 2015-11-17 InuYaksa*2015
+License: Expat
 
 Files: debian/*
 Copyright: 2015 Pirate Praveen <praveen at debian.org>
-License: GPL-2+ (FIXME)
-Comment: the Debian packaging is licensed under the same terms as the original package.
+License: Expat
 
-License: GPL-2+ (FIXME)
- 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 2 of the License, or (at your option) any later
- version.
+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:
  .
- 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.
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
  .
- You should have received a copy of the GNU General Public
- License along with this package; if not, write to the Free
- Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- Boston, MA  02110-1301 USA
- .
- On Debian systems, the full text of the GNU General Public
- License version 2 can be found in the file
- `/usr/share/common-licenses/GPL-2'.
+ 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/install b/debian/install
new file mode 100644
index 0000000..e1700a8
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+app usr/share/ruby-rails-assets-jquery-nicescroll
diff --git a/debian/libjs-jquery-nicescroll.install b/debian/libjs-jquery-nicescroll.install
new file mode 100644
index 0000000..eb3eafd
--- /dev/null
+++ b/debian/libjs-jquery-nicescroll.install
@@ -0,0 +1,2 @@
+app/assets/javascripts/jquery.nicescroll/jquery.nicescroll.js usr/share/javascript/jquery-nicescroll
+app/assets/javascripts/jquery.nicescroll/dist/jquery.nicescroll.min.js usr/share/javascript/jquery-nicescroll
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e7bdefa
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+set-engine-root.patch
diff --git a/debian/patches/set-engine-root.patch b/debian/patches/set-engine-root.patch
new file mode 100644
index 0000000..14c927a
--- /dev/null
+++ b/debian/patches/set-engine-root.patch
@@ -0,0 +1,12 @@
+Index: ruby-rails-assets-jquery.nicescroll-3.6.6/lib/rails-assets-jquery.nicescroll.rb
+===================================================================
+--- ruby-rails-assets-jquery.nicescroll-3.6.6.orig/lib/rails-assets-jquery.nicescroll.rb
++++ ruby-rails-assets-jquery.nicescroll-3.6.6/lib/rails-assets-jquery.nicescroll.rb
+@@ -26,6 +26,7 @@ module RailsAssetsJqueryNicescroll
+ 
+   if defined?(Rails)
+     class Engine < ::Rails::Engine
++      config.root ='/usr/share/ruby-rails-assets-jquery-nicescroll'
+       # Rails -> use app/assets directory.
+     end
+   end
diff --git a/debian/ruby-rails-assets-jquery.nicescroll.docs b/debian/ruby-rails-assets-jquery-nicescroll.docs
similarity index 100%
rename from debian/ruby-rails-assets-jquery.nicescroll.docs
rename to debian/ruby-rails-assets-jquery-nicescroll.docs
diff --git a/debian/ruby-rails-assets-jquery-nicescroll.links b/debian/ruby-rails-assets-jquery-nicescroll.links
new file mode 100644
index 0000000..9d06e25
--- /dev/null
+++ b/debian/ruby-rails-assets-jquery-nicescroll.links
@@ -0,0 +1,2 @@
+usr/share/javascript/jquery-nicescroll/jquery.nicescroll.js usr/share/ruby-rails-assets-jquery-nicescroll/app/assets/javascripts/jquery.nicescroll/jquery.nicescroll.js
+usr/share/javascript/jquery-nicescroll/jquery.nicescroll.min.js usr/share/ruby-rails-assets-jquery-nicescroll/app/assets/javascripts/jquery.nicescroll/dist/jquery.nicescroll.min.js
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..f6de8a4
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: smoke-test
+Depends: @, rails, ruby-coffee-script, ruby-jbuilder
+
+Test-Command: gem2deb-test-runner --autopkgtest 2>&1
+Depends: @, @builddeps@, gem2deb-test-runner
diff --git a/debian/tests/smoke-test b/debian/tests/smoke-test
new file mode 100644
index 0000000..409a9b6
--- /dev/null
+++ b/debian/tests/smoke-test
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+exec 2>&1
+set -ex
+
+cd $ADTTMP
+
+rails new foo
+cd foo
+
+echo "gem 'rails-assets-jquery.nicescroll'" >> Gemfile
+echo '//= require jquery.nicescroll' >> app/assets/javascripts/application.js
+
+bundle install --local
+bundle exec rake assets:precompile

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rails-assets-jquery-nicescroll.git



More information about the Pkg-ruby-extras-commits mailing list