[DRE-commits] [ruby-minitar] 06/10: Add transitional package ruby-archive-tar-minitar
Markus Frosch
lazyfrosch at moszumanska.debian.org
Sun Jan 24 10:52:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
lazyfrosch pushed a commit to branch master
in repository ruby-minitar.
commit 5a3d94977a1c0592f08d86441bee44f6a79e0b8e
Author: Markus Frosch <markus at lazyfrosch.de>
Date: Thu Dec 17 12:42:10 2015 +0100
Add transitional package ruby-archive-tar-minitar
---
debian/control | 22 ++++++++++++++++++++--
debian/rules | 12 ++++++++++++
2 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 5cdc0b6..7d1ad9f 100644
--- a/debian/control
+++ b/debian/control
@@ -18,11 +18,29 @@ Package: ruby-minitar
Architecture: all
XB-Ruby-Versions: ${ruby:Versions}
Depends: ruby | ruby-interpreter,
- ${misc:Depends},
- ${shlibs:Depends}
+ ${misc:Depends}
+Replaces: ruby-archive-tar-minitar
+Breaks: ruby-archive-tar-minitar (<< 0.5.4)
Description: Provides POSIX tarchive management for Ruby
Archive::Tar::Minitar is a pure-Ruby library and command-line utility that
provides the ability to deal with POSIX tar(1) archive files.
.
The implementation is based heavily on Mauricio Ferna'ndez's implementation in
rpa-base, but has been reorganised to promote reuse in other projects.
+
+Package: ruby-archive-tar-minitar
+Section: oldlibs
+Priority: extra
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ruby-minitar (= ${binary:Version}),
+ ${misc:Depends}
+Description: Provides POSIX tarchive management for Ruby - transitional package
+ Archive::Tar::Minitar is a pure-Ruby library and command-line utility that
+ provides the ability to deal with POSIX tar(1) archive files.
+ .
+ The implementation is based heavily on Mauricio Ferna'ndez's implementation in
+ rpa-base, but has been reorganised to promote reuse in other projects.
+ .
+ This is a transitional package for the old upstream name, also providing a
+ gemspec, so the old gem name can still be used.
diff --git a/debian/rules b/debian/rules
index 3454d59..29f88eb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,5 +2,17 @@
export GEM2DEB_TEST_RUNNER = --check-dependencies
+GEMSPECPATH := usr/share/rubygems-integration/all/specifications
+DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
+VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*//')
+
%:
dh $@ --buildsystem=ruby --with ruby
+
+override_dh_install:
+ dh_install
+ # create gemspec for ruby-archive-tar-minitar
+ mkdir -p debian/ruby-archive-tar-minitar/$(GEMSPECPATH)/
+ sed -e 's/s\.name = "minitar"/s.name = "ruby-archive-tar-minitar"/' \
+ debian/ruby-minitar/$(GEMSPECPATH)/minitar-$(VERSION).gemspec \
+ > debian/ruby-archive-tar-minitar/$(GEMSPECPATH)/ruby-archive-tar-minitar-$(VERSION).gemspec
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-minitar.git
More information about the Pkg-ruby-extras-commits
mailing list