From 7a21cda13e56f21b9f0cb60f69c42ec1e7830edd Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 6 Dec 2013 00:26:27 +0100 Subject: adding better debian packaging --- debian/README | 6 ++ debian/README.Debian | 6 ++ debian/README.source | 9 +++ debian/changelog | 5 ++ debian/compat | 1 + debian/control | 25 ++++++++ debian/copyright | 53 ++++++++++++++++ debian/docs | 0 debian/libgato-dev.dirs | 2 + debian/libgato-dev.install | 6 ++ debian/libgato1.dirs | 1 + debian/libgato1.install | 1 + debian/postinst.ex | 39 ++++++++++++ debian/postrm.ex | 37 +++++++++++ debian/preinst.ex | 35 +++++++++++ debian/prerm.ex | 38 +++++++++++ debian/rules | 13 ++++ debian/shlibs.local.ex | 1 + debian/source/format | 1 + libgato.pro | 8 +++ qtc_packaging/debian_harmattan/README | 6 -- qtc_packaging/debian_harmattan/changelog | 5 -- qtc_packaging/debian_harmattan/compat | 1 - qtc_packaging/debian_harmattan/control | 14 ----- qtc_packaging/debian_harmattan/copyright | 40 ------------ qtc_packaging/debian_harmattan/manifest.aegis | 70 --------------------- qtc_packaging/debian_harmattan/rules | 91 --------------------------- 27 files changed, 287 insertions(+), 227 deletions(-) create mode 100644 debian/README create mode 100644 debian/README.Debian create mode 100644 debian/README.source create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/libgato-dev.dirs create mode 100644 debian/libgato-dev.install create mode 100644 debian/libgato1.dirs create mode 100644 debian/libgato1.install create mode 100644 debian/postinst.ex create mode 100644 debian/postrm.ex create mode 100644 debian/preinst.ex create mode 100644 debian/prerm.ex create mode 100755 debian/rules create mode 100644 debian/shlibs.local.ex create mode 100644 debian/source/format delete mode 100644 qtc_packaging/debian_harmattan/README delete mode 100644 qtc_packaging/debian_harmattan/changelog delete mode 100644 qtc_packaging/debian_harmattan/compat delete mode 100644 qtc_packaging/debian_harmattan/control delete mode 100644 qtc_packaging/debian_harmattan/copyright delete mode 100644 qtc_packaging/debian_harmattan/manifest.aegis delete mode 100755 qtc_packaging/debian_harmattan/rules diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..0caf859 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package libgato +---------------------------- + +Comments regarding the Package + + -- unknown Fri, 06 Dec 2013 00:15:27 +0100 diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..bc86f33 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +libgato for Debian +------------------ + + + + -- unknown Fri, 06 Dec 2013 00:15:27 +0100 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..f158302 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,9 @@ +libgato for Debian +------------------ + + + + + + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..414af1c --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libgato (1.0) unstable; urgency=low + + * Initial Release. + + -- Javier S. Pedro Fri, 06 Dec 2013 00:22:59 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2d3f996 --- /dev/null +++ b/debian/control @@ -0,0 +1,25 @@ +Source: libgato +Priority: extra +Maintainer: unknown +Build-Depends: debhelper (>= 7) +Standards-Version: 3.8.4 +Section: libs +Homepage: https://gitorious.org/gato + +Package: libgato-dev +Section: devel +Architecture: any +Depends: libgato1 (= ${binary:Version}) +Description: Development header for libgato + libgato is a library that can used to communicate with Bluetooth Smart devices + using the Generitc Attribute Profile (GATT). + . + This package contains development headers. + +Package: libgato1 +Section: devel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A Generic Attribute Profile library for Bluetooth devices + libgato is a library that can used to communicate with Bluetooth Smart devices + using the Generitc Attribute Profile (GATT). diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..24b6984 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,53 @@ +This work was packaged for Debian by: + + unknown on Fri, 06 Dec 2013 00:15:27 +0100 + +It was downloaded from: + + + +Upstream Author(s): + + + + +Copyright: + + + + +License: + +### SELECT: ### + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. +### OR ### + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. +########## + + 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 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 + +On Debian systems, the complete text of the GNU General +Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +The Debian packaging is: + + Copyright (C) 2013 unknown + +you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e69de29 diff --git a/debian/libgato-dev.dirs b/debian/libgato-dev.dirs new file mode 100644 index 0000000..4418816 --- /dev/null +++ b/debian/libgato-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/libgato-dev.install b/debian/libgato-dev.install new file mode 100644 index 0000000..3c996c8 --- /dev/null +++ b/debian/libgato-dev.install @@ -0,0 +1,6 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/pkgconfig/* +usr/lib/*.la +usr/share/pkgconfig/* diff --git a/debian/libgato1.dirs b/debian/libgato1.dirs new file mode 100644 index 0000000..6845771 --- /dev/null +++ b/debian/libgato1.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/libgato1.install b/debian/libgato1.install new file mode 100644 index 0000000..d0dbfd1 --- /dev/null +++ b/debian/libgato1.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* diff --git a/debian/postinst.ex b/debian/postinst.ex new file mode 100644 index 0000000..2e819d9 --- /dev/null +++ b/debian/postinst.ex @@ -0,0 +1,39 @@ +#!/bin/sh +# postinst script for libgato +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/postrm.ex b/debian/postrm.ex new file mode 100644 index 0000000..8fb0f3d --- /dev/null +++ b/debian/postrm.ex @@ -0,0 +1,37 @@ +#!/bin/sh +# postrm script for libgato +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/preinst.ex b/debian/preinst.ex new file mode 100644 index 0000000..b2651f3 --- /dev/null +++ b/debian/preinst.ex @@ -0,0 +1,35 @@ +#!/bin/sh +# preinst script for libgato +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/prerm.ex b/debian/prerm.ex new file mode 100644 index 0000000..933e221 --- /dev/null +++ b/debian/prerm.ex @@ -0,0 +1,38 @@ +#!/bin/sh +# prerm script for libgato +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..917d9bf --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/debian/shlibs.local.ex b/debian/shlibs.local.ex new file mode 100644 index 0000000..16d045c --- /dev/null +++ b/debian/shlibs.local.ex @@ -0,0 +1 @@ +liblibgato 1.0 libgato (>> 1.0-0), libgato (<< 1.0-99) diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/libgato.pro b/libgato.pro index d0ac273..d426b67 100644 --- a/libgato.pro +++ b/libgato.pro @@ -1,5 +1,6 @@ TEMPLATE = lib TARGET = gato +VERSION = 1.0.0 QT -= gui @@ -37,6 +38,13 @@ HEADERS += libgato_global.h gato.h \ target.path = /usr/lib INSTALLS += target +publicheaders.files = libgato_global.h gato.h \ + gatocentralmanager.h gatoperipheral.h \ + gatoservice.h gatocharacteristic.h gatodescriptor.h \ + gatouuid.h gatoaddress.h +publicheaders.path = /usr/include +INSTALLS += publicheaders + OTHER_FILES += \ qtc_packaging/debian_harmattan/rules \ qtc_packaging/debian_harmattan/README \ diff --git a/qtc_packaging/debian_harmattan/README b/qtc_packaging/debian_harmattan/README deleted file mode 100644 index dc71ef2..0000000 --- a/qtc_packaging/debian_harmattan/README +++ /dev/null @@ -1,6 +0,0 @@ -The Debian Package libgato ----------------------------- - -Comments regarding the Package - - -- Javier Tue, 03 Dec 2013 03:08:01 +0100 diff --git a/qtc_packaging/debian_harmattan/changelog b/qtc_packaging/debian_harmattan/changelog deleted file mode 100644 index 862f792..0000000 --- a/qtc_packaging/debian_harmattan/changelog +++ /dev/null @@ -1,5 +0,0 @@ -libgato (0.0.1) unstable; urgency=low - - * Initial Release. - - -- Javier Tue, 03 Dec 2013 03:08:01 +0100 diff --git a/qtc_packaging/debian_harmattan/compat b/qtc_packaging/debian_harmattan/compat deleted file mode 100644 index 7f8f011..0000000 --- a/qtc_packaging/debian_harmattan/compat +++ /dev/null @@ -1 +0,0 @@ -7 diff --git a/qtc_packaging/debian_harmattan/control b/qtc_packaging/debian_harmattan/control deleted file mode 100644 index b9a7727..0000000 --- a/qtc_packaging/debian_harmattan/control +++ /dev/null @@ -1,14 +0,0 @@ -Source: libgato -Section: devel -Priority: optional -Maintainer: Javier S. Pedro -Build-Depends: debhelper (>= 5), libqt4-dev, libbluetooth3-dev -Standards-Version: 3.7.3 -Homepage: https://gitorious.org/gato/ - -Package: libgato -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: - -XSBC-Maemo-Display-Name: Gato Library diff --git a/qtc_packaging/debian_harmattan/copyright b/qtc_packaging/debian_harmattan/copyright deleted file mode 100644 index ddbb8ce..0000000 --- a/qtc_packaging/debian_harmattan/copyright +++ /dev/null @@ -1,40 +0,0 @@ -This package was debianized by Javier on -Tue, 03 Dec 2013 03:08:01 +0100. - -It was downloaded from - -Upstream Author(s): - - - - -Copyright: - - - - -License: - - This package is free software; you can redistribute it and/or modify - it under the terms of the GNU 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this package; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -On Debian systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The Debian packaging is (C) 2013, Javier and -is licensed under the GPL, see above. - - -# Please also look if there are files or directories which have a -# different copyright/license attached and list them here. diff --git a/qtc_packaging/debian_harmattan/manifest.aegis b/qtc_packaging/debian_harmattan/manifest.aegis deleted file mode 100644 index 896fecd..0000000 --- a/qtc_packaging/debian_harmattan/manifest.aegis +++ /dev/null @@ -1,70 +0,0 @@ -AutoGenerateAegisFile - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/qtc_packaging/debian_harmattan/rules b/qtc_packaging/debian_harmattan/rules deleted file mode 100755 index 9c91c45..0000000 --- a/qtc_packaging/debian_harmattan/rules +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - - - - - -configure: configure-stamp -configure-stamp: - dh_testdir - # qmake PREFIX=/usr# Uncomment this line for use without Qt Creator - - touch configure-stamp - - -build: build-stamp - -build-stamp: configure-stamp - dh_testdir - - # Add here commands to compile the package. - # $(MAKE) # Uncomment this line for use without Qt Creator - #docbook-to-man debian/libgato.sgml > libgato.1 - - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - - # Add here commands to clean up after the build process. - $(MAKE) clean - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/libgato. - $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/libgato install - - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs - dh_installdocs - dh_installexamples -# dh_install -# dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_python -# dh_installinit -# dh_installcron -# dh_installinfo - dh_installman - dh_link - dh_strip - dh_compress - dh_fixperms -# dh_perl -# dh_makeshlibs - dh_installdeb - # dh_shlibdeps # Uncomment this line for use without Qt Creator - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure -- cgit v1.2.3