[DRE-commits] [ruby-github-markup] 01/01: provide github-markup.gemspec as well

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Tue Nov 1 18:01:41 UTC 2016


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

praveen pushed a commit to branch master
in repository ruby-github-markup.

commit 723444b19ab56d07674e245cd230dc518a379477
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Tue Nov 1 23:10:02 2016 +0530

    provide github-markup.gemspec as well
---
 debian/changelog    | 6 ++++++
 debian/copy-gemspec | 7 +++++++
 debian/rules        | 3 +--
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2003db5..9d5f8bd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ruby-github-markup (1.5.0+dfsg-2) unstable; urgency=medium
+
+  * Provide github-markup.gemspec in addition to gitlab-markup.gemspec
+
+ -- Pirate Praveen <praveen at debian.org>  Tue, 01 Nov 2016 23:09:41 +0530
+
 ruby-github-markup (1.5.0+dfsg-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/copy-gemspec b/debian/copy-gemspec
new file mode 100755
index 0000000..1ad31d6
--- /dev/null
+++ b/debian/copy-gemspec
@@ -0,0 +1,7 @@
+#!/bin/sh
+# provide github-markup
+version=$(head -1 debian/changelog |cut -d'(' -f2|cut -d'-' -f1|cut -d+ -f1)
+cp debian/ruby-github-markup/usr/share/rubygems-integration/all/specifications/gitlab-markup-${version}.gemspec \
+debian/ruby-github-markup/usr/share/rubygems-integration/all/specifications/github-markup-${version}.gemspec
+sed -i 's/"gitlab-markup"/"github-markup"/' debian/ruby-github-markup/usr/share/rubygems-integration/all/specifications/github-markup-${version}.gemspec
+sed -i 's/stub: gitlab-markup/stub: github-markup/' debian/ruby-github-markup/usr/share/rubygems-integration/all/specifications/github-markup-${version}.gemspec
diff --git a/debian/rules b/debian/rules
index f34034d..273d82d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,8 +27,7 @@ override_dh_auto_build:
 override_dh_auto_install:
 	# use utf-8 locale so test cases work
 	LC_ALL=C.UTF-8 dh_auto_install
-	# make rest2html executable
-	chmod 0755 debian/ruby-github-markup/usr/lib/ruby/vendor_ruby/github/commands/rest2html
+	debian/copy-gemspec
 
 override_dh_installchangelogs:
 	dh_installchangelogs HISTORY.md

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



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