[DRE-commits] [ruby-rspec] 16/25: replace upstream gemspec by generated Debian ones
Cédric Boutillier
boutil at moszumanska.debian.org
Sat Mar 28 20:34:13 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 5ef258c5c3ad0637aa84de82ba913e3b47eb782c
Author: Cédric Boutillier <boutil at debian.org>
Date: Wed Mar 25 00:35:24 2015 +0100
replace upstream gemspec by generated Debian ones
---
debian/rules | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/debian/rules b/debian/rules
index bfeb5bc..0445ef4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -103,6 +103,11 @@ override_dh_installman:
dh_installman
override_dh_auto_install:
+ # replace source gemspecs by the interpreted ones
+ for x in rspec rspec-core rspec-expectations rspec-mocks rspec-support; do \
+ [ -f $$x/$$x.gemspec.sav ] || mv $$x/$$x.gemspec $$x/$$x.gemspec.sav; \
+ [ -f $$x/$$x.gemspec ] || ln -s ../debian/$$x.gemspec $$x/$$x.gemspec ; \
+ done
# need to have rspec in bin/ to be correctly autoinstalled
dh_install -pruby-rspec-core rspec-core/exe/rspec usr/bin
# create rspec-mocks/tmp used in tests
@@ -110,6 +115,10 @@ override_dh_auto_install:
dh_auto_install
override_dh_auto_clean:
+ for x in rspec rspec-core rspec-expectations rspec-mocks rspec-support; do \
+ [ -h $$x/$$x.gemspec ] && unlink $$x/$$x.gemspec || true ; \
+ [ -f $$x/$$x.gemspec.sav ] && mv $$x/$$x.gemspec.sav $$x/$$x.gemspec|| true ; \
+ done
rm -rf rspec-core/tmp/
rm -rf rspec-expectations/coverage/
rm -rf rspec-mocks/coverage/
--
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