[DRE-commits] [schleuder-cli] 01/01: debian/: Initial packaging

Georg Faerber georg-alioth-guest at moszumanska.debian.org
Mon Dec 5 15:30:53 UTC 2016


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

georg-alioth-guest pushed a commit to branch master
in repository schleuder-cli.

commit 3acfbb507903f4ee0ffb220a8d06dcd8c2babfa5
Author: Georg Faerber <georg at riseup.net>
Date:   Mon Dec 5 16:18:00 2016 +0100

    debian/: Initial packaging
---
 debian/changelog                                   |  6 ++--
 debian/control                                     | 19 +++++++---
 debian/copyright                                   | 42 ++++++++++------------
 ...b-use-require-instead-of-require-relative.patch | 15 ++++++++
 debian/patches/0002-spec-remove-bundler.patch      | 13 +++++++
 debian/patches/series                              |  2 ++
 debian/ruby-tests.rake                             |  9 +++++
 debian/schleuder-cli.manpages                      |  1 +
 debian/tests/control                               |  2 ++
 9 files changed, 78 insertions(+), 31 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3b305af..ae96c67 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-schleuder-cli (0.0.1~beta11-1) UNRELEASED; urgency=medium
+schleuder-cli (0.0.1~beta13-1) unstable; urgency=medium
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #846257)
 
- -- Georg Faerber <georg at riseup.net>  Tue, 29 Nov 2016 17:10:52 +0100
+ -- Georg Faerber <georg at riseup.net>  Mon, 05 Dec 2016 16:17:12 +0100
diff --git a/debian/control b/debian/control
index 2b7fa97..63de90f 100644
--- a/debian/control
+++ b/debian/control
@@ -5,11 +5,12 @@ Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.al
 Uploaders: Georg Faerber <georg at riseup.net>
 Build-Depends: debhelper (>= 9~),
                gem2deb,
-               ruby-thor (>= 0)
+               ruby-thor (>= 0~),
+ 	       ruby-rspec
 Standards-Version: 3.9.8
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/schleuder-cli.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/schleuder-cli.git
-Homepage: http://schleuder.nadir.org/
+Homepage: https://schleuder.nadir.org/
 Testsuite: autopkgtest-pkg-ruby
 XS-Ruby-Versions: all
 
@@ -17,8 +18,16 @@ Package: schleuder-cli
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
 Depends: ruby | ruby-interpreter,
-         ruby-thor (>= 0),
+         ruby-thor (>= 0~),
          ${misc:Depends},
          ${shlibs:Depends}
-Description: A command line tool to configure schleuder-lists.
- Schleuder-cli enables creating, configuring, and deleting schleuder-lists, subscriptions, keys, etc.
+Enhances: schleuder (>= 3.0.0~)
+Description: command line tool to configure schleuder-lists
+ Schleuder-cli enables creating, configuring, and deleting schleuder-lists,
+ subscriptions, keys, etc.
+ .
+ It uses the Schleuder API, either unencrypted via localhost (default) or
+ TLS-encrypted via any network.
+ .
+ It does *not* authorize access. Only people who are supposed to have full
+ access to all lists should be allowed to use it on/with your server.
diff --git a/debian/copyright b/debian/copyright
index 02f58d3..dd9a97d 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,35 +1,31 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: schleuder-cli
-Source: http://schleuder.nadir.org/
+Source: https://git.codecoop.org/schleuder/schleuder-cli
 
 Files: *
-Copyright: <years> <put author's name and email here>
-           <years> <likewise for another author>
-License: GPL-2+ (FIXME)
+Copyright: 2014-2016 schleuder dev team <schleuder at nadir.org> 
+License: GPL-3.0
 
 Files: debian/*
 Copyright: 2016 Georg Faerber <georg at riseup.net>
-License: GPL-2+ (FIXME)
-Comment: the Debian packaging is licensed under the same terms as the original package.
+License: GPL-3.0
+Comment: the Debian packaging is licensed under the same terms as the
+ original package.
 
-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: GPL-3.0
+ 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 3 of the License, or
+ (at your option) any later version.
  .
- 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.
+ 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.
  .
- 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
+ You should have received a copy of the GNU General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  .
- On Debian systems, the full text of the GNU General Public
+ 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'.
+ `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/patches/0001-lib-use-require-instead-of-require-relative.patch b/debian/patches/0001-lib-use-require-instead-of-require-relative.patch
new file mode 100644
index 0000000..6deed02
--- /dev/null
+++ b/debian/patches/0001-lib-use-require-instead-of-require-relative.patch
@@ -0,0 +1,15 @@
+Description: Use 'require' instead of 'require_relative' in lib
+Author: Georg Faerber <georg at riseup.net>
+Last-Update: 2016-11-29
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/bin/schleuder-cli
++++ b/bin/schleuder-cli
+@@ -1,6 +1,6 @@
+ #!/usr/bin/env ruby
+ 
+-require_relative '../lib/schleuder-cli'
++require 'schleuder-cli'
+ 
+ trap("INT") { exit 1 }
+ 
diff --git a/debian/patches/0002-spec-remove-bundler.patch b/debian/patches/0002-spec-remove-bundler.patch
new file mode 100644
index 0000000..c637a2f
--- /dev/null
+++ b/debian/patches/0002-spec-remove-bundler.patch
@@ -0,0 +1,13 @@
+Description: Remove bundler usage in rspec tests                                                                                                                                                  
+Author: Georg Faerber <georg at riseup.net>
+Last-Update: 2016-12-03
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,5 +1,3 @@
+-require 'bundler/setup'
+-Bundler.setup
+ require 'schleuder-cli'
+ 
+ RSpec.configure do |config|
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d0b162e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+0002-spec-remove-bundler.patch
+0001-lib-use-require-instead-of-require-relative.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..1ce4f46
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,9 @@
+#require 'rspec/core/rake_task'                                                                                                                                                                                     
+require 'gem2deb/rake/spectask'
+
+#RSpec::Core::RakeTask.new(:spec) do |spec|
+Gem2Deb::Rake::RSpecTask.new do |spec|
+  spec.pattern = './spec/schleuder-cli/*_spec.rb'
+end
+
+#task :default => :spec
diff --git a/debian/schleuder-cli.manpages b/debian/schleuder-cli.manpages
new file mode 100644
index 0000000..93a4a41
--- /dev/null
+++ b/debian/schleuder-cli.manpages
@@ -0,0 +1 @@
+man/schleuder-cli.8
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..f939b1f
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Test-Command: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1
+Depends: @, @builddeps@, gem2deb-test-runner

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



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