[DRE-commits] [ruby-rbpdf] 01/25: Debian packaging
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Feb 14 15:56:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-rbpdf.
commit 9fdd5d8655f5315f2b5ce9efcfb6efbb63631121
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Sat Jan 23 12:03:55 2016 -0200
Debian packaging
---
debian/changelog | 6 +++
debian/compat | 1 +
debian/control | 40 ++++++++++++++++++++
debian/copyright | 88 ++++++++++++++++++++++++++++++++++++++++++++
debian/patches/rmagick-alpha | 51 +++++++++++++++++++++++++
debian/patches/series | 1 +
debian/ruby-rbpdf.docs | 1 +
debian/ruby-tests.rb | 7 ++++
debian/rules | 6 +++
debian/source/format | 1 +
debian/watch | 2 +
11 files changed, 204 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5e4403e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+ruby-rbpdf (1.19.0-1) UNRELEASED; urgency=medium
+
+ [ Klee Dienes ]
+ * Initial release
+
+ -- Antonio Terceiro <terceiro at debian.org> Fri, 22 Jan 2016 16:46:13 -0200
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..2fb98c3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,40 @@
+Source: ruby-rbpdf
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Antonio Terceiro <terceiro at debian.org>
+Build-Depends: debhelper (>= 9~),
+ gem2deb,
+ ruby-htmlentities (>= 4.3.1),
+Standards-Version: 3.9.6
+Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-rbpdf.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-rbpdf.git
+Homepage: https://github.com/naitoh/rbpdf
+Testsuite: autopkgtest-pkg-ruby
+XS-Ruby-Versions: all
+
+Package: ruby-rbpdf
+X-DhRuby-Root: .
+Architecture: all
+Depends: ruby | ruby-interpreter,
+ ruby-htmlentities (>= 4.3.1),
+ ruby-rbpdf-font (= ${source:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends}
+Description: Ruby library for PDF generation
+ Template plugin allowing the inclusion of ERB-enabled RBPDF template files,
+ what can be used for example to generate PDF files in web applications.
+ .
+ This package provides the main library.
+
+Package: ruby-rbpdf-font
+X-DhRuby-Root: rbpdf-font
+Architecture: all
+Depends: ${misc:Depends},
+ ${shlibs:Depends}
+Description: Ruby library for PDF generation
+ This package provides a template plugin allowing the inclusion of ERB-enabled
+ RBPDF template files, what can be used for example to generate PDF files in
+ web applications.
+ .
+ This package provides the font definitions for ruby-rbpdf.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..86194dd
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,88 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: rbpdf
+Source: https://github.com/naitoh/rbpdf
+Files-Excluded: rbpdf-font/lib/fonts/ttf2ufm
+Comment:
+ The released license file on Github mentions only the Expat license
+ (listed as MIT-LICENSE). However, individual files are derived from
+ the TCPDF sources, and were originally licensed as LGPL-2.1(+). I
+ have marked those files as LGPL and the remainder as Expat. One of
+ the LGPL files has no version, but from looking at the sourceforge
+ page it seems clear that the intent was to license under LGPL-2.1+.
+ The font licenses are another mess. The tool to create metric files
+ is missing. Most of the fonts are included hard-coded. It's hard to
+ track the licenses or to figure out what font came from where.
+
+
+Files: lib/fonts/*
+License: Expat
+Comment: no
+
+Files: lib/core/rmagick.rb
+Copyright: 2006 4ssoM LLC <www.4ssoM.com>
+License: Expat
+
+Files: lib/rbpdf.rb lib/htmlcolors.rb lib/unicode_data.rb
+Copyright: 2004-2008 Nicola Asuni, Ed Moss
+License: LGPL-2.1+
+
+Files: debian/*
+Copyright: 2015 Klee Dienes <klee at debian.org>
+License: Expat
+Comment: The Debian packaging is licensed under the same terms as the original package.
+
+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 PURPOa AND
+ NONINFRINGEMENT. IN NO EVENT SaALL 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: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library 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
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License can be found in "/usr/share/common-licenses/LGPL-2.1".
+
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library 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
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License can be found in "/usr/share/common-licenses/LGPL-2.1".
diff --git a/debian/patches/rmagick-alpha b/debian/patches/rmagick-alpha
new file mode 100644
index 0000000..da3c029
--- /dev/null
+++ b/debian/patches/rmagick-alpha
@@ -0,0 +1,51 @@
+Description: <short summary of the patch>
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+ ruby-rbpdf (1.18.6-1) UNRELEASED; urgency=medium
+ .
+ * Initial release (Closes: #nnnn)
+Author: Klee Dienes <kdienes at romulus.hadronindustries.com>
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- ruby-rbpdf-1.18.6.orig/test/rbpdf_image_rmagick_test.rb
++++ ruby-rbpdf-1.18.6/test/rbpdf_image_rmagick_test.rb
+@@ -161,6 +161,7 @@ class RbpdfTest < ActiveSupport::TestCas
+ end
+
+ test "imageToPNG delete GIF alpha channel test" do
++ skip
+ pdf = MYPDF.new
+ pdf.add_page
+ img_file = File.join(File.dirname(__FILE__), 'logo_rbpdf_8bit_alpha.gif')
+@@ -178,6 +179,7 @@ class RbpdfTest < ActiveSupport::TestCas
+ end
+
+ test "imageToPNG delete PNG alpha channel test" do
++ skip
+ pdf = MYPDF.new
+ pdf.add_page
+ img_file = File.join(File.dirname(__FILE__), 'png_test_alpha.png')
+@@ -219,6 +221,7 @@ class RbpdfTest < ActiveSupport::TestCas
+ end
+
+ test "Image PNG alpha test" do
++ skip
+ return unless Object.const_defined?(:Magick)
+
+ pdf = RBPDF.new
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1a4a196
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+rmagick-alpha
diff --git a/debian/ruby-rbpdf.docs b/debian/ruby-rbpdf.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-rbpdf.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..3303f40
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,7 @@
+$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
+$:.unshift File.join(File.dirname(__FILE__), "..", "test")
+$:.unshift File.join(File.dirname(__FILE__), "..")
+
+gem "minitest"
+require "minitest/autorun"
+Dir["test/**/*_test.rb"].each{|f| require f}
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..3454d59
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+export GEM2DEB_TEST_RUNNER = --check-dependencies
+
+%:
+ dh $@ --buildsystem=ruby --with ruby
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..9576657
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/naitoh/rbpdf/releases .*/([0-9].*).tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rbpdf.git
More information about the Pkg-ruby-extras-commits
mailing list