5
0
mirror of git://git.proxmox.com/git/spiceterm.git synced 2024-12-31 17:17:55 +03:00

build debian packages

This commit is contained in:
Dietmar Maurer 2013-10-31 07:07:43 +01:00
parent b06b4cdc97
commit 3777ece9f9
6 changed files with 56 additions and 2 deletions

View File

@ -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}
rm -rf *~ ${PROGRAMS} build *.deb *.changes

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
spiceterm (1.0-1) unstable; urgency=low
* Initial release
-- Proxmox Support Team <support@proxmox.com> Thu, 31 Oct 2013 06:43:34 +0100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
8

13
debian/control vendored Normal file
View File

@ -0,0 +1,13 @@
Source: spiceterm
Section: admin
Priority: extra
Maintainer: Proxmox Support Team <support@proxmox.com>
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).

2
debian/docs vendored Normal file
View File

@ -0,0 +1,2 @@
README
debian/SOURCE

10
debian/rules vendored Executable file
View File

@ -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