Package: libaugeas-ruby Version: 0.4.1-1.1 Severity: important Dear Maintainer,
thank you for maintaining a Ruby library. Please consider repackaging your library to conform t the new Ruby packaging scheme. One of the benefits of the new scheme is better support for multiple Ruby interpreter versions, and reduced effort on your side to support new interpreter versions. It is expected that 1.8 will be removed in the jessie phase, and 2.0 might become the new default interpreter. More info on the new scheme can be found here: http://wiki.debian.org/Teams/Ruby/Drafts/StateOfTransitionNewPolicy http://wiki.debian.org/Teams/Ruby/Packaging#Guidelines_for_Ruby_packaging I've attached a patch that should accomplish most of the effort to convert your package. Note that the change renames the source package, so you'll have to cp the orig.tar.gz and so on as well. Thanks, Christian [Severity: important because of the upcoming 1.8 removal.]
diff -Nru libaugeas-ruby-0.4.1/debian/changelog ruby-augeas-0.4.1/debian/changelog --- libaugeas-ruby-0.4.1/debian/changelog 2012-07-17 04:23:28.000000000 +0200 +++ ruby-augeas-0.4.1/debian/changelog 2013-05-08 01:30:29.000000000 +0200 @@ -1,3 +1,11 @@ +ruby-augeas (0.4.1-1.2) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Rename to ruby-augeas. + * Convert to new Ruby policy. + + -- Christian Hofstaedtler <christ...@hofstaedtler.name> Wed, 08 May 2013 01:30:03 +0200 + libaugeas-ruby (0.4.1-1.1) unstable; urgency=low * Non-maintainer upload. diff -Nru libaugeas-ruby-0.4.1/debian/control ruby-augeas-0.4.1/debian/control --- libaugeas-ruby-0.4.1/debian/control 2012-07-17 02:24:26.000000000 +0200 +++ ruby-augeas-0.4.1/debian/control 2013-05-08 01:29:24.000000000 +0200 @@ -1,38 +1,44 @@ -Source: libaugeas-ruby +Source: ruby-augeas Section: ruby Priority: optional Maintainer: Matt Palmer <mpal...@debian.org> -Build-Depends: debhelper (>= 8), ruby1.8, ruby1.8-dev, ruby1.9.1, ruby1.9.1-dev, libaugeas-dev (>= 0.6.0), pkg-config +Build-Depends: debhelper (>= 8), libaugeas-dev (>= 0.6.0), pkg-config, gem2deb (>= 0.3.0~), ruby-minitest Standards-Version: 3.9.3 Homepage: http://augeas.net/ +XS-Ruby-Versions: all -Package: libaugeas-ruby +Package: ruby-augeas Architecture: all -Depends: libaugeas-ruby1.9.1, ${misc:Depends} +XB-Ruby-Versions: ${ruby:Versions} +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: libaugeas-ruby (<< 0.4.1-1.2~), libaugeas-ruby1.8 (<< 0.4.1-1.2~), libaugeas-ruby1.9.1 (<< 0.4.1-1.2~) +Conflicts: libaugeas-ruby (<< 0.4.1-1.2~), libaugeas-ruby1.8 (<< 0.4.1-1.2~), libaugeas-ruby1.9.1 (<< 0.4.1-1.2~) +Breaks: libaugeas-ruby (<< 0.4.1-1.2~), libaugeas-ruby1.8 (<< 0.4.1-1.2~), libaugeas-ruby1.9.1 (<< 0.4.1-1.2~) Description: Augeas bindings for the Ruby language Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by populating this tree and saving it back into native config files. - . - This is a dependency package which depends on Debian's default Ruby version - (currently 1.9.1). + +Package: libaugeas-ruby +Section: oldlibs +Architecture: all +Depends: ruby-augeas, ${misc:Depends} +Description: Transitional package for ruby-augeas + This is a transitional package to ease upgrades to the ruby-augeas + package. It can safely be removed. Package: libaugeas-ruby1.8 -Architecture: any -Depends: ruby1.8, ${shlibs:Depends}, ${misc:Depends} -Description: Augeas bindings for the Ruby language - Augeas is a configuration editing tool. It parses configuration files in their - native formats and transforms them into a tree. Configuration changes are made - by populating this tree and saving it back into native config files. - . - This package provides a Ruby 1.8 interface to the Augeas API. +Section: oldlibs +Architecture: all +Depends: ruby-augeas, ${misc:Depends} +Description: Transitional package for ruby-augeas + This is a transitional package to ease upgrades to the ruby-augeas + package. It can safely be removed. Package: libaugeas-ruby1.9.1 -Architecture: any -Depends: ruby1.9.1, ${shlibs:Depends}, ${misc:Depends} -Description: Augeas bindings for the Ruby language - Augeas is a configuration editing tool. It parses configuration files in their - native formats and transforms them into a tree. Configuration changes are made - by populating this tree and saving it back into native config files. - . - This package provides a Ruby 1.9.1 interface to the Augeas API. +Section: oldlibs +Architecture: all +Depends: ruby-augeas, ${misc:Depends} +Description: Transitional package for ruby-augeas + This is a transitional package to ease upgrades to the ruby-augeas + package. It can safely be removed. diff -Nru libaugeas-ruby-0.4.1/debian/libaugeas-ruby1.8.docs ruby-augeas-0.4.1/debian/libaugeas-ruby1.8.docs --- libaugeas-ruby-0.4.1/debian/libaugeas-ruby1.8.docs 2012-04-21 15:21:58.000000000 +0200 +++ ruby-augeas-0.4.1/debian/libaugeas-ruby1.8.docs 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -README.rdoc -NEWS diff -Nru libaugeas-ruby-0.4.1/debian/libaugeas-ruby1.9.1.docs ruby-augeas-0.4.1/debian/libaugeas-ruby1.9.1.docs --- libaugeas-ruby-0.4.1/debian/libaugeas-ruby1.9.1.docs 2012-04-21 15:21:47.000000000 +0200 +++ ruby-augeas-0.4.1/debian/libaugeas-ruby1.9.1.docs 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -README.rdoc -NEWS diff -Nru libaugeas-ruby-0.4.1/debian/ruby-augeas.docs ruby-augeas-0.4.1/debian/ruby-augeas.docs --- libaugeas-ruby-0.4.1/debian/ruby-augeas.docs 1970-01-01 01:00:00.000000000 +0100 +++ ruby-augeas-0.4.1/debian/ruby-augeas.docs 2012-04-21 15:21:58.000000000 +0200 @@ -0,0 +1,2 @@ +README.rdoc +NEWS diff -Nru libaugeas-ruby-0.4.1/debian/ruby-test-files.yaml ruby-augeas-0.4.1/debian/ruby-test-files.yaml --- libaugeas-ruby-0.4.1/debian/ruby-test-files.yaml 1970-01-01 01:00:00.000000000 +0100 +++ ruby-augeas-0.4.1/debian/ruby-test-files.yaml 2013-05-08 01:02:41.000000000 +0200 @@ -0,0 +1,2 @@ +--- +- tests/tc_augeas.rb diff -Nru libaugeas-ruby-0.4.1/debian/rules ruby-augeas-0.4.1/debian/rules --- libaugeas-ruby-0.4.1/debian/rules 2012-04-21 15:25:07.000000000 +0200 +++ ruby-augeas-0.4.1/debian/rules 2013-05-08 01:18:42.000000000 +0200 @@ -1,39 +1,7 @@ #!/usr/bin/make -f - -# Fkkn. Ruby. -DEB_RUBY18_LIBDIR=$(strip $(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')) -DEB_RUBY18_ARCHDIR=$(strip $(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["archdir"]')) -DEB_RUBY191_LIBDIR=$(strip $(shell ruby1.9.1 -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')) -DEB_RUBY191_ARCHDIR=$(strip $(shell ruby1.9.1 -rrbconfig -e 'puts Config::CONFIG["archdir"]')) +# Tests fail on 1.8, but let's hope 1.8 goes away soon. +export DH_RUBY_IGNORE_TESTS=ruby1.8 %: - dh $@ - -override_dh_auto_configure: - mkdir -p build/ruby1.8 - mkdir -p build/ruby1.9.1 - (cd build/ruby1.8; ruby1.8 ../../ext/augeas/extconf.rb --prefix=/usr) - (cd build/ruby1.9.1; ruby1.9.1 ../../ext/augeas/extconf.rb --prefix=/usr) - -override_dh_auto_build: - make -C build/ruby1.8 - make -C build/ruby1.9.1 - -override_dh_auto_clean: - dh_auto_clean - rm -rf build - -override_dh_install: - (cd build/ruby1.8; \ - make install DESTDIR=$(CURDIR)/debian/libaugeas-ruby1.8 \ - sitelibdir=$(CURDIR)/debian/libaugeas-ruby1.8/$(DEB_RUBY18_LIBDIR) \ - sitearchdir=$(CURDIR)/debian/libaugeas-ruby1.8/$(DEB_RUBY18_ARCHDIR) \ - ) - install -m0644 lib/augeas.rb $(CURDIR)/debian/libaugeas-ruby1.8/$(DEB_RUBY18_LIBDIR) + dh $@ --buildsystem=ruby --with ruby - (cd build/ruby1.9.1; \ - make install DESTDIR=$(CURDIR)/debian/libaugeas-ruby1.9.1 \ - sitelibdir=$(CURDIR)/debian/libaugeas-ruby1.9.1/$(DEB_RUBY191_LIBDIR) \ - sitearchdir=$(CURDIR)/debian/libaugeas-ruby1.9.1/$(DEB_RUBY191_ARCHDIR) \ - ) - install -m0644 lib/augeas.rb $(CURDIR)/debian/libaugeas-ruby1.9.1/$(DEB_RUBY191_LIBDIR)