[DRE-commits] [ruby-rails-assets-clipboard] 02/02: make lintian clean, install assets
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sun Dec 13 12:13:56 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-clipboard.
commit c7a809b14b19a1e5e2f5ec6c5a378a8fcab49551
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Sun Dec 13 17:40:28 2015 +0530
make lintian clean, install assets
---
debian/changelog | 6 ++---
debian/control | 24 +++++++++++++++--
debian/copyright | 45 ++++++++++++++------------------
debian/install | 1 +
debian/libjs-clipboard.install | 1 +
debian/patches/engine-root.patch | 12 +++++++++
debian/patches/series | 1 +
debian/ruby-rails-assets-clipboard.links | 1 +
debian/tests/control | 2 ++
debian/tests/smoke-test | 15 +++++++++++
10 files changed, 78 insertions(+), 30 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 02f8892..7bca3c3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-ruby-rails-assets-clipboard (1.4.2-1) UNRELEASED; urgency=medium
+ruby-rails-assets-clipboard (1.4.2-1) unstable; urgency=medium
- * Initial release (Closes: #nnnn)
+ * Initial release (Closes: #807812)
- -- Pirate Praveen <praveen at debian.org> Sun, 13 Dec 2015 17:33:17 +0530
+ -- Pirate Praveen <praveen at debian.org> Sun, 13 Dec 2015 17:40:18 +0530
diff --git a/debian/control b/debian/control
index ccaa54c..0b1230b 100644
--- a/debian/control
+++ b/debian/control
@@ -16,7 +16,27 @@ Package: ruby-rails-assets-clipboard
Architecture: all
XB-Ruby-Versions: ${ruby:Versions}
Depends: ruby | ruby-interpreter,
+ libjs-clipboard (= ${source:Version}),
${misc:Depends},
${shlibs:Depends}
-Description: Modern copy to clipboard. No Flash. Just 2kb
- Modern copy to clipboard. No Flash. Just 2kb
+Description: provide clipboard javascript library via rails asset pipeline
+ A modern approach to copy text to clipboard. No Flash. Just 2kb.
+ .
+ Copying text to the clipboard shouldn't be hard. It shouldn't require dozens
+ of steps to configure or hundreds of KBs to load. But most of all, it
+ shouldn't depend on Flash or any bloated framework.
+ .
+ That's why clipboard.js exists.
+ .
+ This package is built using rubygem autogenerated by rails-assets.org
+
+Package: libjs-clipboard
+Section: web
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: modern approach to copy text to clipboard
+ Copying text to the clipboard shouldn't be hard. It shouldn't require dozens
+ of steps to configure or hundreds of KBs to load. But most of all, it
+ shouldn't depend on Flash or any bloated framework.
+ .
+ That's why clipboard.js exists.
diff --git a/debian/copyright b/debian/copyright
index e6e8ac9..28df690 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-clipboard
-Source: https://github.com/zenorocha/clipboard.js
+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: Zeno Rocha
+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..8d9c124
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+app usr/share/ruby-rails-assets-clipboard
diff --git a/debian/libjs-clipboard.install b/debian/libjs-clipboard.install
new file mode 100644
index 0000000..155d93e
--- /dev/null
+++ b/debian/libjs-clipboard.install
@@ -0,0 +1 @@
+app/assets/javascripts/clipboard/clipboard.js usr/share/javascript/clipboard
diff --git a/debian/patches/engine-root.patch b/debian/patches/engine-root.patch
new file mode 100644
index 0000000..f56ffe4
--- /dev/null
+++ b/debian/patches/engine-root.patch
@@ -0,0 +1,12 @@
+Index: ruby-rails-assets-clipboard-1.4.2/lib/rails-assets-clipboard.rb
+===================================================================
+--- ruby-rails-assets-clipboard-1.4.2.orig/lib/rails-assets-clipboard.rb
++++ ruby-rails-assets-clipboard-1.4.2/lib/rails-assets-clipboard.rb
+@@ -25,6 +25,7 @@ module RailsAssetsClipboard
+
+ if defined?(Rails)
+ class Engine < ::Rails::Engine
++ config.root = '/usr/share/ruby-rails-assets-clipboard'
+ # Rails -> use app/assets directory.
+ end
+ end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d77d941
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+engine-root.patch
diff --git a/debian/ruby-rails-assets-clipboard.links b/debian/ruby-rails-assets-clipboard.links
new file mode 100644
index 0000000..0bf8228
--- /dev/null
+++ b/debian/ruby-rails-assets-clipboard.links
@@ -0,0 +1 @@
+usr/share/javascript/clipboard/clipboard.js usr/share/ruby-rails-assets-clipboard/app/assets/javascripts/clipboard/clipboard.js
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..9918680
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: smoke-test
+Depends: @, rails, ruby-coffee-script, ruby-jbuilder
diff --git a/debian/tests/smoke-test b/debian/tests/smoke-test
new file mode 100644
index 0000000..67ed4c0
--- /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-clipboard'" >> Gemfile
+echo '//= require clipboard' >> 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-clipboard.git
More information about the Pkg-ruby-extras-commits
mailing list