packaging: add ubuntu/debian packaging
authorJussi Laako <jussi.laako@linux.intel.com>
Thu, 4 Jul 2013 13:05:59 +0000 (16:05 +0300)
committerJussi Laako <jussi.laako@linux.intel.com>
Thu, 4 Jul 2013 13:05:59 +0000 (16:05 +0300)
17 files changed:
.gitignore
dists/debian/README.Debian [new file with mode: 0644]
dists/debian/changelog [new file with mode: 0644]
dists/debian/compat [new file with mode: 0644]
dists/debian/control [new file with mode: 0644]
dists/debian/copyright [new file with mode: 0644]
dists/debian/docs [new file with mode: 0644]
dists/debian/install [new file with mode: 0644]
dists/debian/libgsignon-glib-dev.install [new file with mode: 0644]
dists/debian/libgsignon-glib-doc.docs [new file with mode: 0644]
dists/debian/libgsignon-glib-doc.install [new file with mode: 0644]
dists/debian/postinst [new file with mode: 0644]
dists/debian/postrm [new file with mode: 0644]
dists/debian/preinst [new file with mode: 0644]
dists/debian/prerm [new file with mode: 0644]
dists/debian/rules [new file with mode: 0755]
dists/debian/source/format [new file with mode: 0644]

index 9af21f0..4b0b3f3 100644 (file)
@@ -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 (file)
index 0000000..cf44e12
--- /dev/null
@@ -0,0 +1,6 @@
+The Debian Package libgsignon-glib
+----------------------------------
+
+This is default Debian packaging for libgsignon-glib.
+
+ -- Jussi Laako <jussi.laako@linux.intel.com>  Thu, 04 Jul 2013 15:28:50 +0300
diff --git a/dists/debian/changelog b/dists/debian/changelog
new file mode 100644 (file)
index 0000000..8c8b872
--- /dev/null
@@ -0,0 +1,5 @@
+libgsignon-glib (2.0.1-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Jussi Laako <jussi.laako@linux.intel.com>  Thu, 04 Jul 2013 15:28:50 +0300
diff --git a/dists/debian/compat b/dists/debian/compat
new file mode 100644 (file)
index 0000000..45a4fb7
--- /dev/null
@@ -0,0 +1 @@
+8
diff --git a/dists/debian/control b/dists/debian/control
new file mode 100644 (file)
index 0000000..176177d
--- /dev/null
@@ -0,0 +1,27 @@
+Source: libgsignon-glib
+Section: net
+Priority: extra
+Maintainer: Jussi Laako <jussi.laako@linux.intel.com>
+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 (file)
index 0000000..13542e8
--- /dev/null
@@ -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 <jussi.laako@linux.intel.com>
+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 <http://www.gnu.org/licenses/>.
+ .
+ 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 (file)
index 0000000..6f83607
--- /dev/null
@@ -0,0 +1,3 @@
+AUTHORS
+NEWS
+README
diff --git a/dists/debian/install b/dists/debian/install
new file mode 100644 (file)
index 0000000..e74280f
--- /dev/null
@@ -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 (file)
index 0000000..88332b2
--- /dev/null
@@ -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 (file)
index 0000000..d4f4542
--- /dev/null
@@ -0,0 +1 @@
+#DOCS#
diff --git a/dists/debian/libgsignon-glib-doc.install b/dists/debian/libgsignon-glib-doc.install
new file mode 100644 (file)
index 0000000..c3de110
--- /dev/null
@@ -0,0 +1 @@
+/usr/share/gtk-doc/html/libgsignon-glib/*
diff --git a/dists/debian/postinst b/dists/debian/postinst
new file mode 100644 (file)
index 0000000..f6b7327
--- /dev/null
@@ -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:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# 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 (file)
index 0000000..756665a
--- /dev/null
@@ -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:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# 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 (file)
index 0000000..2833b93
--- /dev/null
@@ -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:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# 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 (file)
index 0000000..1d1747f
--- /dev/null
@@ -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:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# 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 (executable)
index 0000000..785aaae
--- /dev/null
@@ -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 (file)
index 0000000..89ae9db
--- /dev/null
@@ -0,0 +1 @@
+3.0 (native)