Julien Cristau pushed to branch debian/unstable at X Strike Force / proto / 
xcb-proto


Commits:
abfd0cbc by Julien Cristau at 2020-01-02T11:49:33+01:00
Build a python3-xcbgen package.

- - - - -


5 changed files:

- debian/changelog
- debian/control
- debian/python-xcbgen.install
- + debian/python3-xcbgen.install
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+xcb-proto (1.13-1.1) UNRELEASED; urgency=medium
+
+  * Build a python3-xcbgen package.
+
+ -- Julien Cristau <jcris...@debian.org>  Thu, 02 Jan 2020 11:42:07 +0100
+
 xcb-proto (1.13-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
debian/control
=====================================
@@ -7,9 +7,9 @@ Build-Depends:
  debhelper (>= 11),
  dh-python,
  libxml2-utils,
- python-all (>= 2.6.6-3~),
+ python,
+ python3,
 Standards-Version: 4.1.3
-X-Python-Version: >= 2.5
 Homepage: https://xcb.freedesktop.org
 Vcs-Git: https://salsa.debian.org/xorg-team/proto/xcb-proto.git
 Vcs-Browser: https://salsa.debian.org/xorg-team/proto/xcb-proto
@@ -41,7 +41,7 @@ Section: python
 Architecture: all
 Multi-Arch: foreign
 Depends: ${python:Depends}, ${misc:Depends}
-Description: X C Binding - protocol binding generator
+Description: X C Binding - protocol binding generator (Python 2)
  python-xcbgen generates the X protocol C language bindings from XML
  descriptions.
  .
@@ -55,3 +55,23 @@ Description: X C Binding - protocol binding generator
   * Thread support: access XCB from multiple threads, with no explicit locking
   * Easy creation of new extensions: automatically generates interface from
     machine-parsable protocol descriptions
+
+Package: python3-xcbgen
+Section: python
+Architecture: all
+Multi-Arch: foreign
+Depends: ${python3:Depends}, ${misc:Depends}
+Description: X C Binding - protocol binding generator (Python 3)
+ python3-xcbgen generates the X protocol C language bindings from XML
+ descriptions.
+ .
+ The XCB library provides an interface to the X Window System protocol,
+ designed to replace the Xlib interface.  XCB provides several advantages over
+ Xlib:
+ .
+  * Size: small library and lower memory footprint
+  * Latency hiding: batch several requests and wait for the replies later
+  * Direct protocol access: one-to-one mapping between interface and protocol
+  * Thread support: access XCB from multiple threads, with no explicit locking
+  * Easy creation of new extensions: automatically generates interface from
+    machine-parsable protocol descriptions


=====================================
debian/python-xcbgen.install
=====================================
@@ -1 +1 @@
-usr/lib/python*
+usr/lib/python2*


=====================================
debian/python3-xcbgen.install
=====================================
@@ -0,0 +1 @@
+usr/lib/python3*


=====================================
debian/rules
=====================================
@@ -1,7 +1,20 @@
 #!/usr/bin/make -f
 
 %:
-       dh $@ --with python2
+       dh $@ --with python2,python3
+
+override_dh_auto_clean:
+       dh_auto_clean --builddirectory=build-py2 PYTHON=python2
+       dh_auto_clean --builddirectory=build-py3 PYTHON=python3
 
 override_dh_auto_configure:
-       dh_auto_configure -- --libdir=/usr/lib
+       dh_auto_configure --builddirectory=build-py2 -- --libdir=/usr/lib 
PYTHON=python2
+       dh_auto_configure --builddirectory=build-py3 -- --libdir=/usr/lib 
PYTHON=python3
+
+override_dh_auto_build:
+       dh_auto_build --builddirectory=build-py2 PYTHON=python2
+       dh_auto_build --builddirectory=build-py3 PYTHON=python3
+
+override_dh_auto_install:
+       dh_auto_install --builddirectory=build-py2 PYTHON=python2
+       dh_auto_install --builddirectory=build-py3 PYTHON=python3



View it on GitLab: 
https://salsa.debian.org/xorg-team/proto/xcb-proto/commit/abfd0cbc2747fff304ead04c8da1a8b94a65941f

-- 
View it on GitLab: 
https://salsa.debian.org/xorg-team/proto/xcb-proto/commit/abfd0cbc2747fff304ead04c8da1a8b94a65941f
You're receiving this email because of your account on salsa.debian.org.


Reply via email to