diff options
author | James McCoy <jamessan@debian.org> | 2020-10-31 12:00:40 -0400 |
---|---|---|
committer | James McCoy <jamessan@debian.org> | 2020-10-31 12:00:40 -0400 |
commit | 364c380334fa2b05ab8b6762cd0a38773aa664b8 (patch) | |
tree | 1bc003f7e9e142ff46598c07bf9245e0ba35f036 | |
parent | ba067b64cb1dfd6b2bdbfe0e5372464aa4f814dd (diff) |
Rename python suffixes to the versioned python suffix
Thanks: Matthias Klose for the patch
Closes: #972197
Signed-off-by: James McCoy <jamessan@debian.org>
-rwxr-xr-x | debian/rules | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index c59af6b..995c699 100755 --- a/debian/rules +++ b/debian/rules @@ -289,9 +289,14 @@ override_dh_auto_install-arch: ifdef DEB_OPT_WITH_PYTHON $(call allpy, \ + set -e; \ $(MAKE) -C $(DEB_BUILDDIR) install-swig-py DESTDIR=$(CURDIR)/debian/tmp \ PYTHON=python$$v PYVER=$$v \ - swig_pydir=$$pylib/libsvn swig_pydir_extra=$$pylib/svn) + swig_pydir=$$pylib/libsvn swig_pydir_extra=$$pylib/svn; \ + for ext in debian/tmp/usr/lib/python3/dist-packages/libsvn/*.so; do \ + case $$ext in (*.cpython-*.so) continue; esac; \ + mv $$ext $$(echo $$ext | sed "s/\.so$$/$$(python$$v-config --extension-suffix)/"); \ + done) $(RM) debian/tmp/usr/lib/python*/*-packages/libsvn/*.la $(RM) debian/tmp/usr/lib/python*/*-packages/libsvn/*.a endif |