Merge-in most of the packaging work of Thorsten Alteholz <debian@alteholz.de>

This commit is contained in:
Lucas Nussbaum 2015-11-07 09:27:16 +01:00
parent 6d87cdbfaa
commit ee0a1c163c
10 changed files with 172 additions and 19 deletions

14
debian/MinOZW.1 vendored Normal file
View file

@ -0,0 +1,14 @@
.TH OpenZWAVE 1
.SH NAME
MinOZW \- a small test application for libopenzwave
.SH SYNOPSIS
.nf
.B MinOZW [port]
.fi
.
.SH DESCRIPTION
.rs
.sp
MinOZW is just a small example to test the openZWAVE library.
The first argument is the port where the ZWAVE controller is attached to. The default value is /dev/ttyUSB0.

2
debian/changelog vendored
View file

@ -1,4 +1,4 @@
openzwave (1.3-523-gb258e9e) unstable; urgency=low
openzwave (1.3.532.ge3defea) unstable; urgency=low
* build package for testing

26
debian/control vendored
View file

@ -1,22 +1,23 @@
Source: openzwave
Maintainer: Harald Klein <hari@vt100.at>
Maintainer: Lucas Nussbaum <lucas@debian.org>
Section: devel
Priority: optional
Build-Depends: debhelper (>=9), dh-exec (>=0.2), g++ (>= 4.4), quilt, libudev-dev, libxml2-utils
Standards-Version: 3.9.3
Build-Depends: debhelper (>=9), dh-exec (>=0.2), g++ (>= 4.4), libudev-dev, libxml2-utils
Standards-Version: 3.9.6
Homepage: http://www.openzwave.com/
Package: libopenzwave1.3
Section: libs
Architecture: any
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dist:Depends}, libudev0 | libudev1
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: API to use a Z-Wave controller
OpenZWave is an open-source, cross-platform library designed to enable
anyone to add support for Z-Wave home-automation devices to their
applications, without requiring any in depth knowledge of the Z-Wave
protocol.
.
This package contains the library.
Package: libopenzwave1.3-dev
Section: libdevel
@ -27,7 +28,20 @@ Description: header files for the openzwave library
anyone to add support for Z-Wave home-automation devices to their
applications, without requiring any in depth knowledge of the Z-Wave
protocol.
.
This package contains files for developing.
Package: libopenzwave-doc
Section: doc
Depends: ${misc:Depends}, libjs-jquery
Architecture: all
Description: documentation for the openzwave library
OpenZWave is an open-source, cross-platform library designed to enable
anyone to add support for Z-Wave home-automation devices to their
applications, without requiring any in depth knowledge of the Z-Wave
protocol.
.
This package contains documentation.
Package: openzwave
Section: misc

112
debian/copyright vendored
View file

@ -1,9 +1,119 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: open-zwave
Upstream-Contact: Mal Lansell <openzwave@lansell.org>
Source: http://groups.google.com/group/openzwave
Source: https://github.com/OpenZWave/open-zwave
Files-Excluded: debian, cpp/hidapi/windows
Files: *
Copyright: 2010 Mal Lansell <openzwave@lansell.org>
2011 Greg Satz <satz@iranger.com>
2014 Justin Hammond <justin@dynam.ac>
2010 Jason Frazier <frazierjason@gmail.com>
2010 Amer Harb <harb_amer@hotmail.com>
License: LGPL-3+
Files: cpp/hidapi/*
Copyright: 2010, Alan Ott, Signal 11 Software
License: HIDAPI or GPL-3 or OZBSD or OriginalHIDAPI
Files: cpp/build/sh2ju.sh
Copyright: 2010 Manuel Carrasco Moñino. (manolo at apache.org)
License: Apache-2.0
Files: cpp/src/aes/*
Copyright: 1998-2013, Brian Gladman, Worcester, UK.
License: AESBSD
Files: cpp/tinyxml/*
Copyright: Yves Berquin
2000-2006, Lee Thomason (www.grinninglizard.com)
2005, Tyge Lovset
License: TINY
License: HIDAPI
HIDAPI can be used under one of three licenses.
.
1. The GNU General Public License, version 3.0, in LICENSE-gpl3.txt (-> see GPL-3)
2. A BSD-Style License, in LICENSE-bsd.txt. (-> see OZBSD)
3. The more liberal original HIDAPI license. LICENSE-orig.txt (-> see OriginalHIDAPI)
.
The license chosen is at the discretion of the user of HIDAPI. For example:
1. An author of GPL software would likely use HIDAPI under the terms of the
GPL.
.
2. An author of commercial closed-source software would likely use HIDAPI
under the terms of the BSD-style license or the original HIDAPI license.
License: Apache-2.0
/usr/share/common-licenses/Apache-2.0
License: LGPL-3+
/usr/share/common-licenses/LGPL-3.0
License: GPL-3
/usr/share/common-licenses/GPL-3.0
License: OZBSD
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 Signal 11 Software 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 HOLDER 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: OriginalHIDAPI
This software may be used by anyone for any reason so
long as the copyright notice in the source files
remains intact.
License: AESBSD
The redistribution and use of this software (with or without changes)
is allowed without the payment of fees or royalties provided that:
.
source code distributions include the above copyright notice, this
list of conditions and the following disclaimer;
.
binary distributions include the above copyright notice, this list
of conditions and the following disclaimer in their documentation.
.
This software is provided 'as is' with no explicit or implied warranties
in respect of its operation, including, but not limited to, correctness
and fitness for purpose.
License: TINY
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any
damages arising from the use of this software.
.
Permission is granted to anyone to use this software for any
purpose, including commercial applications, and to alter it and
redistribute it freely, subject to the following restrictions:
.
1. The origin of this software must not be misrepresented; you must
not claim that you wrote the original software. If you use this
software in a product, an acknowledgment in the product documentation
would be appreciated but is not required.
.
2. Altered source versions must be plainly marked as such, and
must not be misrepresented as being the original software.
.
3. This notice may not be removed or altered from any source
distribution.

11
debian/libopenzwave-doc.doc-base vendored Normal file
View file

@ -0,0 +1,11 @@
Document: libopenzwave
Title: openZwave Library Documentation
Author: Junichi Uekawa
Abstract: OpenZWave is a library which provides an API for applications
to access and control a Z-Wave controller connected to the PC
via a serial or HID connection.
Section: Programming
Format: HTML
Index: /usr/share/doc/openzwave-1.2.919/default.htm
Files: /usr/share/doc/openzwave-1.2.919/*.htm

1
debian/libopenzwave-doc.install vendored Normal file
View file

@ -0,0 +1 @@
usr/share/doc/openzwave*/*

View file

@ -1,4 +1,2 @@
usr/lib/*/libopenzwave.so
usr/include/openzwave/*
usr/share/doc/openzwave*/*
usr/bin/ozw_config

View file

@ -0,0 +1,5 @@
# this is a modified version
libopenzwave1.3: embedded-library usr/lib/*/libopenzwave.so.1.3: tinyxml
#due to arch- and optimisation-dependent symbols the symbols-file is not
#maintainable and FTBSs occur on lots of architectures
libopenzwave1.3: no-symbols-control-file

1
debian/openzwave.manpages vendored Normal file
View file

@ -0,0 +1 @@
debian/MinOZW.1

17
debian/rules vendored
View file

@ -3,6 +3,11 @@
export DH_VERBOSE=1
PACKAGE=$(shell dh_listpackages)
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
ifndef DESTDIR
DESTDIR=$(CURDIR)/debian/tmp/
endif
@ -15,21 +20,15 @@ REV := $(shell echo '$(VERSION)' | awk -F . {'print $$3'})
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIBDIR := /usr/lib/$(DEB_HOST_MULTIARCH)/
DISTRIBUTION := $(shell (lsb_release -cs))
%:
dh $@ --with quilt
override_dh_gen_control:
ifeq ($(DISTRIBUTION),wheezy)
dh_gencontrol -- -Vdist:Depends="libudev0"
else
dh_gencontrol -- -Vdist:Depends="libudev1"
endif
override_dh_auto_build:
VERSION_MAJ=$(MAJOR) VERSION_MIN=$(MINOR) VERSION_REV=$(REV) PREFIX=/usr SYSCONFDIR=/etc/openzwave instlibdir=$(LIBDIR) make
CPPFLAGS=$(CPPFLAGS) VERSION_MAJ=$(MAJOR) VERSION_MIN=$(MINOR) VERSION_REV=$(REV) PREFIX=/usr SYSCONFDIR=/etc/openzwave instlibdir=$(LIBDIR) make
override_dh_auto_install:
dh_auto_install
install -d $(DESTDIR)/etc/openzwave/
install -d $(DESTDIR)/usr/include/openzwave/
install -d $(DESTDIR)/$(LIBDIR)/pkg-config/