--- zeromq-4.2.2.orig/debian/libzmq5.docs
+++ zeromq-4.2.2/debian/libzmq5.docs
@@ -0,0 +1,2 @@
+AUTHORS
+NEWS
--- zeromq-4.2.2.orig/debian/libzmq3-dev.manpages
+++ zeromq-4.2.2/debian/libzmq3-dev.manpages
@@ -0,0 +1,2 @@
+debian/tmp/usr/share/man/man3/*
+debian/tmp/usr/share/man/man7/*
--- zeromq-4.2.2.orig/debian/copyright
+++ zeromq-4.2.2/debian/copyright
@@ -0,0 +1,93 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ZeroMQ
+Source: http://zeromq.org
+
+Files: *
+Copyright: 2009-2011, 250bpm s.r.o
+ 2007-2013, iMatix Corporation
+ 2007-2011, Other contributors as noted in the AUTHORS file
+License: LGPL-3.0+
+
+Files: src/xreq.cpp
+ src/xpub.cpp
+ src/xsub.cpp
+ tests/test_reqrep_device.cpp
+ tests/test_invalid_rep.cpp
+Copyright: 2010-2011, 250bpm s.r.o
+ 2011, VMware, Inc
+ 2010-2011, Other contributors as noted in the AUTHORS file
+License: LGPL-3.0+
+
+Files: src/msg.hpp
+ src/xrep.*
+ src/options.*
+ src/req.*
+ src/socket_base.*
+ src/pipe.*
+ src/encoder.cpp
+ src/lb.cpp
+ src/session_base.*
+ src/fq.cpp
+ include/zmq.h
+Copyright: 2009-2011, 250bpm s.r.o
+ 2007-2013, iMatix Corporation
+ 2011, VMware, Inc
+ 2007-2011, Other contributors as noted in the AUTHORS file
+License: LGPL-3.0+
+
+Files: src/pgm_receiver.*
+ src/pgm_sender.*
+ src/pgm_socket.*
+Copyright: 2009-2011, 250bpm s.r.o
+ 2007-2013, iMatix Corporation
+ 2010-2011, Miru Limited
+ 2007-2011, Other contributors as noted in the AUTHORS file
+License: LGPL-3.0+
+
+Files: debian/*
+Copyright: 2014-    , Laszlo Boszormenyi (GCS) <gcs@debian.org>
+ 2012-2014, Alessandro Ghedini <ghedo@debian.org>
+ 2010-2012, Martin Lucina <martin@lucina.net>
+ 2009-2010, Adrian von Bidder <cmot@debian.org>
+ 2009-2010, Peter Busser <peter@mirabilix.nl>
+ 2012, Alessandro Ghedini <ghedo@debian.org>
+License: LGPL-2.0+
+
+License: LGPL-2.0+
+ This package 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 of the License, or (at your option) any later version.
+ .
+ This package 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 General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in "/usr/share/common-licenses/LGPL-2".
+
+License: LGPL-3.0+
+ This package 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 3 of the License, or (at your option) any later version.
+ .
+ This package 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 General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in "/usr/share/common-licenses/LGPL-3".BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ IN THE SOFTWARE.
--- zeromq-4.2.2.orig/debian/libzmq5.install
+++ zeromq-4.2.2/debian/libzmq5.install
@@ -0,0 +1,1 @@
+usr/lib/*/libzmq.so.*
--- zeromq-4.2.2.orig/debian/libzmq3-dev.install
+++ zeromq-4.2.2/debian/libzmq3-dev.install
@@ -0,0 +1,4 @@
+usr/include/*
+usr/lib/*/libzmq.a
+usr/lib/*/libzmq.so
+usr/lib/*/pkgconfig/libzmq.pc
--- zeromq-4.2.2.orig/debian/control
+++ zeromq-4.2.2/debian/control
@@ -0,0 +1,62 @@
+Source: zeromq
+Section: libs
+Priority: optional
+Maintainer: libzmq Developers <zeromq-dev@lists.zeromq.org>
+Build-Depends: debhelper (>= 9),
+ dh-autoreconf,
+ libpgm-dev,
+ libsodium-dev,
+ libunwind-dev | libunwind8-dev | libunwind7-dev,
+ pkg-config,
+ asciidoc-base | asciidoc, xmlto,
+Standards-Version: 3.9.8
+Homepage: http://www.zeromq.org/
+
+Package: libzmq5
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: lightweight messaging kernel (shared library)
+ ØMQ is a library which extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware products.
+ .
+ ØMQ 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 libzmq shared library.
+
+Package: libzmq3-dev
+Architecture: any
+Section: libdevel
+Depends: libzmq5 (= ${binary:Version}), ${misc:Depends}
+Conflicts: libzmq-dev, libzmq5-dev
+Replaces: libzmq5-dev
+Provides: libzmq5-dev
+Multi-Arch: same
+Description: lightweight messaging kernel (development files)
+ ØMQ is a library which extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware products.
+ .
+ ØMQ 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 ZeroMQ development libraries and header files.
+
+Package: libzmq5-dbg
+Architecture: any
+Priority: extra
+Section: debug
+Depends: libzmq5 (= ${binary:Version}), ${misc:Depends}
+Multi-Arch: same
+Description: lightweight messaging kernel (debugging symbols)
+ ØMQ is a library which extends the standard socket interfaces with features
+ traditionally provided by specialised messaging middleware products.
+ .
+ ØMQ 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 debugging symbols for the ZeroMQ library.
--- zeromq-4.2.2.orig/debian/compat
+++ zeromq-4.2.2/debian/compat
@@ -0,0 +1,1 @@
+9
--- zeromq-4.2.2.orig/debian/format
+++ zeromq-4.2.2/debian/format
@@ -0,0 +1,1 @@
+3.0 (quilt)
--- zeromq-4.2.2.orig/debian/rules
+++ zeromq-4.2.2/debian/rules
@@ -0,0 +1,61 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export TEST_VERBOSE=1
+
+ifeq ($(DEB_BUILD_ARCH_OS), kfreebsd)
+	DO_TEST = no
+endif
+
+DRAFTS=no
+
+# 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))","")
+DRAFTS=yes
+endif
+endif
+
+# User build: DEB_BUILD_OPTIONS=drafts dpkg-buildpackage
+ifneq (,$(findstring drafts,$(DEB_BUILD_OPTIONS)))
+DRAFTS=yes
+endif
+
+# Workaround for automake < 1.14 bug
+$(shell dpkg --compare-versions `dpkg-query -W -f='$${Version}\n' automake` lt 1:1.14 && mkdir -p config)
+
+override_dh_clean:
+	dh_clean
+	find $(CURDIR) -type s -exec rm {} \;
+	rm -f $(CURDIR)/doc/*.xml $(CURDIR)/doc/*.3 $(CURDIR)/doc/*.7
+	rm -f config.log
+
+override_dh_auto_configure:
+	dh_auto_configure -- --with-pgm --with-libsodium --enable-drafts=$(DRAFTS)
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ifneq ($(DO_TEST), no)
+	-dh_auto_test -- VERBOSE=1
+else
+	-dh_auto_test -- VERBOSE=1
+endif
+endif
+
+override_dh_strip:
+	dh_strip --dbg-package=libzmq5-dbg
+
+%:
+	dh $@ --with=autoreconf --parallel
+
+.PHONY: override_dh_auto_configure override_dh_strip
--- zeromq-4.2.2.orig/debian/changelog
+++ zeromq-4.2.2/debian/changelog
@@ -0,0 +1,5 @@
+zeromq (4.2.2-0) UNRELEASED; urgency=low
+
+  * Initial packaging.
+
+ -- libzmq Developers <zeromq-dev@lists.zeromq.org>  Wed, 31 Dec 2014 00:00:00 +0000
