From 3777ece9f9e68a0ef0f4a9d6095ccd0d93d83cd4 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 31 Oct 2013 07:07:43 +0100 Subject: [PATCH] build debian packages --- Makefile | 27 +++++++++++++++++++++++++-- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 13 +++++++++++++ debian/docs | 2 ++ debian/rules | 10 ++++++++++ 6 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/docs create mode 100755 debian/rules diff --git a/Makefile b/Makefile index 27c4298..93d8ae3 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,13 @@ +RELEASE=3.1 + +PACKAGE=spiceterm +VERSION=1.0 +PACKAGERELEASE=1 + +ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) +GITVERSION:=$(shell cat .git/refs/heads/master) + +DEB=${PACKAGE}_${VERSION}-${PACKAGERELEASE}_${ARCH}.deb PROGRAMS=spiceterm @@ -23,12 +33,25 @@ glyphs: genfont ./genfont > glyphs.h .PHONY: install -install: +install: spiceterm mkdir -p ${DESTDIR}/usr/share/doc/${PACKAGE} + install -m 0644 copyright ${DESTDIR}/usr/share/doc/${PACKAGE} mkdir -p ${DESTDIR}/usr/share/man/man1 mkdir -p ${DESTDIR}/usr/bin install -s -m 0755 spiceterm ${DESTDIR}/usr/bin +.PHONY: deb +${DEB} deb: + make clean + rsync -a . --exclude build build + echo "git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE + cd build; dpkg-buildpackage -rfakeroot -b -us -uc + lintian ${DEB} + +.PHONY: dinstall +dinstall: ${DEB} + dpkg -i ${DEB} + .PHONY: test test: spiceterm ./spiceterm --noauth --keymap de & remote-viewer spice://localhost?tls-port=5900 @@ -39,4 +62,4 @@ distclean: clean .PHONY: clean clean: - rm -rf *~ ${PROGRAMS} \ No newline at end of file + rm -rf *~ ${PROGRAMS} build *.deb *.changes diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ac2e73d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +spiceterm (1.0-1) unstable; urgency=low + + * Initial release + + -- Proxmox Support Team Thu, 31 Oct 2013 06:43:34 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..fd9a833 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: spiceterm +Section: admin +Priority: extra +Maintainer: Proxmox Support Team +Build-Depends: debhelper (>= 8.0.0) +Standards-Version: 3.9.3 + +Package: spiceterm +Architecture: any +Depends: pve-qemu-kvm, pve-libspice-server1, ${shlibs:Depends}, ${misc:Depends} +Description: SPICE Terminal Emulator + With spiceterm you can start commands and export its standard input and + output to any SPICE client (simulating a xterm Terminal). diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..310840d --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README +debian/SOURCE diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2d0b075 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_test: + # do nothing