Skip to content
Snippets Groups Projects
Commit 0927d3be authored by Cédric Boutillier's avatar Cédric Boutillier
Browse files

Replace 2.7.0 in d/rules by theRbConfig::RBCONFIG["ruby_version"] (Closes: #964320)

parent 33a94e58
No related branches found
No related tags found
No related merge requests found
ruby-http-parser (1.2.1-4) UNRELEASED; urgency=medium
[ Pirate Praveen ]
* Allow version from backports to satisfy dependency
[ Cédric Boutillier ]
* Replace hardcoded 2.7.0 version in debian/rules by the output of
RbConfig::RBCONFIG["ruby_version"] (Closes: #964320)
-- Cédric Boutillier <boutil@debian.org> Wed, 26 Aug 2020 11:37:49 +0200
ruby-http-parser (1.2.1-3) unstable; urgency=medium
* Team upload.
......
......@@ -4,12 +4,15 @@
export GEM2DEB_TEST_RUNNER = --check-dependencies
#export DH_RUBY = --gem-install
RUBY_VERSION=`ruby -e 'puts RbConfig::CONFIG["ruby_version"]'`
RUBY_ARCH=`ruby -e 'puts RbConfig::CONFIG["arch"]'`
%:
dh $@ --buildsystem=ruby --with ruby
override_dh_install:
dh_install
mv $(CURDIR)/debian/ruby-http-parser/usr/share/rubygems-integration/2.7.0 \
mv $(CURDIR)/debian/ruby-http-parser/usr/share/rubygems-integration/$(RUBY_VERSION) \
$(CURDIR)/debian/ruby-http-parser/usr/share/rubygems-integration/all
mkdir -p $(CURDIR)/debian/ruby-http-parser/usr/lib/`ruby -e 'puts RbConfig::CONFIG["arch"]'`/ruby/vendor_ruby/
find ext/ -name "libhttp-parser-ext.so" -exec cp "{}" $(CURDIR)/debian/ruby-http-parser/usr/lib/`ruby -e 'puts RbConfig::CONFIG["arch"]'`/ruby/vendor_ruby/ ";"
mkdir -p $(CURDIR)/debian/ruby-http-parser/usr/lib/$(RUBY_ARCH)/ruby/vendor_ruby/
find ext/ -name "libhttp-parser-ext.so" -exec cp "{}" $(CURDIR)/debian/ruby-http-parser/usr/lib/$(RUBY_ARCH)/ruby/vendor_ruby/ ";"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment