From 83c042ccda60cc94a6ad07a38fd8eb0e6dc12375 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Thu, 30 Nov 2017 23:52:42 +0000 Subject: [PATCH] Problem: Debian packages are missing zmq.hpp Solution: install it if available. Download it from its repo as part of the OBS source run. Debian and Ubuntu always ship zmq.hpp in libzmq-dev, so do the same. In the RPM world it is in its own separate package, so don't do the same for RPM. --- packaging/debian/rules | 6 ++++++ packaging/obs/_service | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/packaging/debian/rules b/packaging/debian/rules index 56d499e6..c7fbe670 100755 --- a/packaging/debian/rules +++ b/packaging/debian/rules @@ -52,6 +52,12 @@ else endif endif +override_dh_auto_install: + dh_auto_install +ifneq ("$(wildcard debian/zmq.hpp)","") + cp $(CURDIR)/debian/zmq.hpp $(CURDIR)/debian/tmp/usr/include/ +endif + override_dh_strip: dh_strip --dbg-package=libzmq5-dbg diff --git a/packaging/obs/_service b/packaging/obs/_service index 1a783826..97f2a39c 100644 --- a/packaging/obs/_service +++ b/packaging/obs/_service @@ -10,6 +10,18 @@ zeromq + + + https + github.com + zeromq/cppzmq/archive/master.zip + + + *master.zip + */zmq.hpp + debian.zmq.hpp + + *.tar