Your message dated Sun, 12 May 2013 11:00:07 +0000
with message-id <[email protected]>
and subject line Bug#675702: fixed in xapian-bindings 1.2.15-1
has caused the Debian Bug report #675702,
regarding xapian-bindings: migrate ruby packaging to new Ruby policy
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
675702: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675702
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: xapian-bindings
Version: 1.2.10-1
Severity: normal
Tags: patch

Dear Maintainer,

The Ruby team has formed a new policy for Ruby packaging. A patch is
attached which ports the ruby packaging for xapian-bindings to this new
policy.

For more information see the bits from the Ruby team that discusses the
transition to the new Ruby policy. [0]

[0] https://lists.debian.org/debian-devel-announce/2012/06/msg00001.html


Thanks for your work for Debian!


Best,
Per

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-4-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
>From f26638b87a440794bf074387e981fd5e99fb150b Mon Sep 17 00:00:00 2001
From: Per Andersson <[email protected]>
Date: Sat, 2 Jun 2012 01:07:22 +0200
Subject: [PATCH] Migrate Ruby xapian-bindings to gem2deb.

Introduce ruby-xapian, which is built for all Ruby versions, and create
transitional packages.

Stay backwards compatible with debian/rules maint process for lenny etc.
---
 debian/changelog                       |   18 +++++++++
 debian/control                         |   48 +++++++++++++-----------
 debian/control-ruby-gem2deb.in         |   41 ++++++++++++++++++++
 debian/control.in                      |    1 +
 debian/libxapian-ruby1.8.doc-base      |   13 ------
 debian/libxapian-ruby1.8.doc-base.in   |   13 ++++++
 debian/libxapian-ruby1.8.install       |    3 -
 debian/libxapian-ruby1.8.install.in    |    3 +
 debian/libxapian-ruby1.9.1.doc-base    |   13 ------
 debian/libxapian-ruby1.9.1.doc-base.in |   13 ++++++
 debian/libxapian-ruby1.9.1.install     |    3 -
 debian/libxapian-ruby1.9.1.install.in  |    3 +
 debian/ruby-xapian.doc-base            |   13 ++++++
 debian/ruby-xapian.doc-base.in         |   13 ++++++
 debian/ruby-xapian.install             |    5 ++
 debian/ruby-xapian.install.in          |    5 ++
 debian/rules                           |   64 +++++++++++++++++++++++++++-----
 17 files changed, 208 insertions(+), 64 deletions(-)
 create mode 100644 debian/control-ruby-gem2deb.in
 delete mode 100644 debian/libxapian-ruby1.8.doc-base
 create mode 100644 debian/libxapian-ruby1.8.doc-base.in
 delete mode 100644 debian/libxapian-ruby1.8.install
 create mode 100644 debian/libxapian-ruby1.8.install.in
 delete mode 100644 debian/libxapian-ruby1.9.1.doc-base
 create mode 100644 debian/libxapian-ruby1.9.1.doc-base.in
 delete mode 100644 debian/libxapian-ruby1.9.1.install
 create mode 100644 debian/libxapian-ruby1.9.1.install.in
 create mode 100644 debian/ruby-xapian.doc-base
 create mode 100644 debian/ruby-xapian.doc-base.in
 create mode 100644 debian/ruby-xapian.install
 create mode 100644 debian/ruby-xapian.install.in

diff --git a/debian/changelog b/debian/changelog
index 19a4d66..2289d81 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,21 @@
+xapian-bindings (1.2.10-2) UNRELEASED; urgency=low
+
+  [ Per Andersson ]
+  * Migrate to gem2deb packaging.
+    + Introduce new binary package ruby-xapian which includes bindings for
+      both Ruby 1.8 and 1.9.1.
+    + Install to vendor_ruby dir.
+    + Bump debhelper version dependency to >= 7.0.50~.
+    + Add build dependency on gem2deb >= 0.2.13~.
+    + Add new debian/control-ruby-gem2deb.in file which declares ruby-xapian
+      and transitional packages.
+    + Build for all Ruby versions.
+    + Add transitional packages.
+    + Install to vendorlibdir and vendorarchdir instead of rubylibdir and
+      archdir, respectively.
+
+ -- Olly Betts <[email protected]>  Fri, 01 Jun 2012 12:43:00 +0200
+
 xapian-bindings (1.2.10-1) unstable; urgency=low
 
   * New upstream release.
diff --git a/debian/control b/debian/control
index 6344f62..ac580bc 100644
--- a/debian/control
+++ b/debian/control
@@ -3,8 +3,9 @@ Section: libs
 Priority: optional
 Maintainer: Olly Betts <[email protected]>
 Standards-Version: 3.9.3
-Build-Depends: debhelper (>= 7), python, python-all-dev (>= 2.6.6-3~),   
tcl-dev, ruby1.8-dev, ruby1.9.1-dev, ruby1.8, ruby1.9.1, libxapian-dev (>= 
1.2.10), libxapian-dev (<< 1.3.0), autotools-dev, libxapian-dev (>= 1.2.0-2~)
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.13~), python, 
python-all-dev (>= 2.6.6-3~),   tcl-dev, libxapian-dev (>= 1.2.10), 
libxapian-dev (<< 1.3.0), autotools-dev, libxapian-dev (>= 1.2.0-2~)
 X-Python-Version: >= 2.3
+XS-Ruby-Versions: all
 Homepage: http://xapian.org/
 Vcs-Browser: http://trac.xapian.org/browser/trunk/xapian-bindings
 Vcs-svn: svn://svn.xapian.org/xapian/trunk/xapian-bindings
@@ -51,13 +52,17 @@ Description: Xapian search engine interface for Python
  The Xapian Python bindings provide an interface to the Xapian library from the
  Python programming language, allowing both indexing and retrieval operations.
 
-Package: libxapian-ruby1.8
+Package: ruby-xapian
 Section: ruby
 Architecture: any
-Depends: libruby1.8, ${shlibs:Depends}, ${misc:Depends}
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ruby | ruby-interpeter, ${shlibs:Depends}, ${misc:Depends}
+Replaces: libxapian-ruby1.8 (<< 1.2.10-2~), libxapian-ruby1.9.1 (<< 1.2.10-2~)
+Breaks: libxapian-ruby1.8 (<< 1.2.10-2~), libxapian-ruby1.9.1 (<< 1.2.10-2~)
+Provides: libxapian-ruby1.8, libxapian-ruby1.9.1
 Suggests: xapian-doc
-Description: Xapian search engine interface for Ruby 1.8
- This package provides Xapian Ruby bindings built for Ruby 1.8.
+Description: Xapian search engine interface for Ruby
+ This package provides Xapian Ruby bindings built for Ruby.
  .
  The Xapian search engine library is a highly adaptable toolkit which allows
  developers to easily add advanced indexing and search facilities to their own
@@ -70,21 +75,20 @@ Description: Xapian search engine interface for Ruby 1.8
  The Xapian Ruby bindings provide an interface to the Xapian library from the
  Ruby programming language, allowing both indexing and retrieval operations.
 
+Package: libxapian-ruby1.8
+Section: oldlibs
+Priority: extra
+Architecture: all
+depends: ${misc:Depends}, ruby-xapian
+Description: Transitional package for ruby-xapian
+ This is a transitional package to ease upgrades to ruby-xapian package.
+ It can safely be removed.
+
 Package: libxapian-ruby1.9.1
-Section: ruby
-Architecture: any
-Depends: libruby1.9.1, ${shlibs:Depends}, ${misc:Depends}
-Suggests: xapian-doc
-Description: Xapian search engine interface for Ruby 1.9.1
- This package provides Xapian Ruby bindings built for Ruby 1.9.1.
- .
- The Xapian search engine library is a highly adaptable toolkit which allows
- developers to easily add advanced indexing and search facilities to their own
- applications.  It implements the probabilistic model of information retrieval,
- and provides facilities for performing ranked free-text searches, relevance
- feedback, phrase searching, boolean searching, stemming, and simultaneous
- update and searching.  It is highly scalable, and is capable of working with
- collections containing hundreds of millions of documents.
- .
- The Xapian Ruby bindings provide an interface to the Xapian library from the
- Ruby programming language, allowing both indexing and retrieval operations.
+Section: oldlibs
+Priority: extra
+Architecture: all
+depends: ${misc:Depends}, ruby-xapian
+Description: Transitional package for ruby-xapian
+ This is a transitional package to ease upgrades to ruby-xapian package.
+ It can safely be removed.
diff --git a/debian/control-ruby-gem2deb.in b/debian/control-ruby-gem2deb.in
new file mode 100644
index 0000000..9a6a1f0
--- /dev/null
+++ b/debian/control-ruby-gem2deb.in
@@ -0,0 +1,41 @@
+
+Package: ruby-xapian
+Section: ruby
+Architecture: any
+@XB_RUBY_VERSIONS@
+Depends: ruby | ruby-interpeter, ${shlibs:Depends}, ${misc:Depends}
+Replaces: libxapian-ruby1.8 (<< 1.2.10-2~), libxapian-ruby1.9.1 (<< 1.2.10-2~)
+Breaks: libxapian-ruby1.8 (<< 1.2.10-2~), libxapian-ruby1.9.1 (<< 1.2.10-2~)
+Provides: libxapian-ruby1.8, libxapian-ruby1.9.1
+Suggests: xapian-doc
+Description: Xapian search engine interface for Ruby
+ This package provides Xapian Ruby bindings built for Ruby.
+ .
+ The Xapian search engine library is a highly adaptable toolkit which allows
+ developers to easily add advanced indexing and search facilities to their own
+ applications.  It implements the probabilistic model of information retrieval,
+ and provides facilities for performing ranked free-text searches, relevance
+ feedback, phrase searching, boolean searching, stemming, and simultaneous
+ update and searching.  It is highly scalable, and is capable of working with
+ collections containing hundreds of millions of documents.
+ .
+ The Xapian Ruby bindings provide an interface to the Xapian library from the
+ Ruby programming language, allowing both indexing and retrieval operations.
+
+Package: libxapian-ruby1.8
+Section: oldlibs
+Priority: extra
+Architecture: all
+depends: ${misc:Depends}, ruby-xapian
+Description: Transitional package for ruby-xapian
+ This is a transitional package to ease upgrades to ruby-xapian package.
+ It can safely be removed.
+
+Package: libxapian-ruby1.9.1
+Section: oldlibs
+Priority: extra
+Architecture: all
+depends: ${misc:Depends}, ruby-xapian
+Description: Transitional package for ruby-xapian
+ This is a transitional package to ease upgrades to ruby-xapian package.
+ It can safely be removed.
diff --git a/debian/control.in b/debian/control.in
index cfb67b5..0a1da40 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -5,6 +5,7 @@ Maintainer: Olly Betts <[email protected]>
 Standards-Version: 3.9.3
 Build-Depends: @BUILD_DEPS@ autotools-dev, libxapian-dev (>= 1.2.0-2~)
 @X_PYTHON_VERSION@
+@XS_RUBY_VERSIONS@
 Homepage: http://xapian.org/
 Vcs-Browser: http://trac.xapian.org/browser/trunk/xapian-bindings
 Vcs-svn: svn://svn.xapian.org/xapian/trunk/xapian-bindings
diff --git a/debian/libxapian-ruby1.8.doc-base 
b/debian/libxapian-ruby1.8.doc-base
deleted file mode 100644
index d1b6eda..0000000
--- a/debian/libxapian-ruby1.8.doc-base
+++ /dev/null
@@ -1,13 +0,0 @@
-Document: xapian-ruby-docs
-Title: Using Xapian from Ruby
-Abstract: Documentation on how to use the Xapian search engine library from
- Ruby.
-Section: Programming/Ruby
-
-Format: HTML
-Index: /usr/share/doc/libxapian-ruby1.8/index.html
-Files: /usr/share/doc/libxapian-ruby1.8/index.html
- /usr/share/doc/libxapian-ruby1.8/rdocs/*.html
- /usr/share/doc/libxapian-ruby1.8/rdocs/*/*.html
- /usr/share/doc/libxapian-ruby1.8/rdocs/*/*/*.html
- /usr/share/doc/libxapian-ruby1.8/rdocs/*/*/*/*.html
diff --git a/debian/libxapian-ruby1.8.doc-base.in 
b/debian/libxapian-ruby1.8.doc-base.in
new file mode 100644
index 0000000..d1b6eda
--- /dev/null
+++ b/debian/libxapian-ruby1.8.doc-base.in
@@ -0,0 +1,13 @@
+Document: xapian-ruby-docs
+Title: Using Xapian from Ruby
+Abstract: Documentation on how to use the Xapian search engine library from
+ Ruby.
+Section: Programming/Ruby
+
+Format: HTML
+Index: /usr/share/doc/libxapian-ruby1.8/index.html
+Files: /usr/share/doc/libxapian-ruby1.8/index.html
+ /usr/share/doc/libxapian-ruby1.8/rdocs/*.html
+ /usr/share/doc/libxapian-ruby1.8/rdocs/*/*.html
+ /usr/share/doc/libxapian-ruby1.8/rdocs/*/*/*.html
+ /usr/share/doc/libxapian-ruby1.8/rdocs/*/*/*/*.html
diff --git a/debian/libxapian-ruby1.8.install b/debian/libxapian-ruby1.8.install
deleted file mode 100644
index 0488963..0000000
--- a/debian/libxapian-ruby1.8.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/lib/ruby/1.8
-usr/share/doc/xapian-bindings-ruby1.8/ruby/* usr/share/doc/libxapian-ruby1.8
-usr/share/doc/xapian-bindings-ruby1.8/ruby/examples/*.rb 
usr/share/doc/libxapian-ruby1.8/examples
diff --git a/debian/libxapian-ruby1.8.install.in 
b/debian/libxapian-ruby1.8.install.in
new file mode 100644
index 0000000..0488963
--- /dev/null
+++ b/debian/libxapian-ruby1.8.install.in
@@ -0,0 +1,3 @@
+usr/lib/ruby/1.8
+usr/share/doc/xapian-bindings-ruby1.8/ruby/* usr/share/doc/libxapian-ruby1.8
+usr/share/doc/xapian-bindings-ruby1.8/ruby/examples/*.rb 
usr/share/doc/libxapian-ruby1.8/examples
diff --git a/debian/libxapian-ruby1.9.1.doc-base 
b/debian/libxapian-ruby1.9.1.doc-base
deleted file mode 100644
index 0805768..0000000
--- a/debian/libxapian-ruby1.9.1.doc-base
+++ /dev/null
@@ -1,13 +0,0 @@
-Document: xapian-ruby-docs-1.9
-Title: Using Xapian from Ruby 1.9
-Abstract: Documentation on how to use the Xapian search engine library from
- Ruby 1.9.
-Section: Programming/Ruby
-
-Format: HTML
-Index: /usr/share/doc/libxapian-ruby1.9.1/index.html
-Files: /usr/share/doc/libxapian-ruby1.9.1/index.html
- /usr/share/doc/libxapian-ruby1.9.1/rdocs/*.html
- /usr/share/doc/libxapian-ruby1.9.1/rdocs/*/*.html
- /usr/share/doc/libxapian-ruby1.9.1/rdocs/*/*/*.html
- /usr/share/doc/libxapian-ruby1.9.1/rdocs/*/*/*/*.html
diff --git a/debian/libxapian-ruby1.9.1.doc-base.in 
b/debian/libxapian-ruby1.9.1.doc-base.in
new file mode 100644
index 0000000..0805768
--- /dev/null
+++ b/debian/libxapian-ruby1.9.1.doc-base.in
@@ -0,0 +1,13 @@
+Document: xapian-ruby-docs-1.9
+Title: Using Xapian from Ruby 1.9
+Abstract: Documentation on how to use the Xapian search engine library from
+ Ruby 1.9.
+Section: Programming/Ruby
+
+Format: HTML
+Index: /usr/share/doc/libxapian-ruby1.9.1/index.html
+Files: /usr/share/doc/libxapian-ruby1.9.1/index.html
+ /usr/share/doc/libxapian-ruby1.9.1/rdocs/*.html
+ /usr/share/doc/libxapian-ruby1.9.1/rdocs/*/*.html
+ /usr/share/doc/libxapian-ruby1.9.1/rdocs/*/*/*.html
+ /usr/share/doc/libxapian-ruby1.9.1/rdocs/*/*/*/*.html
diff --git a/debian/libxapian-ruby1.9.1.install 
b/debian/libxapian-ruby1.9.1.install
deleted file mode 100644
index 1cc8219..0000000
--- a/debian/libxapian-ruby1.9.1.install
+++ /dev/null
@@ -1,3 +0,0 @@
-usr/lib/ruby/1.9.1
-usr/share/doc/xapian-bindings-ruby1.9.1/ruby/* 
usr/share/doc/libxapian-ruby1.9.1
-usr/share/doc/xapian-bindings-ruby1.9.1/ruby/examples/*.rb 
usr/share/doc/libxapian-ruby1.9.1/examples
diff --git a/debian/libxapian-ruby1.9.1.install.in 
b/debian/libxapian-ruby1.9.1.install.in
new file mode 100644
index 0000000..1cc8219
--- /dev/null
+++ b/debian/libxapian-ruby1.9.1.install.in
@@ -0,0 +1,3 @@
+usr/lib/ruby/1.9.1
+usr/share/doc/xapian-bindings-ruby1.9.1/ruby/* 
usr/share/doc/libxapian-ruby1.9.1
+usr/share/doc/xapian-bindings-ruby1.9.1/ruby/examples/*.rb 
usr/share/doc/libxapian-ruby1.9.1/examples
diff --git a/debian/ruby-xapian.doc-base b/debian/ruby-xapian.doc-base
new file mode 100644
index 0000000..bb3edc0
--- /dev/null
+++ b/debian/ruby-xapian.doc-base
@@ -0,0 +1,13 @@
+Document: xapian-ruby-docs
+Title: Using Xapian from Ruby
+Abstract: Documentation on how to use the Xapian search engine library from
+ Ruby.
+Section: Programming/Ruby
+
+Format: HTML
+Index: /usr/share/doc/ruby-xapian/index.html
+Files: /usr/share/doc/ruby-xapian/index.html
+ /usr/share/doc/ruby-xapian/rdocs/*.html
+ /usr/share/doc/ruby-xapian/rdocs/*/*.html
+ /usr/share/doc/ruby-xapian/rdocs/*/*/*.html
+ /usr/share/doc/ruby-xapian/rdocs/*/*/*/*.html
diff --git a/debian/ruby-xapian.doc-base.in b/debian/ruby-xapian.doc-base.in
new file mode 100644
index 0000000..bb3edc0
--- /dev/null
+++ b/debian/ruby-xapian.doc-base.in
@@ -0,0 +1,13 @@
+Document: xapian-ruby-docs
+Title: Using Xapian from Ruby
+Abstract: Documentation on how to use the Xapian search engine library from
+ Ruby.
+Section: Programming/Ruby
+
+Format: HTML
+Index: /usr/share/doc/ruby-xapian/index.html
+Files: /usr/share/doc/ruby-xapian/index.html
+ /usr/share/doc/ruby-xapian/rdocs/*.html
+ /usr/share/doc/ruby-xapian/rdocs/*/*.html
+ /usr/share/doc/ruby-xapian/rdocs/*/*/*.html
+ /usr/share/doc/ruby-xapian/rdocs/*/*/*/*.html
diff --git a/debian/ruby-xapian.install b/debian/ruby-xapian.install
new file mode 100644
index 0000000..f9c0140
--- /dev/null
+++ b/debian/ruby-xapian.install
@@ -0,0 +1,5 @@
+usr/lib/ruby/vendor_ruby/1.8/xapian.rb usr/lib/ruby/vendor_ruby
+usr/lib/ruby/vendor_ruby/1.8/i486-linux
+usr/lib/ruby/vendor_ruby/1.9.1/i486-linux
+usr/share/doc/xapian-bindings-ruby1.8/ruby/* usr/share/doc/ruby-xapian
+usr/share/doc/xapian-bindings-ruby1.8/ruby/examples/*.rb 
usr/share/doc/ruby-xapian/examples
diff --git a/debian/ruby-xapian.install.in b/debian/ruby-xapian.install.in
new file mode 100644
index 0000000..f9c0140
--- /dev/null
+++ b/debian/ruby-xapian.install.in
@@ -0,0 +1,5 @@
+usr/lib/ruby/vendor_ruby/1.8/xapian.rb usr/lib/ruby/vendor_ruby
+usr/lib/ruby/vendor_ruby/1.8/i486-linux
+usr/lib/ruby/vendor_ruby/1.9.1/i486-linux
+usr/share/doc/xapian-bindings-ruby1.8/ruby/* usr/share/doc/ruby-xapian
+usr/share/doc/xapian-bindings-ruby1.8/ruby/examples/*.rb 
usr/share/doc/ruby-xapian/examples
diff --git a/debian/rules b/debian/rules
index 34f633c..c8ddda7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -36,7 +36,7 @@ XAPIAN_VERSION_CEILING := $(shell echo 
'$(XAPIAN_VERSION)'|awk -F. '{print $$1".
 # `--exclude=.EXT' arguments to pass dh_install
 DH_INSTALL_EXCLUDE := --exclude=.pyc --exclude=.pyo
 
-BUILD_DEPS := debhelper (>= 7),
+BUILD_DEPS := debhelper (>= 7.0.50~),
 
 # Disabled due to incompatibility of GPL and PHP licence.  Uncomment to build
 # your own binary packages (just don't distribute them!)
@@ -44,8 +44,15 @@ BUILD_DEPS := debhelper (>= 7),
 
 ifeq ($(findstring .$(CODENAME)., .lenny.hardy.intrepid.jaunty.), )
 RUBY_VERSIONS := 1.8 1.9.1
+BUILD_DEPS += gem2deb (>= 0.2.13~),
+XB_RUBY_VERSIONS := XB-Ruby-Versions: $${ruby:Versions}
+XS_RUBY_VERSIONS := XS-Ruby-Versions: all
 else
 RUBY_VERSIONS := 1.8
+# Only the first % in the replacement part is substituted, so we need to do
+# this in two goes.
+BUILD_DEPS += $(RUBY_VERSIONS:%=ruby%-dev,)
+BUILD_DEPS += $(RUBY_VERSIONS:%=ruby%,)
 endif
 
 # The python versions to build for:
@@ -114,13 +121,6 @@ BUILD_DEPS += $(PHP_VERSIONS:%=php%-cli,)
 BUILD_DEPS += tcl-dev,# NB Trailing ',' required here!
 TCLSH=/usr/bin/tclsh-default
 
-# Build depends for Ruby.
-#
-# Only the first % in the replacement part is substituted, so we need to do
-# this in two goes.
-BUILD_DEPS += $(RUBY_VERSIONS:%=ruby%-dev,)
-BUILD_DEPS += $(RUBY_VERSIONS:%=ruby%,)
-
 # We need a versioned build dependency on libxapian-dev.
 # NB Trailing ',' required here!
 BUILD_DEPS += \
@@ -140,21 +140,56 @@ maint: debian/control
 
 maintclean: clean
        rm -f debian/control
+       rm -f debian/libxapian-ruby1.8.doc-base
+       rm -f debian/libxapian-ruby1.8.install
+       rm -f debian/libxapian-ruby1.9.1.doc-base
+       rm -f debian/libxapian-ruby1.9.1.install
+       rm -f debian/ruby-xapian.doc-base
+       rm -f debian/ruby-xapian.install
 
 debian/control: debian/rules debian/control.in
        rm -f debian/control.tmp
+ifdef XS_RUBY_VERSIONS
+       sed -e 's/@BUILD_DEPS@/$(BUILD_DEPS)/g' \
+           -e 's/@X_PYTHON_VERSION@/$(X_PYTHON_VERSION)/g' \
+           -e 's/@XB_PYTHON_VERSION@/$(XB_PYTHON_VERSION)/g' \
+           -e 's/@XS_RUBY_VERSIONS@/$(XS_RUBY_VERSIONS)/g' \
+           < debian/control.in > debian/control.tmp
+else
        sed -e 's/@BUILD_DEPS@/$(BUILD_DEPS)/g' \
            -e 's/@X_PYTHON_VERSION@/$(X_PYTHON_VERSION)/g' \
            -e 's/@XB_PYTHON_VERSION@/$(XB_PYTHON_VERSION)/g' \
+           -e '/@XS_RUBY_VERSIONS@/d' \
            < debian/control.in > debian/control.tmp
+endif
        for v in $(PHP_VERSIONS); do \
            sed "s/@PHP_VERSION@/$$v/g" debian/control-php.in ;\
        done >> debian/control.tmp
+ifdef XB_RUBY_VERSIONS
+       sed -e 's/@XB_RUBY_VERSIONS@/$(XB_RUBY_VERSIONS)/g' \
+           < debian/control-ruby-gem2deb.in >> debian/control.tmp
+       cp debian/ruby-xapian.doc-base.in debian/ruby-xapian.doc-base
+       cp debian/ruby-xapian.install.in debian/ruby-xapian.install
+else
        for v in $(RUBY_VERSIONS); do \
            sed "s/@RUBY_VERSION@/$$v/g" debian/control-ruby.in ;\
        done >> debian/control.tmp
+       # install files to old packages
+       cp debian/libxapian-ruby1.8.doc-base.in 
debian/libxapian-ruby1.8.doc-base
+       cp debian/libxapian-ruby1.8.install.in debian/libxapian-ruby1.8.install
+       cp debian/libxapian-ruby1.9.1.doc-base.in 
debian/libxapian-ruby1.9.1.doc-base
+       cp debian/libxapian-ruby1.9.1.install.in 
debian/libxapian-ruby1.9.1.install
+endif
        mv debian/control.tmp debian/control
 
+ifdef XS_RUBY_VERSIONS
+rubylibdir := 'puts Config::CONFIG["vendorlibdir"]'
+rubyarchdir := 'puts Config::CONFIG["vendorarchdir"]'
+else
+rubylibdir := 'puts Config::CONFIG["rubylibdir"]'
+rubyarchdir := 'puts Config::CONFIG["archdir"]'
+endif
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir
@@ -193,8 +228,9 @@ configure-stamp:
            ../../../configure $(commonconfflags) --with-ruby \
                --docdir=/usr/share/doc/xapian-bindings-ruby$$v \
                RUBY=$$RUBY \
-               RUBY_LIB=`$$RUBY -rrbconfig -e 'puts 
Config::CONFIG["rubylibdir"]'` \
-               RUBY_LIB_ARCH=`$$RUBY -rrbconfig -e 'puts 
Config::CONFIG["archdir"]'`; \
+               RUBY_LIB=`$$RUBY -rrbconfig -e $(rubylibdir)` \
+               RUBY_LIB_ARCH=`$$RUBY -rrbconfig -e $(rubyarchdir)`; \
+               echo $$RUBY_LIB $$RUBY_LIB_ARCH; \
            cd ../../..; \
        done
 
@@ -264,6 +300,14 @@ install: build
            set -e; \
            $(MAKE) -C debian/build/ruby$$v DESTDIR=$(CURDIR)/debian/tmp 
install; \
        done
+ifdef XB_RUBY_VERSIONS
+       # Only need one xapian.rb for ruby-xapian, and we install version 1.8 
and
+       # remove 1.9.1. They are exactly the same anyway.
+       rm $(CURDIR)/debian/tmp/usr/lib/ruby/vendor_ruby/1.9.1/xapian.rb
+       # The same goes for the docs. Docs for 1.8 are installed by
+       # ruby-xapian.install.
+       rm -r $(CURDIR)/debian/tmp/usr/share/doc/xapian-bindings-ruby1.9.1
+endif
 
        $(MAKE) -C debian/build/tcl DESTDIR=$(CURDIR)/debian/tmp install
 
-- 
1.7.7.3


--- End Message ---
--- Begin Message ---
Source: xapian-bindings
Source-Version: 1.2.15-1

We believe that the bug you reported is fixed in the latest version of
xapian-bindings, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Olly Betts <[email protected]> (supplier of updated xapian-bindings package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 11 May 2013 03:42:04 +0000
Source: xapian-bindings
Binary: tclxapian python-xapian ruby-xapian libxapian-ruby1.8 
libxapian-ruby1.9.1
Architecture: source amd64 all
Version: 1.2.15-1
Distribution: unstable
Urgency: low
Maintainer: Olly Betts <[email protected]>
Changed-By: Olly Betts <[email protected]>
Description: 
 libxapian-ruby1.8 - Transitional package for ruby-xapian
 libxapian-ruby1.9.1 - Transitional package for ruby-xapian
 python-xapian - Xapian search engine interface for Python
 ruby-xapian - Xapian search engine interface for Ruby
 tclxapian  - Xapian search engine interface for Tcl
Closes: 675702
Changes: 
 xapian-bindings (1.2.15-1) unstable; urgency=low
 .
   * New upstream release.
   * Update to new Ruby packaging policy (based on patch from Per Andersson).
     (Closes: #675702)
   * debian/control.in: Standards-Version: 3.9.4 (no changes required).
   * debian/rules: Fix binary-arch to depend on build-arch (instead of build).
   * debian/rules: Remove code which aided backporting to Ubuntu hardy.
   * debian/copyright: Update to include 2013.
Checksums-Sha1: 
 07e55bdb6bc760c0a775bd36687696ec1caafa77 2272 xapian-bindings_1.2.15-1.dsc
 88424067be668f3566b5921099d82032a7a88289 1484058 
xapian-bindings_1.2.15.orig.tar.gz
 96d9c2794f991d90de1245f81f17e5f8565dba18 17819 
xapian-bindings_1.2.15-1.debian.tar.gz
 87c606ccef0993161ba478d12f552e8098374ed8 264366 tclxapian_1.2.15-1_amd64.deb
 9bc93b5b71c089dd5979166f3b53b19dc7390bc2 383024 
python-xapian_1.2.15-1_amd64.deb
 903c412a88bc8bf318959d2a33295f1f15dd4ee6 450264 ruby-xapian_1.2.15-1_amd64.deb
 d1156ebb4b1f8de378d4df76aaf38d957939beda 766 libxapian-ruby1.8_1.2.15-1_all.deb
 940d6e5c788e9d24131fee2b80d21d46fa4de166 768 
libxapian-ruby1.9.1_1.2.15-1_all.deb
Checksums-Sha256: 
 006649890a30aa95ed3e61b266120aa161252dbb21f530ad9b09e99103522c39 2272 
xapian-bindings_1.2.15-1.dsc
 89d30cbd38dcfb9d9e0fccc8e4ba7d6452ffad45afb3f1e9614a3be0a3a33e77 1484058 
xapian-bindings_1.2.15.orig.tar.gz
 3c0cfca7b9bd220f5a670ca4a2599dbefabe2ab659e83466f9448f532cdbe2e0 17819 
xapian-bindings_1.2.15-1.debian.tar.gz
 f1db77eb3e8bdb74e4f03652dbc87591e2ed386121a84d8eab1bc490d21e8b91 264366 
tclxapian_1.2.15-1_amd64.deb
 8fcd2e43a289e2fb8aa6e2aa69b3d9b189115151d258df6d22223b40d71ffc55 383024 
python-xapian_1.2.15-1_amd64.deb
 b810c3bef1889f9bc902eb250a2153c54ed9660ed3b9eb5fee40e85c93a37cb2 450264 
ruby-xapian_1.2.15-1_amd64.deb
 399c9812e4c4ad7b1ad99c7526c9cb7857fd584632d78aa624c70a744d69553a 766 
libxapian-ruby1.8_1.2.15-1_all.deb
 6cdc1ed1cb2c44e2aec04cff98968096bb7c463d830d6f703cf5ca315eb38077 768 
libxapian-ruby1.9.1_1.2.15-1_all.deb
Files: 
 d27faff61a0e2794ba0e36dce7b5b5f0 2272 libs optional 
xapian-bindings_1.2.15-1.dsc
 03833f106b5f681daa73a2bbaadec458 1484058 libs optional 
xapian-bindings_1.2.15.orig.tar.gz
 75c28f4d72c9ece54444c05b73ff6aee 17819 libs optional 
xapian-bindings_1.2.15-1.debian.tar.gz
 c9febc6d1064a8d5267ca4c3a0d6e1e2 264366 libs optional 
tclxapian_1.2.15-1_amd64.deb
 6c5b3c2defd59acaf03036cd3cab720b 383024 python optional 
python-xapian_1.2.15-1_amd64.deb
 1019bee94246dcc5202cc982e2ec6bfe 450264 ruby optional 
ruby-xapian_1.2.15-1_amd64.deb
 34ae614334bbcc7055ca530354fce605 766 oldlibs extra 
libxapian-ruby1.8_1.2.15-1_all.deb
 42bebfc0d9b308888aa5657ea8fb8ed7 768 oldlibs extra 
libxapian-ruby1.9.1_1.2.15-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJRjeICAAoJEBgUewc7rSsHHQAP/27iTtBErAqm+dWtmaatf5eN
Z9T+ilKriGMYEVAFHO1z/3qQVpHcPBEFOPjCCWQsphACm8zU2KEc929fawRUs06P
yOKmqiqY978jGT5lN92XpTwAPaEY1yNC8naLPJ1zWVPGyZFzZeKz9xK7BtQ6/Pxu
iCdObT8GJP3EOBMZ7CdS2m+wW/WRd03s9LWmrjozKmTpXDtOLy476eV6vOelTcBh
z6p+q3zH3Hg57yDnpUxfLzpfwXHFZyMa/9SOrEwehm58Mwp+zUvmTyXMMEZ9fWXm
B57G6vfoBH5Bi7uUdPvQ/OMXy8Juw6zdOhEpitDlSish1GUqqEthVXZ000RZKj7X
BiGTPegEiQpJTGiOV9lePSbjhZHP8F4AOwG5bRkwvq2UGx9Lo5F/g2azFBs9kEw1
JDs2UVHSLlMkaeZZL0vAilJY8o9fvoxrG5PI57OhVm8pC9jZKzCaXBr7+dAqmzpr
9uFzNlbwXFbxIj53GMF4Gd8ndNSoLH1qRfNyvFYsZB1LDCIc8kOudjpoCN29lKGj
PDGytgd/rKZyju6f40kx6yoIjMddKpbx9EDWjzc92ihmNIiU4DHTXNz3kG2t1J4R
ce2KZioA++symUoQ6F6I+1DdPF625+mPcfCTLGrQEhJSatcnxl77+RQZeJhOA9Mm
xKOOBedpxZlSMxi0nPdQ
=H1nH
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to