diff -Nru protobuf-2.6.1/debian/changelog protobuf-2.6.1/debian/changelog --- protobuf-2.6.1/debian/changelog 2015-08-26 22:38:00.000000000 +0200 +++ protobuf-2.6.1/debian/changelog 2017-11-29 17:55:41.000000000 +0100 @@ -1,3 +1,9 @@ +protobuf (2.6.1-1.3ubuntu1) xenial; urgency=medium + + * Build python3 package too. + + -- Andrea Azzarone Wed, 29 Nov 2017 17:55:06 +0100 + protobuf (2.6.1-1.3) unstable; urgency=medium * Non-maintainer upload. diff -Nru protobuf-2.6.1/debian/control protobuf-2.6.1/debian/control --- protobuf-2.6.1/debian/control 2015-08-06 08:47:50.000000000 +0200 +++ protobuf-2.6.1/debian/control 2017-11-29 17:52:21.000000000 +0100 @@ -15,8 +15,12 @@ , dh-python , python-all (>= 2.7) , libpython-all-dev (>= 2.7) + , python3-all (>= 3.3) + , libpython3-all-dev (>= 3.3) + , python3-setuptools , python-setuptools , python-google-apputils + , python3-google-apputils # Manpage generator , xmlto # Tests @@ -181,6 +185,27 @@ need the protoc tool (in the protobuf-compiler package) to compile your definition to Python classes, and then the modules in this package will allow you to use those classes in your programs. + +Package: python3-protobuf +Architecture: any +Section: python +Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends} +Description: Python 3 bindings for protocol buffers + Protocol buffers are a flexible, efficient, automated mechanism for + serializing structured data - similar to XML, but smaller, faster, and + simpler. You define how you want your data to be structured once, then you can + use special generated source code to easily write and read your structured + data to and from a variety of data streams and using a variety of languages. + You can even update your data structure without breaking deployed programs + that are compiled against the "old" format. + . + Google uses Protocol Buffers for almost all of its internal RPC protocols and + file formats. + . + This package contains the Python 3 bindings for the protocol buffers. You will + need the protoc tool (in the protobuf-compiler package) to compile your + definition to Python classes, and then the modules in this package will allow + you to use those classes in your programs. Package: libprotobuf-java Architecture: all diff -Nru protobuf-2.6.1/debian/rules protobuf-2.6.1/debian/rules --- protobuf-2.6.1/debian/rules 2015-08-26 22:37:55.000000000 +0200 +++ protobuf-2.6.1/debian/rules 2017-11-29 17:54:47.000000000 +0100 @@ -16,7 +16,10 @@ xmlto man debian/protoc.xml # Python build. + cp -rv python python3 + 2to3 -w -n python3 cd python && python setup.py build --cpp_implementation + cd python3 && python3 setup.py build --cpp_implementation override_dh_auto_build-indep: dh_auto_build --indep @@ -34,6 +37,13 @@ cd python && for python in $(shell pyversions -r); do \ $$python setup.py test --cpp_implementation; \ done + + # Python3 test. + set -e; \ + export LD_LIBRARY_PATH=$(CURDIR)/src/.libs; \ + cd python3 && for PYTHON in $(shell py3versions -r); do \ + $$PYTHON setup.py test --cpp_implementation; \ + done endif override_dh_auto_test-indep: @@ -49,6 +59,9 @@ done rm -rf python/protobuf.egg-info + # Python3 clean. + rm -rf python3 + override_dh_auto_clean-indep: dh_auto_clean --indep @@ -68,6 +81,14 @@ done find $(CURDIR)/debian/python-protobuf -name 'protobuf-*-nspkg.pth' -delete + # Python3 install. + cd python3 && for python in $(shell py3versions -r); do \ + $$python setup.py install --cpp_implementation \ + --install-layout=deb --no-compile \ + --root=$(CURDIR)/debian/python3-protobuf; \ + done + find $(CURDIR)/debian/python3-protobuf -name 'protobuf-*-nspkg.pth' -delete + override_dh_auto_install-indep: dh_auto_install --indep