--- pyzmq-17.0.0b1+git20170821.orig/debian/compat
+++ pyzmq-17.0.0b1+git20170821/debian/compat
@@ -0,0 +1,1 @@
+9
--- pyzmq-17.0.0b1+git20170821.orig/debian/control
+++ pyzmq-17.0.0b1+git20170821/debian/control
@@ -0,0 +1,123 @@
+Source: pyzmq
+Section: python
+Priority: optional
+Maintainer: pyzmq developers <zeromq-dev@lists.zeromq.org>
+Build-Depends: cython (>= 0.20-1~),
+               cython-dbg (>= 0.20-1~),
+               debhelper (>= 9~),
+               dh-python (>= 1.20131021-1~),
+               dpkg-dev (>= 1.16.1~),
+               libzmq3-dev,
+               pypy (>= 2.2),
+               python-all-dbg (>= 2.7.3-1~),
+               python-all-dev (>= 2.7.3-1~),
+               python-cffi, python3-cffi,
+               python-setuptools,
+               python3 (>= 3.3.0-1~),
+               python3-all-dbg (>= 3.3.0-1~),
+               python3-all-dev (>= 3.3.0-1~),
+Standards-Version: 3.9.8
+X-Python-Version: >= 2.3
+X-Python3-Version: >= 3.3
+Homepage: http://www.zeromq.org/bindings:python
+
+Package: python-zmq
+Architecture: any
+Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
+Description: Python bindings for 0MQ library
+ Python bindings for 0MQ. 0MQ is a small, fast, and free
+ software library that gives you message-passing concurrency
+ for applications in most common languages.
+ .
+ The 0MQ lightweight messaging kernel is a library which
+ extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware
+ products. 0MQ sockets provide an abstraction of asynchronous
+ message queues, multiple messaging patterns, message
+ filtering (subscriptions), seamless access to multiple
+ transport protocols and more.
+
+Package: python-zmq-dbg
+Section: debug
+Architecture: any
+Depends: python-zmq (= ${binary:Version}),
+         ${misc:Depends},
+         ${python:Depends},
+         ${shlibs:Depends}
+Recommends: python-dbg
+Description: Python bindings for 0MQ library - debugging files
+ Python bindings for 0MQ. 0MQ is a small, fast, and free
+ software library that gives you message-passing concurrency
+ for applications in most common languages.
+ .
+ The 0MQ lightweight messaging kernel is a library which
+ extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware
+ products. 0MQ sockets provide an abstraction of asynchronous
+ message queues, multiple messaging patterns, message
+ filtering (subscriptions), seamless access to multiple
+ transport protocols and more.
+ .
+ This package contains the extension built for the Python debug interpreter.
+
+Package: python3-zmq
+Architecture: any
+Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
+Description: Python3 bindings for 0MQ library
+ Python bindings for 0MQ. 0MQ is a small, fast, and free
+ software library that gives you message-passing concurrency
+ for applications in most common languages.
+ .
+ The 0MQ lightweight messaging kernel is a library which
+ extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware
+ products. 0MQ sockets provide an abstraction of asynchronous
+ message queues, multiple messaging patterns, message
+ filtering (subscriptions), seamless access to multiple
+ transport protocols and more.
+ .
+ This package contains the extension built for the Python3 interpreter.
+
+Package: python3-zmq-dbg
+Section: debug
+Architecture: any
+Depends: python3-zmq (= ${binary:Version}),
+         ${misc:Depends},
+         ${python3:Depends},
+         ${shlibs:Depends}
+Recommends: python-dbg
+Description: Python3 bindings for 0MQ library - debugging files
+ Python bindings for 0MQ. 0MQ is a small, fast, and free
+ software library that gives you message-passing concurrency
+ for applications in most common languages.
+ .
+ The 0MQ lightweight messaging kernel is a library which
+ extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware
+ products. 0MQ sockets provide an abstraction of asynchronous
+ message queues, multiple messaging patterns, message
+ filtering (subscriptions), seamless access to multiple
+ transport protocols and more.
+ .
+ This package contains the extension built for the Python3 debug interpreter.
+
+Package: pypy-zmq
+Architecture: any
+Depends: pypy (>= 2.2),
+         ${misc:Depends},
+         ${pypy:Depends},
+         ${shlibs:Depends}
+Description: PyPy bindings for 0MQ library
+ Python bindings for 0MQ. 0MQ is a small, fast, and free
+ software library that gives you message-passing concurrency
+ for applications in most common languages.
+ .
+ The 0MQ lightweight messaging kernel is a library which
+ extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware
+ products. 0MQ sockets provide an abstraction of asynchronous
+ message queues, multiple messaging patterns, message
+ filtering (subscriptions), seamless access to multiple
+ transport protocols and more.
+ .
+ This package contains the extension built for the PyPy interpreter.
--- pyzmq-17.0.0b1+git20170821.orig/debian/changelog
+++ pyzmq-17.0.0b1+git20170821/debian/changelog
@@ -0,0 +1,5 @@
+pyzmq (17.0.0b1+git20170821-0) unstable; urgency=low
+
+  * Initial packaging.
+
+ -- pyzmq developers <zeromq-dev@lists.zeromq.org>  Sun, 20 Aug 2017 11:30:22 +0000
--- pyzmq-17.0.0b1+git20170821.orig/debian/rules
+++ pyzmq-17.0.0b1+git20170821/debian/rules
@@ -0,0 +1,74 @@
+#!/usr/bin/make -f
+
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+ARCHITECTURE := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+export PYBUILD_DESTDIR_python2=debian/python-zmq/
+export PYBUILD_DESTDIR_python2-dbg=debian/python-zmq-dbg/
+export PYBUILD_DESTDIR_python3=debian/python3-zmq/
+export PYBUILD_DESTDIR_python3-dbg=debian/python3-zmq-dbg/
+export PYBUILD_DESTDIR_pypy=debian/pypy-zmq/
+export PYBUILD_DEBUG=1
+# ignore that randomly hang or crash (gh-953)
+export PYBUILD_TEST_ARGS=-v --ignore=zmq/tests/test_auth.py --ignore=zmq/tests/test_security.py
+export DH_VERBOSE=1
+
+# OBS build: add
+#   Macros:
+#   %_with_drafts 1
+# at the BOTTOM of the OBS prjconf
+OBS_BUILD_CFG=/.build/build.dist
+ifeq ("$(wildcard $(OBS_BUILD_CFG))","")
+BUILDCONFIG=$(shell ls -1 /usr/src/packages/SOURCES/_buildconfig* | head -n 1)
+endif
+ifneq ("$(wildcard $(OBS_BUILD_CFG))","")
+ifneq ("$(shell grep drafts $(OBS_BUILD_CFG))","")
+export PYBUILD_BUILD_ARGS=--enable-drafts
+endif
+endif
+
+# User build: DEB_BUILD_OPTIONS=drafts dpkg-buildpackage
+ifneq (,$(findstring drafts,$(DEB_BUILD_OPTIONS)))
+export PYBUILD_BUILD_ARGS=--enable-drafts
+endif
+
+%:
+	dh $@ --with python2,python3,pypy --buildsystem=pybuild
+
+override_dh_install:
+	dh_install
+	# remove a couple of header files already in python3-zmq
+	find debian/python3-zmq-dbg/usr/lib/ ! -type d ! -name '*.so' -delete
+	find debian/python-zmq-dbg/usr/lib/ ! -type d ! -name '*.so' -delete
+	# cffi is only used for pypy
+	rm -rf debian/python-zmq/usr/lib/python*/dist-packages/zmq/backend/cffi/
+	rm -rf debian/python-dbg-zmq/usr/lib/python*/dist-packages/zmq/backend/cffi/
+	rm -rf debian/python3-zmq/usr/lib/python*/dist-packages/zmq/backend/cffi/
+	rm -rf debian/python3-dbg-zmq/usr/lib/python*/dist-packages/zmq/backend/cffi/
+	find debian/python*-zmq/ -name compiler.json -delete
+	find debian/python*-zmq/ -name config.json -delete
+	# cython core is only used for cpython
+	rm -rf debian/pypy-zmq/usr/lib/pypy/dist-packages/zmq/backend/cython
+	# yield from isn't byte-compileable in Python 2.x
+	find debian/python-zmq debian/pypy-zmq -name '*test_asyncio.py' -delete
+	find debian/python-zmq debian/pypy-zmq -name '*asyncio.py' -delete
+
+	# build shared libraries for pypy and install them
+	pypy -c 'import zmq'
+	mv -v zmq/backend/cffi/__pycache__/*so \
+	  $(CURDIR)/debian/pypy-zmq/usr/lib/pypy/dist-packages/zmq/backend/cffi
+	# put there by install, not needed
+	rm -f $(CURDIR)/debian/pypy-zmq/usr/lib/pypy/dist-packages/_cffi*.so
+
+	find debian/python-zmq -depth -type d -empty -exec rmdir {} \;
+	find debian/python-zmq-dbg -type d -depth -empty -exec rmdir {} \;
+	find debian/python3-zmq -depth -type d -empty -exec rmdir {} \;
+	find debian/python3-zmq-dbg -type d -depth -empty -exec rmdir {} \;
+	find debian/pypy-zmq -type d -depth -empty -exec rmdir {} \;
+
+override_dh_auto_test:
+
+override_dh_strip:
+	dh_strip --dbg-package=python-zmq-dbg
+	dh_strip --dbg-package=python3-zmq-dbg
--- pyzmq-17.0.0b1+git20170821.orig/debian/format
+++ pyzmq-17.0.0b1+git20170821/debian/format
@@ -0,0 +1,1 @@
+3.0 (native)
--- pyzmq-17.0.0b1+git20170821.orig/debian/copyright
+++ pyzmq-17.0.0b1+git20170821/debian/copyright
@@ -0,0 +1,148 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pyzmq
+Upstream-Contact: Min Ragan-Kelley <benjaminrk@gmail.com>
+Source: https://github.com/zeromq/pyzmq/downloads
+
+Files: *
+Copyright:  2010-2012, Brian Granger
+ 2010-2013, Min Ragan-Kelley
+ 2013 Felipe Cruz
+ 2014 PyZMQ Developers
+License: BSD-3-clause
+
+Files: examples/mongodb/*
+Copyright: 2010, Justin Riley
+License: BSD-3-clause
+
+Files: examples/chat/*
+Copyright: 2010, Andrew Gwozdziewycz
+License: LGPL-3+link
+
+Files: zmq/backend/cython/*
+Copyright: 2010-2011, Brian E. Granger
+ 2010, Andrew Gwozdziewycz
+ 2010, Fernando Perez
+ 2011, 2013, Min Ragan-Kelley
+License: LGPL-3+link
+
+Files: zmq/devices/monitoredqueue.pxd
+Copyright: 2010, Brian E. Granger
+ 2010, Min Ragan-Kelley
+License: LGPL-3+link
+
+Files: perf/*
+Copyright: 2007-2010, iMatix Corporation
+ 2013 Brian Granger, Min Ragan-Kelley
+License: LGPL-3+link
+
+Files: docs/sphinxext/sphinx_cython.py
+Copyright: 2010, Nikolaus Rath <Nikolaus@rath.org>
+License: LGPL-3+link
+
+Files: zmq/ssh/forward.py
+Copyright: 2003-2007, Robey Pointer <robeypointer@gmail.com>,
+ 2010-2011, IPython Development Team
+License: LGPL-2.1
+
+Files: zmq/eventloop/zmqstream.py zmq/eventloop/minitornado/*
+Copyright: 2009, Facebook.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2010-2011, Miguel Landaeta <miguel@miguel.cc>
+ 2011-2014, Julian Taylor
+License: LGPL-3+link
+
+License: BSD-3-clause
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ .
+ Redistributions in binary form must reproduce the above copyright notice, this
+ list of conditions and the following disclaimer in the documentation and/or
+ other materials provided with the distribution.
+ .
+ Neither the name of PyZMQ nor the names of its contributors may be used to
+ endorse or promote products derived from this software without specific prior
+ written permission.
+ .
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: LGPL-3+link
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 3 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Library General Public License for more details.
+ .
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301 USA.
+ .
+ The full text of the GNU Lesser General Public License version 3
+ is distributed in /usr/share/common-licenses/LGPL-3 on Debian systems.
+ .
+ SPECIAL EXCEPTION GRANTED BY COPYRIGHT HOLDERS
+ .
+ As a special exception, copyright holders give you permission to link this
+ library with independent modules to produce an executable, regardless of the
+ license terms of these independent modules, and to copy and distribute the
+ resulting executable under terms of your choice, provided that you also meet,
+ for each linked independent module, the terms and conditions of the license of
+ that module. An independent module is a module which is not derived from or
+ based on this library. If you modify this library, you must extend this
+ exception to your version of the library.
+ .
+ Note: this exception relieves you of any obligations under sections 4 and 5 of
+ this license, and section 6 of the GNU General Public License.
+
+License: LGPL-2.1
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ .
+ The full text of the GNU Lesser General Public License version 2.1
+ is distributed in /usr/share/common-licenses/LGPL-2.1 on Debian systems.
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+     http://www.apache.org/licenses/LICENSE-2.0
+     /usr/share/common-licenses/Apache-2.0 (on Debian systems)
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
