debian upload 0.29.2-2: goodbye python2 support

Convert to pybuild while we are at it.
This commit is contained in:
David Bremner 2019-11-02 17:33:20 -03:00
parent 1c8d9e172e
commit 2a003f0f50
4 changed files with 13 additions and 23 deletions

8
debian/changelog vendored
View file

@ -1,3 +1,11 @@
notmuch (0.29.2-2) experimental; urgency=medium
* Drop python-notmuch binary package.
* Drop python2 build-dependency (Closes: #937161).
* Convert to pybuild for python bindings
-- David Bremner <bremner@debian.org> Sat, 02 Nov 2019 18:21:06 -0300
notmuch (0.29.2-1) unstable; urgency=medium notmuch (0.29.2-1) unstable; urgency=medium
* New upstream bug fix release: fix file descriptor leak with gzipped * New upstream bug fix release: fix file descriptor leak with gzipped

14
debian/control vendored
View file

@ -14,7 +14,6 @@ Build-Depends:
libgmime-3.0-dev (>= 3.0.3~), libgmime-3.0-dev (>= 3.0.3~),
libtalloc-dev, libtalloc-dev,
libz-dev, libz-dev,
python-all (>= 2.6.6-3~),
python3-all (>= 3.1.2-7~), python3-all (>= 3.1.2-7~),
dh-python, dh-python,
dh-elpa (>= 1.3), dh-elpa (>= 1.3),
@ -73,19 +72,6 @@ Description: thread-based email index, search and tagging (development)
This package provides the necessary development libraries and header This package provides the necessary development libraries and header
files to allow you to develop new software using libnotmuch. files to allow you to develop new software using libnotmuch.
Package: python-notmuch
Architecture: all
Section: python
Depends: ${misc:Depends}, ${python:Depends}, libnotmuch5 (>= ${source:Version})
Description: Python interface to the notmuch mail search and index library
Notmuch is a system for indexing, searching, reading, and tagging
large collections of email messages in maildir or mh format. It uses
the Xapian library to provide fast, full-text search with a very
convenient search syntax.
.
This package provides a Python interface to the notmuch
functionality, directly interfacing with a shared notmuch library.
Package: python3-notmuch Package: python3-notmuch
Architecture: all Architecture: all
Section: python Section: python

View file

@ -1 +0,0 @@
usr/lib/python3*

13
debian/rules vendored
View file

@ -1,9 +1,9 @@
#!/usr/bin/make -f #!/usr/bin/make -f
python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {} export PYBUILD_NAME=notmuch
%: %:
dh $@ --with python2,python3,elpa dh $@ --with python3,elpa
override_dh_auto_configure: override_dh_auto_configure:
BASHCMD=/bin/bash ./configure --prefix=/usr \ BASHCMD=/bin/bash ./configure --prefix=/usr \
@ -17,20 +17,17 @@ override_dh_auto_configure:
override_dh_auto_build: override_dh_auto_build:
dh_auto_build -- V=1 dh_auto_build -- V=1
dh_auto_build --sourcedirectory bindings/python dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python
cd bindings/python && $(python3_all) setup.py build
$(MAKE) -C contrib/notmuch-mutt $(MAKE) -C contrib/notmuch-mutt
override_dh_auto_clean: override_dh_auto_clean:
dh_auto_clean dh_auto_clean
dh_auto_clean --sourcedirectory bindings/python dh_auto_clean --buildsystem=pybuild --sourcedirectory bindings/python
cd bindings/python && $(python3_all) setup.py clean -a
dh_auto_clean --sourcedirectory bindings/ruby dh_auto_clean --sourcedirectory bindings/ruby
$(MAKE) -C contrib/notmuch-mutt clean $(MAKE) -C contrib/notmuch-mutt clean
override_dh_auto_install: override_dh_auto_install:
dh_auto_install dh_auto_install
dh_auto_install --sourcedirectory bindings/python dh_auto_install --buildsystem=pybuild --sourcedirectory bindings/python
cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp
$(MAKE) -C contrib/notmuch-mutt DESTDIR=$(CURDIR)/debian/tmp install $(MAKE) -C contrib/notmuch-mutt DESTDIR=$(CURDIR)/debian/tmp install
dh_auto_install --sourcedirectory bindings/ruby dh_auto_install --sourcedirectory bindings/ruby