fix debian packaging

This commit is contained in:
Michael Zanetti 2018-08-14 17:16:57 +02:00 committed by Simon Stürz
parent 36f1fbd6ea
commit b2118c8efc
10 changed files with 48 additions and 26 deletions

24
copyright Normal file
View File

@ -0,0 +1,24 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: nymea-remoteproxy
Upstream-Contact: Simon Stürz <simon.stuerz@guh.io>
Copyright: 2018, guh GmbH
Download: http://www.github.com/guh/nymea-remoteproxy
Source: https://github.com/guh/nymea-remoteproxy.git
License: GPL-2+
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-2'.
License: LGPL-2.1
On Debian systems, the complete text of the GNU Lesser General
Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.
License: LGPL-3
On Debian systems, the complete text of the GNU Lesser General
Public License can be found in `/usr/share/common-licenses/LGPL-3'.
Files: *
License: GPL-2+
Copyright: 2018, Simon Stürz <simon.stuerz@guh.io>

20
debian/control vendored
View File

@ -1,7 +1,7 @@
Source: nymea-remoteproxy
Section: utils
Priority: options
Maintainer: Michael Zanetti <michael.zanetti@guh.io>
Maintainer: Simon Stürz <simon.stürz@guh.io>
Build-depends: debhelper (>= 0.0.0),
libqt5websockets5-dev,
Standards-Version: 3.9.3
@ -13,19 +13,19 @@ Depends: ${shlibs:Depends},
Description: The nymea remote proxy server
The nymea remote proxy server
Package: libnymea-remoteproxy
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
Description: The nymea remote proxy server
The nymea remote proxy server
Package: libnymea-remoteproxyclient
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
Description: The nymea remote proxy server
The nymea remote proxy server
Description: The nymea remote proxy server client lib
The nymea remote proxy server client lib
Package: libnymea-remoteproxyclient-dev
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
Description: The nymea remote proxy server client lib, development files
The nymea remote proxy server client lib, development files
Package: nymea-remoteproxy-tests
Architecture: any

View File

@ -1 +0,0 @@
usr/lib/libnymea-remoteproxy.so*

View File

@ -1 +0,0 @@
usr/lib/libnymea-remoteproxyclient.so*

View File

@ -0,0 +1 @@
usr/lib/@DEB_HOST_MULTIARCH@/libnymea-remoteproxyclient.so.*

View File

@ -1 +0,0 @@
usr/bin/nymea-remoteproxy

2
debian/nymea-remoteproxy.install.in vendored Normal file
View File

@ -0,0 +1,2 @@
usr/lib/@DEB_HOST_MULTIARCH@/libnymea-remoteproxy.so*
usr/bin/nymea-remoteproxy

20
debian/rules vendored
View File

@ -2,16 +2,14 @@
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
PREPROCESS_FILES := $(wildcard debian/*.in)
$(PREPROCESS_FILES:.in=): %: %.in
sed 's,/@DEB_HOST_MULTIARCH@,$(DEB_HOST_MULTIARCH:%=/%),g' $< > $@
override_dh_install: $(PREPROCESS_FILES:.in=)
dh_install
%:
dh $@
#override_dh_auto_build:
# JANUSP=/usr make -j1
#override_dh_auto_install:
# install build/janus_guhio.so debian/janus-guh-plugin/lib/$(DEB_HOST_MULTIARCH)/janus/plugins/
# install -m 0644 conf/janus.plugin.guhio.cfg debian/janus-guh-plugin/etc/janus/
override_dh_auto_check:
LD_LIBRARY_PATH=libnymea-remoteproxy dh_auto_check

View File

@ -56,5 +56,5 @@ for(header, HEADERS) {
eval(INSTALLS *= headers_$${path})
}
target.path = /usr/lib/
target.path = /usr/lib/$$system('dpkg-architecture -q DEB_HOST_MULTIARCH')
INSTALLS += target

View File

@ -2,7 +2,7 @@ include(../nymea-remoteproxy.pri)
TEMPLATE = lib
TARGET = nymea-remoteproxyclient
target.path = /usr/lib/
target.path = /usr/lib/$$system('dpkg-architecture -q DEB_HOST_MULTIARCH')
include(libnymea-remoteproxyclient.pri)