[DRE-commits] [ruby-task-list] 04/05: provide both gemspec

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Wed Nov 2 16:17:07 UTC 2016


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

praveen pushed a commit to branch master
in repository ruby-task-list.

commit 4becb0bdd04b891a3e1913ad9a2c7df421cb2249
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed Nov 2 19:50:51 2016 +0530

    provide both gemspec
---
 debian/changelog    |  5 +++--
 debian/copy-gemspec |  7 +++++++
 debian/rules        | 20 ++++++--------------
 3 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e09d0ab..e155928 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,10 @@
-ruby-task-list (1.0.6-1) UNRELEASED; urgency=medium
+ruby-task-list (1.0.6-1) unstable; urgency=medium
 
   * New upstream release
   * Switch to deckar01 fork
+  * Provide gemspec for task_list and deckar01-task_list
 
- -- Pirate Praveen <praveen at debian.org>  Wed, 02 Nov 2016 19:38:27 +0530
+ -- Pirate Praveen <praveen at debian.org>  Wed, 02 Nov 2016 19:50:02 +0530
 
 ruby-task-list (1.0.2-2) unstable; urgency=medium
 
diff --git a/debian/copy-gemspec b/debian/copy-gemspec
new file mode 100755
index 0000000..b60d485
--- /dev/null
+++ b/debian/copy-gemspec
@@ -0,0 +1,7 @@
+#!/bin/sh
+# provide task_list
+version=$(head -1 debian/changelog |cut -d'(' -f2|cut -d'-' -f1|cut -d+ -f1)
+cp debian/ruby-task-list/usr/share/rubygems-integration/all/specifications/deckar01-task_list-${version}.gemspec \
+debian/ruby-task-list/usr/share/rubygems-integration/all/specifications/task_list-${version}.gemspec
+sed -i 's/"deckar01-task_list"/"task_list"/' debian/ruby-task-list/usr/share/rubygems-integration/all/specifications/task_list-${version}.gemspec
+sed -i 's/stub: deckar01-task_list/stub: task_list/' debian/ruby-task-list/usr/share/rubygems-integration/all/specifications/task_list-${version}.gemspec
diff --git a/debian/rules b/debian/rules
index 57b4299..faf6b95 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,10 @@
 #!/usr/bin/make -f
-#export DH_VERBOSE=1
-#
-# Uncomment to ignore all test failures (but the tests will run anyway)
-#export DH_RUBY_IGNORE_TESTS=all
-#
-# Uncomment to ignore some test failures (but the tests will run anyway).
-# Valid values:
-#export DH_RUBY_IGNORE_TESTS=ruby2.1
-#
-# If you need to specify the .gemspec (eg there is more than one)
-#export DH_RUBY_GEMSPEC=gem.gemspec
-#
-# Uncomment to check dependencies during build:
-# export GEM2DEB_TEST_RUNNER = --check-dependencies
+
+export GEM2DEB_TEST_RUNNER = --check-dependencies
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_install:
+	dh_auto_install
+	debian/copy-gemspec

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



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