[DRE-commits] [ruby-rack-oauth2] 01/01: fix load failure
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sat Oct 10 03:29:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-rack-oauth2.
commit 7420904a244f9b2a3690a7f895d98276a118ad26
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Sat Oct 10 08:46:40 2015 +0530
fix load failure
---
debian/changelog | 7 +++++++
debian/patches/fix-version.patch | 13 +++++++++++++
debian/patches/series | 1 +
debian/rules | 9 +++++++++
4 files changed, 30 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index addf818..d6f4dae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-rack-oauth2 (1.2.0-2) unstable; urgency=medium
+
+ * Team upload
+ * Install VERSION file (fix load failure)
+
+ -- Pirate Praveen <praveen at debian.org> Sat, 10 Oct 2015 08:46:17 +0530
+
ruby-rack-oauth2 (1.2.0-1) unstable; urgency=medium
* Initial release (Closes: #790645)
diff --git a/debian/patches/fix-version.patch b/debian/patches/fix-version.patch
new file mode 100644
index 0000000..10e6519
--- /dev/null
+++ b/debian/patches/fix-version.patch
@@ -0,0 +1,13 @@
+Index: ruby-rack-oauth2/lib/rack/oauth2.rb
+===================================================================
+--- ruby-rack-oauth2.orig/lib/rack/oauth2.rb
++++ ruby-rack-oauth2/lib/rack/oauth2.rb
+@@ -10,7 +10,7 @@ require 'attr_optional'
+ module Rack
+ module OAuth2
+ VERSION = ::File.read(
+- ::File.join(::File.dirname(__FILE__), '../../VERSION')
++ ::File.join(::File.dirname(__FILE__), 'oauth2/VERSION')
+ ).strip
+
+ def self.logger
diff --git a/debian/patches/series b/debian/patches/series
index f958273..5711ac3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
simplecov
+fix-version.patch
diff --git a/debian/rules b/debian/rules
index acfc5fe..16117bf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,3 +16,12 @@
%:
dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_build:
+ if [ -f VERSION ]; then \
+ mv VERSION lib/rack/oauth2; fi
+
+override_dh_auto_clean:
+ if [ -f lib/rack/oauth2/VERSION ]; then \
+ mv lib/rack/oauth2/VERSION VERSION; fi
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rack-oauth2.git
More information about the Pkg-ruby-extras-commits
mailing list