From cd7c0953938bb25ee991dc087215374545964e98 Mon Sep 17 00:00:00 2001 From: Jussi Laako Date: Thu, 4 Jul 2013 16:05:59 +0300 Subject: [PATCH] packaging: add ubuntu/debian packaging --- .gitignore | 1 - dists/debian/README.Debian | 6 ++++ dists/debian/changelog | 5 +++ dists/debian/compat | 1 + dists/debian/control | 27 ++++++++++++++++ dists/debian/copyright | 33 +++++++++++++++++++ dists/debian/docs | 3 ++ dists/debian/install | 1 + dists/debian/libgsignon-glib-dev.install | 5 +++ dists/debian/libgsignon-glib-doc.docs | 1 + dists/debian/libgsignon-glib-doc.install | 1 + dists/debian/postinst | 40 ++++++++++++++++++++++++ dists/debian/postrm | 38 ++++++++++++++++++++++ dists/debian/preinst | 37 ++++++++++++++++++++++ dists/debian/prerm | 38 ++++++++++++++++++++++ dists/debian/rules | 19 +++++++++++ dists/debian/source/format | 1 + 17 files changed, 256 insertions(+), 1 deletion(-) create mode 100644 dists/debian/README.Debian create mode 100644 dists/debian/changelog create mode 100644 dists/debian/compat create mode 100644 dists/debian/control create mode 100644 dists/debian/copyright create mode 100644 dists/debian/docs create mode 100644 dists/debian/install create mode 100644 dists/debian/libgsignon-glib-dev.install create mode 100644 dists/debian/libgsignon-glib-doc.docs create mode 100644 dists/debian/libgsignon-glib-doc.install create mode 100644 dists/debian/postinst create mode 100644 dists/debian/postrm create mode 100644 dists/debian/preinst create mode 100644 dists/debian/prerm create mode 100755 dists/debian/rules create mode 100644 dists/debian/source/format diff --git a/.gitignore b/.gitignore index 9af21f0..4b0b3f3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ aclocal.m4 /build-aux/ configure config.* -debian /docs/reference/html/ /docs/reference/libgsignon-glib* !/docs/reference/libgsignon-glib-sections.txt diff --git a/dists/debian/README.Debian b/dists/debian/README.Debian new file mode 100644 index 0000000..cf44e12 --- /dev/null +++ b/dists/debian/README.Debian @@ -0,0 +1,6 @@ +The Debian Package libgsignon-glib +---------------------------------- + +This is default Debian packaging for libgsignon-glib. + + -- Jussi Laako Thu, 04 Jul 2013 15:28:50 +0300 diff --git a/dists/debian/changelog b/dists/debian/changelog new file mode 100644 index 0000000..8c8b872 --- /dev/null +++ b/dists/debian/changelog @@ -0,0 +1,5 @@ +libgsignon-glib (2.0.1-1) unstable; urgency=low + + * Initial Release. + + -- Jussi Laako Thu, 04 Jul 2013 15:28:50 +0300 diff --git a/dists/debian/compat b/dists/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/dists/debian/compat @@ -0,0 +1 @@ +8 diff --git a/dists/debian/control b/dists/debian/control new file mode 100644 index 0000000..176177d --- /dev/null +++ b/dists/debian/control @@ -0,0 +1,27 @@ +Source: libgsignon-glib +Section: net +Priority: extra +Maintainer: Jussi Laako +Build-Depends: debhelper (>= 8.0.0), autotools-dev, pkg-config, libdbus-1-dev, gtk-doc-tools, gobject-introspection, libglib2.0-dev, libgirepository1.0-dev +Standards-Version: 3.9.2 +Homepage: https://01.org/gsso +Vcs-Git: http://code.google.com/p/accounts-sso.libgsignon-glib/ +Vcs-Browser: http://code.google.com/p/accounts-sso/source/browse/?repo=libgsignon-glib + +Package: libgsignon-glib +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: gSSO client library + gSSO is a single sign-on framework, providing secure storage and single sign-on service. + +Package: libgsignon-glib-dev +Architecture: any +Depends: ${shlibs:Depens}, ${misc:Depends} +Description: development files for libgsignon-glib + Headers and libraries necessary for developing applications using gSSO. + +Package: libgsignon-glib-doc +Architecture: all +Description: documentation for libgsignon-glib + Developer documentation for developing applications using gSSO. + diff --git a/dists/debian/copyright b/dists/debian/copyright new file mode 100644 index 0000000..13542e8 --- /dev/null +++ b/dists/debian/copyright @@ -0,0 +1,33 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: libgsignon-glib +Source: http://code.google.com/p/accounts-sso/source/checkout?repo=libgsignon-glib + +Files: * +Copyright: 2009 - 2010 Nokia Corporation + 2012 - 2013 Intel Corporation + 2012 - 2013 Canonical Ltd +License: LGPL-2.1+ + +Files: debian/* +Copyright: 2013 Jussi Laako +License: LGPL-2.1+ + +License: LGPL-2.1+ + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 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 + Lesser 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 Lesser General + Public License can be found in "/usr/share/common-licenses/LGPL-2.1". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/dists/debian/docs b/dists/debian/docs new file mode 100644 index 0000000..6f83607 --- /dev/null +++ b/dists/debian/docs @@ -0,0 +1,3 @@ +AUTHORS +NEWS +README diff --git a/dists/debian/install b/dists/debian/install new file mode 100644 index 0000000..e74280f --- /dev/null +++ b/dists/debian/install @@ -0,0 +1 @@ +/usr/lib/libgsignon-glib.so.* diff --git a/dists/debian/libgsignon-glib-dev.install b/dists/debian/libgsignon-glib-dev.install new file mode 100644 index 0000000..88332b2 --- /dev/null +++ b/dists/debian/libgsignon-glib-dev.install @@ -0,0 +1,5 @@ +/usr/include/libgsignon-glib/* +/usr/lib/libgsignon-glib.so +/usr/lib/libgsignon-glib*.la +/usr/lib/pkgconfig/libgsignon-glib.pc +/usr/lib/girepository-1.0/gSignon-1.0.typelib diff --git a/dists/debian/libgsignon-glib-doc.docs b/dists/debian/libgsignon-glib-doc.docs new file mode 100644 index 0000000..d4f4542 --- /dev/null +++ b/dists/debian/libgsignon-glib-doc.docs @@ -0,0 +1 @@ +#DOCS# diff --git a/dists/debian/libgsignon-glib-doc.install b/dists/debian/libgsignon-glib-doc.install new file mode 100644 index 0000000..c3de110 --- /dev/null +++ b/dists/debian/libgsignon-glib-doc.install @@ -0,0 +1 @@ +/usr/share/gtk-doc/html/libgsignon-glib/* diff --git a/dists/debian/postinst b/dists/debian/postinst new file mode 100644 index 0000000..f6b7327 --- /dev/null +++ b/dists/debian/postinst @@ -0,0 +1,40 @@ +#!/bin/sh +# postinst script for libgsignon-glib +# +# 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) + ldconfig + ;; + + 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/dists/debian/postrm b/dists/debian/postrm new file mode 100644 index 0000000..756665a --- /dev/null +++ b/dists/debian/postrm @@ -0,0 +1,38 @@ +#!/bin/sh +# postrm script for libgsignon-glib +# +# 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) + ldconfig + ;; + + *) + 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/dists/debian/preinst b/dists/debian/preinst new file mode 100644 index 0000000..2833b93 --- /dev/null +++ b/dists/debian/preinst @@ -0,0 +1,37 @@ +#!/bin/sh +# preinst script for libgsignon-glib +# +# 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/dists/debian/prerm b/dists/debian/prerm new file mode 100644 index 0000000..1d1747f --- /dev/null +++ b/dists/debian/prerm @@ -0,0 +1,38 @@ +#!/bin/sh +# prerm script for libgsignon-glib +# +# 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/dists/debian/rules b/dists/debian/rules new file mode 100755 index 0000000..785aaae --- /dev/null +++ b/dists/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +DEB_CONFIGURE_EXTRA_FLAGS += --enable-dbus-type=session + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +%: + dh $@ --parallel + +override_dh_auto_configure: + dh_auto_configure -- --enable-dbus-type=session --enable-gtk-doc --enable-introspection=yes + +override_dh_auto_test: + true diff --git a/dists/debian/source/format b/dists/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/dists/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- 2.34.1