mirror of
git://git.proxmox.com/git/spiceterm.git
synced 2025-08-22 02:07:24 +00:00
Compare commits
10 Commits
50393f775e
...
cb9db49a2e
Author | SHA1 | Date | |
---|---|---|---|
|
cb9db49a2e | ||
|
6d326be392 | ||
|
1f6a49da0d | ||
|
787841818b | ||
|
2ef3e2033e | ||
|
854f72cd61 | ||
|
88e9940e14 | ||
|
d8e71f5bef | ||
|
d5137d6926 | ||
|
0c95cc53a0 |
43
Makefile
43
Makefile
@ -4,40 +4,45 @@ include /usr/share/dpkg/architecture.mk
|
||||
PACKAGE=spiceterm
|
||||
|
||||
GITVERSION:=$(shell cat .git/refs/heads/master)
|
||||
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||
BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
|
||||
|
||||
export VERSION=$(DEB_VERSION_UPSTREAM)
|
||||
DEB=$(PACKAGE)_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
|
||||
DBG_DEB=$(PACKAGE)-dbgsym_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
|
||||
DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
|
||||
|
||||
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
|
||||
DBG_DEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
|
||||
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
||||
|
||||
${BUILDDIR}: src/ debian/
|
||||
$(BUILDDIR): src/ debian/
|
||||
rm -rf $(BUILDDIR)
|
||||
rsync -a src/ debian $(BUILDDIR)
|
||||
echo "git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout ${GITVERSION}" > $(BUILDDIR)/debian/SOURCE
|
||||
echo "git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
|
||||
|
||||
.PHONY: dsc
|
||||
dsc: ${DSC}
|
||||
${DSC}: $(BUILDDIR)
|
||||
dsc: clean
|
||||
$(MAKE) $(DSC)
|
||||
lintian $(DSC)
|
||||
|
||||
$(DSC): $(BUILDDIR)
|
||||
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
|
||||
lintian ${DSC}
|
||||
|
||||
sbuild: $(DSC)
|
||||
sbuild $<
|
||||
|
||||
.PHONY: deb
|
||||
deb: ${DEB}
|
||||
${DEB}: $(BUILDDIR)
|
||||
deb: $(DEB)
|
||||
$(DEB): $(BUILDDIR)
|
||||
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
|
||||
lintian ${DEB}
|
||||
lintian $(DEB)
|
||||
|
||||
.PHONY: dinstall
|
||||
dinstall: ${DEB}
|
||||
dpkg -i ${DEB}
|
||||
dinstall: $(DEB)
|
||||
dpkg -i $(DEB)
|
||||
|
||||
.PHONY: upload
|
||||
upload: ${DEB}
|
||||
tar cf - ${DEB} ${DBG_DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch ${ARCH}
|
||||
upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
|
||||
upload: $(DEB)
|
||||
tar cf - $(DEB) $(DBG_DEB) | ssh repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST) --arch $(DEB_HOST_ARCH)
|
||||
|
||||
.PHONY: distclean clean
|
||||
distclean: clean
|
||||
clean:
|
||||
rm -rf *~ $(PACKAGE)-*/ *.deb *.changes genfont *.buildinfo *.dsc *.tar.gz
|
||||
$(MAKE) -C src $@
|
||||
rm -rf *~ $(PACKAGE)-*/ $(PACKAGE)*.tar* *.deb *.dsc *.changes *.build *.buildinfo
|
||||
|
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,3 +1,11 @@
|
||||
spiceterm (3.3.0) bookworm; urgency=medium
|
||||
|
||||
* switch to native versioning scheme
|
||||
|
||||
* re-build for Proxmox VE 12 / Debian 12 Bookworm
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Fri, 26 May 2023 15:07:46 +0200
|
||||
|
||||
spiceterm (3.2-2) bullseye; urgency=medium
|
||||
|
||||
* fix exit on client disconnect with newer libspice-server dependency's
|
||||
|
1
debian/compat
vendored
1
debian/compat
vendored
@ -1 +0,0 @@
|
||||
12
|
4
debian/control
vendored
4
debian/control
vendored
@ -2,11 +2,11 @@ Source: spiceterm
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||
Build-Depends: debhelper (>= 12),
|
||||
Build-Depends: debhelper-compat (= 13),
|
||||
libglib2.0-dev,
|
||||
libspice-protocol-dev,
|
||||
libspice-server-dev,
|
||||
Standards-Version: 4.1.3
|
||||
Standards-Version: 4.6.2
|
||||
|
||||
Package: spiceterm
|
||||
Architecture: any
|
||||
|
2
debian/copyright
vendored
2
debian/copyright
vendored
@ -1,4 +1,4 @@
|
||||
Copyright (C) 2013 Proxmox Server Solutions GmbH
|
||||
Copyright (C) 2013 - 2023 Proxmox Server Solutions GmbH
|
||||
|
||||
Copyright: spiceterm is under GNU GPL, the GNU General Public License.
|
||||
|
||||
|
3
debian/rules
vendored
3
debian/rules
vendored
@ -3,6 +3,9 @@
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
export VERSION = $(or $(DEB_VERSION_UPSTREAM), unknown)
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
|
17
src/Makefile
17
src/Makefile
@ -1,4 +1,5 @@
|
||||
PROGRAMS=spiceterm
|
||||
VERSION ?= $(or $(shell git rev-parse --short HEAD), unknown)
|
||||
|
||||
HEADERS=translations.h event_loop.h glyphs.h spiceterm.h keysyms.h
|
||||
SOURCES=screen.c event_loop.c input.c spiceterm.c auth-pve.c
|
||||
@ -10,10 +11,10 @@ LIBS += `pkg-config --libs $(PKGS)`
|
||||
#export G_MESSAGES_DEBUG=all
|
||||
#export SPICE_DEBUG=1
|
||||
|
||||
all: ${PROGRAMS}
|
||||
all: $(PROGRAMS)
|
||||
|
||||
spiceterm: ${SOURCES} ${HEADERS} spiceterm.c
|
||||
gcc -Werror -Wall -Wl,-z,relro -Wtype-limits ${SOURCES} -g -O2 $(CFLAGS) -o $@ -lutil $(LIBS)
|
||||
spiceterm: $(SOURCES) $(HEADERS) spiceterm.c
|
||||
gcc -Werror -Wall -Wl,-z,relro -Wtype-limits $(SOURCES) -g -O2 $(CFLAGS) -o $@ -lutil $(LIBS)
|
||||
|
||||
genfont: genfont.c
|
||||
gcc -g -O2 -o $@ genfont.c -Wall -D_GNU_SOURCE -lz
|
||||
@ -27,14 +28,14 @@ glyphs: genfont
|
||||
|
||||
spiceterm.1: spiceterm.pod
|
||||
rm -f $@
|
||||
pod2man -n $< -s 1 -r ${VERSION} <$< >$@
|
||||
pod2man -n $< -s 1 -r $(VERSION) <$< >$@
|
||||
|
||||
.PHONY: install
|
||||
install: spiceterm spiceterm.1
|
||||
mkdir -p ${DESTDIR}/usr/share/man/man1
|
||||
install -m 0644 spiceterm.1 ${DESTDIR}/usr/share/man/man1
|
||||
mkdir -p ${DESTDIR}/usr/bin
|
||||
install -m 0755 spiceterm ${DESTDIR}/usr/bin
|
||||
mkdir -p $(DESTDIR)/usr/share/man/man1
|
||||
install -m 0644 spiceterm.1 $(DESTDIR)/usr/share/man/man1
|
||||
mkdir -p $(DESTDIR)/usr/bin
|
||||
install -m 0755 spiceterm $(DESTDIR)/usr/bin
|
||||
|
||||
.PHONY: test
|
||||
test: spiceterm
|
||||
|
Loading…
x
Reference in New Issue
Block a user