Tags: patch

Attached a patch to build a Python 3 package for snappy.

--
Oskari Saarenmaa
Aiven: managed cloud databases
https://aiven.io
diff -urN python-snappy-0.5/debian/changelog python-snappy-0.5/debian/changelog
--- python-snappy-0.5/debian/changelog	2013-06-22 18:22:43.000000000 +0300
+++ python-snappy-0.5/debian/changelog	2016-03-17 13:07:35.320000000 +0200
@@ -1,3 +1,9 @@
+python-snappy (0.5-2) unstable; urgency=low
+
+  * Build Python3 package
+
+ -- Oskari Saarenmaa <o...@aiven.io>  Thu, 17 Mar 2016 13:00:10 +0200
+
 python-snappy (0.5-1) unstable; urgency=low
 
   * New upstream release
diff -urN python-snappy-0.5/debian/control python-snappy-0.5/debian/control
--- python-snappy-0.5/debian/control	2013-06-29 15:46:02.000000000 +0300
+++ python-snappy-0.5/debian/control	2016-03-17 13:05:38.368000000 +0200
@@ -2,9 +2,10 @@
 Section: python
 Priority: optional
 Maintainer: Shell Xu <shell909...@gmail.com>
-Build-Depends: debhelper (>= 8), python-setuptools (>= 0.6), libsnappy-dev, python-all-dev
+Build-Depends: debhelper (>= 8), dh-python, python-setuptools (>= 0.6), libsnappy-dev, python-all-dev, python3-all-dev 
 Standards-Version: 3.9.4
 X-Python-Version: >= 2.5
+X-Python3-Version: >= 3.4
 Homepage: http://github.com/andrix/python-snappy
 
 Package: python-snappy
@@ -13,6 +14,17 @@
 Description: Python library for the snappy compression library from Google
  Snappy is a compression/decompression library. It does not aim for
  maximum compression, or compatibility with any other compression
+ library; instead, it aims for very high speeds and reasonable
+ compression. You can read package libsnappy1 for more infomation.
+ .
+ python-snappy is Python library for the snappy compression library from Google.
+
+Package: python3-snappy
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
+Description: Python library for the snappy compression library from Google
+ Snappy is a compression/decompression library. It does not aim for
+ maximum compression, or compatibility with any other compression
  library; instead, it aims for very high speeds and reasonable
  compression. You can read package libsnappy1 for more infomation.
  .
diff -urN python-snappy-0.5/debian/rules python-snappy-0.5/debian/rules
--- python-snappy-0.5/debian/rules	2013-06-02 14:08:12.000000000 +0300
+++ python-snappy-0.5/debian/rules	2016-03-17 13:05:38.368000000 +0200
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+export PYBUILD_NAME=snappy
+
 %:
-	dh $@ --with python2
+	dh $@ --buildsystem=pybuild --with python2,python3

Reply via email to