--- zyre-2.0.0.orig/debian/rules
+++ zyre-2.0.0/debian/rules
@@ -0,0 +1,40 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+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_strip:
+	dh_strip --dbg-package=zyre-dbg
+
+override_dh_auto_test:
+	echo "Skipped for now"
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+		--enable-drafts=$(DRAFTS)
+
+%:
+	dh $@ \
+		--with autoreconf
--- zyre-2.0.0.orig/debian/format
+++ zyre-2.0.0/debian/format
@@ -0,0 +1,1 @@
+3.0 (quilt)
--- zyre-2.0.0.orig/debian/copyright
+++ zyre-2.0.0/debian/copyright
@@ -0,0 +1,14 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: zyre
+
+Files: *
+Copyright: 2015- zyre Developers <zeromq-dev@lists.zeromq.org>
+License: zyre_license
+ Copyright (c) the Contributors as noted in the AUTHORS file.           
+                                                                        
+ This file is part of Zyre, an open-source framework for proximity-based
+ peer-to-peer applications -- See http://zyre.org.                      
+                                                                        
+ This Source Code Form is subject to the terms of the Mozilla Public    
+ License, v. 2.0. If a copy of the MPL was not distributed with this    
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.               
--- zyre-2.0.0.orig/debian/compat
+++ zyre-2.0.0/debian/compat
@@ -0,0 +1,1 @@
+9
--- zyre-2.0.0.orig/debian/changelog
+++ zyre-2.0.0/debian/changelog
@@ -0,0 +1,5 @@
+zyre (2.0.0-0) UNRELEASED; urgency=low
+
+  * Initial packaging.
+
+ -- zyre Developers <zeromq-dev@lists.zeromq.org>  Wed, 31 Dec 2014 00:00:00 +0000
--- zyre-2.0.0.orig/debian/control
+++ zyre-2.0.0/debian/control
@@ -0,0 +1,56 @@
+#
+#    zyre - an open-source framework for proximity-based P2P apps
+#
+#    Copyright (c) the Contributors as noted in the AUTHORS file.           
+#                                                                           
+#    This file is part of Zyre, an open-source framework for proximity-based
+#    peer-to-peer applications -- See http://zyre.org.                      
+#                                                                           
+#    This Source Code Form is subject to the terms of the Mozilla Public    
+#    License, v. 2.0. If a copy of the MPL was not distributed with this    
+#    file, You can obtain one at http://mozilla.org/MPL/2.0/.               
+
+Source:         zyre
+Section:        net
+Priority:       optional
+Maintainer:     zyre Developers <zeromq-dev@lists.zeromq.org>
+Standards-Version: 3.9.7
+Build-Depends: debhelper (>= 9),
+    pkg-config,
+    libzmq3-dev,
+    libczmq-dev,
+    asciidoc-base | asciidoc, xmlto,
+    dh-autoreconf
+
+Package: libzyre2
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: an open-source framework for proximity-based p2p apps shared library
+ This package contains shared library for zyre: an open-source framework for proximity-based p2p apps
+
+Package: libzyre-dev
+Architecture: any
+Section: libdevel
+Depends:
+    libzmq3-dev,
+    libczmq-dev,
+    libzyre2 (= ${binary:Version})
+Description: an open-source framework for proximity-based p2p apps development tools
+ This package contains development files for zyre: an open-source framework for proximity-based p2p apps
+
+Package: zyre
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends},
+Description: an open-source framework for proximity-based p2p apps
+ Main package for zyre: an open-source framework for proximity-based p2p apps
+
+Package: zyre-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends:
+    zyre (= ${binary:Version}),
+    ${misc:Depends}
+Description: an open-source framework for proximity-based p2p apps debugging symbols
+ This package contains the debugging symbols for zyre : an open-source framework for proximity-based p2p apps.
+
--- zyre-2.0.0.orig/debian/libzyre-dev.install
+++ zyre-2.0.0/debian/libzyre-dev.install
@@ -0,0 +1,6 @@
+usr/include/*
+usr/lib/*/libzyre.so
+usr/lib/*/pkgconfig/libzyre.pc
+usr/share/zproject
+usr/share/man/man3/*
+usr/share/man/man7/*
--- zyre-2.0.0.orig/debian/libzyre2.install
+++ zyre-2.0.0/debian/libzyre2.install
@@ -0,0 +1,1 @@
+usr/lib/*/libzyre.so.*
--- zyre-2.0.0.orig/debian/zyre.install
+++ zyre-2.0.0/debian/zyre.install
@@ -0,0 +1,3 @@
+usr/bin/zpinger
+usr/share/man/man1/zpinger.1
+
