[DRE-commits] [ruby-rspec] 01/25: add rspec-support

Cédric Boutillier boutil at moszumanska.debian.org
Sat Mar 28 20:34:10 UTC 2015


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

boutil pushed a commit to branch no_submodules
in repository ruby-rspec.

commit 40d509aea94d334618a6fbc6639756d8efa8f1cc
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Mar 16 22:41:49 2015 +0100

    add rspec-support
---
 debian/rules | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index a575376..50d8d20 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,21 +20,24 @@ PATCHLEVEL_RSPEC = $(word 1, $(subst +, ,$(PATCHLEVEL)))
 PATCHLEVEL_RSPEC_CORE = $(word 2, $(subst +, ,$(PATCHLEVEL)))
 PATCHLEVEL_RSPEC_EXPECTATIONS = $(word 3, $(subst +, ,$(PATCHLEVEL)))
 PATCHLEVEL_RSPEC_MOCKS = $(word 4, $(subst +, ,$(PATCHLEVEL)))
+PATCHLEVEL_RSPEC_SUPPORT = $(word 5, $(subst +, ,$(PATCHLEVEL)))
 RSPEC_VERSION = $(MAJOR).$(MINOR).$(PATCHLEVEL_RSPEC)
 RSPEC_CORE_VERSION = $(MAJOR).$(MINOR).$(PATCHLEVEL_RSPEC_CORE)
 RSPEC_EXPECTATIONS_VERSION = $(MAJOR).$(MINOR).$(PATCHLEVEL_RSPEC_EXPECTATIONS)
 RSPEC_MOCKS_VERSION = $(MAJOR).$(MINOR).$(PATCHLEVEL_RSPEC_MOCKS)
+RSPEC_SUPPORT_VERSION = $(MAJOR).$(MINOR).$(PATCHLEVEL_RSPEC_SUPPORT)
 
 test:
 	@echo $(RSPEC_VERSION)
 	@echo $(RSPEC_CORE_VERSION)
 	@echo $(RSPEC_EXPECTATIONS_VERSION)
 	@echo $(RSPEC_MOCKS_VERSION)
+	@echo $(RSPEC_SUPPORT_VERSION)
 
 report:
 	@dh_testdir
 	@set -e && \
-	(echo rspec $(RSPEC_VERSION); echo rspec-core $(RSPEC_CORE_VERSION); echo rspec-expectations $(RSPEC_EXPECTATIONS_VERSION); echo rspec-mocks $(RSPEC_MOCKS_VERSION)) | { while read gem version; do \
+	(echo rspec $(RSPEC_VERSION); echo rspec-core $(RSPEC_CORE_VERSION); echo rspec-expectations $(RSPEC_EXPECTATIONS_VERSION); echo rspec-mocks $(RSPEC_MOCKS_VERSION); echo rspec-support $(RSPEC_SUPPORT_VERSION)) | { while read gem version; do \
 		new_version=$$(uscan --report --watch debian/$$gem.watch --upstream-version $$version | sed -n -e 's/^Newest version on remote site is \([^,]*\), .*$$/\1/p'); \
 		if [ "$$new_major_minor" ]; then \
 			[ "$$new_major_minor" = "$${new_version%.*}" ] || { echo 'Major/minor version mismatch between gems!' >&2; exit 1; }; \
@@ -68,6 +71,9 @@ get-orig-sources:
 	wget -O../ruby-rspec_$(UPSTREAM_VERSION).orig-rspec-mocks.tar.gz \
 		https://github.com/rspec/rspec-mocks/archive/v$(RSPEC_MOCKS_VERSION).tar.gz
 	cd rspec-mocks && git fetch origin && git checkout v$(RSPEC_MOCKS_VERSION)
+	wget -O../ruby-rspec_$(UPSTREAM_VERSION).orig-rspec-support.tar.gz \
+		https://github.com/rspec/rspec-support/archive/v$(RSPEC_SUPPORT_VERSION).tar.gz
+	cd rspec-support && git fetch origin && git checkout v$(RSPEC_SUPPORT_VERSION)
 	# Let's create a static version of the gemspec as we don't build with git
 	ruby1.9.1 -rrubygems -e ' \
 		%w{rspec rspec-core rspec-expectations rspec-mocks}.each do |gem| \
@@ -91,6 +97,7 @@ override_dh_auto_install:
 	DH_RUBY_GEMSPEC=debian/rspec-core.gemspec dh_auto_install -pruby-rspec-core
 	DH_RUBY_GEMSPEC=debian/rspec-expectations.gemspec dh_auto_install -pruby-rspec-expectations
 	DH_RUBY_GEMSPEC=debian/rspec-mocks.gemspec dh_auto_install -pruby-rspec-mocks
+	DH_RUBY_GEMSPEC=debian/rspec-support.gemspec dh_auto_install -pruby-rspec-support
 	rm -rf debian/ruby-rspec-core/usr/lib/ruby/vendor_ruby/autotest/
 
 override_dh_auto_clean:
@@ -99,8 +106,10 @@ override_dh_auto_clean:
 	DH_RUBY_GEMSPEC=debian/rspec-core.gemspec dh_auto_clean -pruby-rspec-core
 	DH_RUBY_GEMSPEC=debian/rspec-expectations.gemspec dh_auto_clean -pruby-rspec-expectations
 	DH_RUBY_GEMSPEC=debian/rspec-mocks.gemspec dh_auto_clean -pruby-rspec-mocks
+	DH_RUBY_GEMSPEC=debian/rspec-support.gemspec dh_auto_clean -pruby-rspec-support
 
 override_dh_installchangelogs:
 	dh_installchangelogs -pruby-rspec-core rspec-core/Changelog.md -O--buildsystem=ruby
 	dh_installchangelogs -pruby-rspec-expectations rspec-expectations/Changelog.md -O--buildsystem=ruby
 	dh_installchangelogs -pruby-rspec-mocks rspec-mocks/Changelog.md -O--buildsystem=ruby
+	dh_installchangelogs -pruby-rspec-support rspec-support/Changelog.md -O--buildsystem=ruby

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



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