From b669b93522ba509d15229aca3921620b0655cee8 Mon Sep 17 00:00:00 2001 From: Brian McGillion Date: Wed, 25 Apr 2012 12:06:57 +0300 Subject: [PATCH] Add initial debian package support --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 37 +++++++++++++++++++++++++++++++++++++ debian/copyright | 21 +++++++++++++++++++++ debian/libsmack-dev.install | 3 +++ debian/libsmack.install | 2 ++ debian/rules | 12 ++++++++++++ debian/smack-utils.install | 1 + debian/source/format | 1 + 9 files changed, 83 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/libsmack-dev.install create mode 100644 debian/libsmack.install create mode 100755 debian/rules create mode 100644 debian/smack-utils.install create mode 100644 debian/source/format diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..affadf9 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +smack (1.0) unstable; urgency=low + + * Initial package release for debian + + -- Brian McGillion Wed, 25 Apr 2012 11:00:09 +0900 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..14803bb --- /dev/null +++ b/debian/control @@ -0,0 +1,37 @@ +Source: smack +Section: Administration +Priority: Optional +Maintainer: Brian McGillion +Build-Depends: debhelper (>= 7.0.50), autoconf, libtool, dh-autoreconf +Standards-Version: 3.9.1 +Vcs-Git: git://github.com/organizations/smack-team/smack.git +Vcs-Browser: https://github.com/organizations/smack-team/smack + +Package: libsmack +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Package to interact with Smack + Library allows applications to work with Smack. + +Package: libsmack-dev +Section: devel +Architecture: any +Depends: ${misc:Depends}, libsmack (= ${binary:Version}) +Description: Developmnent headers and libs for libsmack + +Package: libsmack-dbg +Section: debug +Architecture: any +Depends: ${misc:Depends}, libsmack (= ${binary:Version}) +Description: Debug symbols for libsmack + +Package: smack-utils +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libsmack (= ${binary:Version}) +Description: A selection of tools for developers working with Smack. + +Package: smack-utils-dbg +Section: debug +Architecture: any +Depends: ${misc:Depends}, smack-utils (= ${binary:Version}) +Description: Debug symbols for smack-utils diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..87d0945 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: smack +Source: https://github.com/organizations/smack-team/smack + +Files: debian/../* +Copyright: 2012 Intel Corperation +License: LGPL-V2 + 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; version 2 of the License. + . + 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 Lesser General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU Lesser General + Public License version 2 can be found in "/usr/share/common-licenses/LGPL-2". diff --git a/debian/libsmack-dev.install b/debian/libsmack-dev.install new file mode 100644 index 0000000..66a83f4 --- /dev/null +++ b/debian/libsmack-dev.install @@ -0,0 +1,3 @@ +usr/include/sys/*.h +usr/lib/libsmack.so +usr/lib/pkgconfig/* diff --git a/debian/libsmack.install b/debian/libsmack.install new file mode 100644 index 0000000..1bc7ae1 --- /dev/null +++ b/debian/libsmack.install @@ -0,0 +1,2 @@ +usr/lib/libsmack.so.1 +usr/lib/libsmack.so.1.0.0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b60ff97 --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh --with autoreconf $@ + +.PHONY: override_dh_strip +override_dh_strip: + dh_strip -plibsmack --dbg-package=libsmack-dbg + dh_strip -psmack-utils --dbg-package=smack-utils-dbg diff --git a/debian/smack-utils.install b/debian/smack-utils.install new file mode 100644 index 0000000..1df36c6 --- /dev/null +++ b/debian/smack-utils.install @@ -0,0 +1 @@ +usr/bin/* diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) -- 2.7.4