[DRE-commits] [origami] 10/19: Proper packaging

Antonio Terceiro terceiro at moszumanska.debian.org
Fri Nov 7 00:22:45 UTC 2014


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

terceiro pushed a commit to branch master
in repository origami.

commit 8e93c99c15114ec519a54d750fb54f14159e76c0
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date:   Thu Nov 6 16:23:50 2014 -0200

    Proper packaging
---
 debian/changelog           |  2 +-
 debian/compat              |  2 +-
 debian/control             | 33 ++++++++++++++++++++++++-------
 debian/copyright           | 48 ++++++++++++++++++++++++----------------------
 debian/origami-pdf.install |  4 ++++
 debian/ruby-origami.docs   |  2 --
 debian/rules               |  4 ++++
 7 files changed, 61 insertions(+), 34 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 190a443..f892230 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-ruby-origami (1.2.7-1) UNRELEASED; urgency=medium
+origami-pdf (1.2.7-1) UNRELEASED; urgency=medium
 
   * Initial release (Closes: #767911)
 
diff --git a/debian/compat b/debian/compat
index 7f8f011..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+9
diff --git a/debian/control b/debian/control
index c7e740e..22d4004 100644
--- a/debian/control
+++ b/debian/control
@@ -1,19 +1,38 @@
-Source: ruby-origami
+Source: origami-pdf
 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 (>= 7.0.50~), gem2deb, rake, ruby-test-unit
+Build-Depends: debhelper (>= 9), gem2deb, rake, ruby-test-unit
 Standards-Version: 3.9.5
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-origami.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-origami.git;a=summary
-Homepage: FIXME
-Testsuite: autopkgtest
+Homepage: https://code.google.com/p/origami-pdf/
+Testsuite: autopkgtest-pkg-ruby
 XS-Ruby-Versions: all
 
 Package: ruby-origami
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
-Description: FIXME
- <insert long description, indented with spaces>
+Depends: ${misc:Depends}, ruby | ruby-interpreter
+Description: PDF analysis and manipulation tool (Ruby library)
+ Origami is a PDF-compliant parser. It provides a scripting tool to generate
+ and analyze malicious PDF files. It can also be used to create on-the-fly
+ customized PDFs, or to inject (evil) code into already existing documents.
+ .
+ This package contains the Ruby library code, which can be used from other Ruby
+ programs to manipulate PDF's.
+
+Package: origami-pdf
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${misc:Depends}, ruby | ruby-interpreter, ruby-origami
+Recommends: ruby-gtk2
+Description: PDF analysis and manipulation tool
+ Origami is a PDF-compliant parser. It provides a scripting tool to generate
+ and analyze malicious PDF files. It can also be used to create on-the-fly
+ customized PDFs, or to inject (evil) code into already existing documents.
+ .
+ This package contains command line tools to analyse and manipulate PDF's as
+ well as a GUI tool to explore the structure of PDF files.
+
diff --git a/debian/copyright b/debian/copyright
index f5337fa..f7790ad 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,35 +1,37 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: ruby-origami
-Source: FIXME <http://example.com/>
+Source: https://code.google.com/p/origami-pdf/
 
 Files: *
-Copyright: <years> <put author's name and email here>
-           <years> <likewise for another author>
-License: GPL-2+ (FIXME)
+Copyright: Guillaume Delugré <guillaume (at) security-labs.org>
+  Frédéric Raynal <fred (at) security-labs.org>
+License: LGPL-3
+
+Files: bin/gui/*
+Copyright: Guillaume Delugré <guillaume (at) security-labs.org>
+  Frédéric Raynal <fred (at) security-labs.org>
+License: GPL-3
 
 Files: debian/*
 Copyright: 2014 Antonio Terceiro <terceiro at debian.org>
-License: GPL-2+ (FIXME)
-Comment: the Debian packaging is licensed under the same terms as the original package.
+License: GPL-3
 
-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: LGPL-3
+ This software is distributed under the LGPL license.
  .
- 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.
+ Exception is for the PDF Walker graphical interface located in subdirectory
+ bin/gui, which is distributed under the GPL license.  See bin/gui/COPYING file
+ for more details.
  .
- 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 Lesser General Public License
+ version 3 can be found in the file `/usr/share/common-licenses/LGPL-3'.
+
+License: GPL-3
+ This software is distributed under the LGPL license.
  .
+ Exception is for the PDF Walker graphical interface located in subdirectory
+ bin/gui, which is distributed under the GPL license.  See bin/gui/COPYING file
+ for more details.
  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'.
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/origami-pdf.install b/debian/origami-pdf.install
new file mode 100644
index 0000000..b2baf99
--- /dev/null
+++ b/debian/origami-pdf.install
@@ -0,0 +1,4 @@
+bin/gui                     usr/share/origami-pdf
+bin/config/pdfcop.conf.yml  etc/origami-pdf
+bin/shell                   usr/share/origami-pdf
+bin/pdf*                    usr/bin
diff --git a/debian/ruby-origami.docs b/debian/ruby-origami.docs
deleted file mode 100644
index 786a9ba..0000000
--- a/debian/ruby-origami.docs
+++ /dev/null
@@ -1,2 +0,0 @@
-# FIXME: READMEs found
-# README
diff --git a/debian/rules b/debian/rules
index f21809f..bb099a7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,3 +9,7 @@ override_dh_auto_clean:
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_install:
+	dh_auto_install
+	$(RM) -r $(CURDIR)/debian/ruby-origami/usr/bin

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/origami.git



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