[DRE-commits] [ruby-rspec] 14/19: static gemspecs
Jérémy Bobbio
lunar at alioth.debian.org
Sun Oct 20 17:01:26 UTC 2013
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/multideb
in repository ruby-rspec.
commit 2c485039ef61bc436a06c8c6b573123f4f4bfd7a
Author: Jérémy Bobbio <lunar at debian.org>
Date: Sun Oct 20 14:59:29 2013 +0200
static gemspecs
---
debian/rules | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index 43119de..a575376 100755
--- a/debian/rules
+++ b/debian/rules
@@ -68,6 +68,15 @@ 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)
+ # 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| \
+ Dir.chdir(gem) do \
+ spec = Gem::Specification.load("#{gem}.gemspec"); \
+ File.write("../debian/#{gem}.gemspec", spec.to_ruby); \
+ end; \
+ end \
+ '
%:
dh $@ --buildsystem=ruby --with ruby
@@ -78,12 +87,18 @@ override_dh_installman:
dh_installman
override_dh_auto_install:
- dh_auto_install
+ DH_RUBY_GEMSPEC=debian/rspec.gemspec dh_auto_install -pruby-rspec
+ 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
rm -rf debian/ruby-rspec-core/usr/lib/ruby/vendor_ruby/autotest/
override_dh_auto_clean:
rm -rf man/
- dh_auto_clean
+ DH_RUBY_GEMSPEC=debian/rspec.gemspec dh_auto_clean -pruby-rspec
+ 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
override_dh_installchangelogs:
dh_installchangelogs -pruby-rspec-core rspec-core/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