2
0
mirror of git://git.proxmox.com/git/pve-spice-protocol.git synced 2025-08-22 02:07:37 +00:00

54 lines
1.4 KiB
Makefile
Raw Normal View History

SOURCE=spice-protocol
PACKAGE=libspice-protocol
2013-08-19 12:43:49 +02:00
PKGVERSION=0.14.0
DEBVERSION=0.14.0-1
PVERELEASE=pve6
VERSION := $(DEBVERSION)~$(PVERELEASE)
2013-08-19 12:43:49 +02:00
PKGDIR=spice-protocol-${PKGVERSION}
PKGSRC=${PKGDIR}.tar.bz2
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
GITVERSION:=$(shell cat .git/refs/heads/master)
2013-08-19 12:43:49 +02:00
DEB=$(PACKAGE)-dev_${VERSION}_all.deb
DEBS=$(DEB)
2013-08-19 12:43:49 +02:00
all: ${DEBS}
echo ${DEBS}
2013-08-19 12:43:49 +02:00
2016-07-14 07:07:11 +02:00
.PHONY: deb
deb: $(DEB)
$(DEB): $(SOURCE)_$(PKGVERSION).orig.tar.bz2 $(SOURCE)_$(DEBVERSION).debian.tar.xz
2013-08-19 12:43:49 +02:00
rm -rf ${PKGDIR}
tar xf $(SOURCE)_$(PKGVERSION).orig.tar.bz2
tar xf $(SOURCE)_$(DEBVERSION).debian.tar.xz -C $(SOURCE)-$(PKGVERSION)
cat changelog.Debian $(PKGDIR)/debian/changelog > $(PKGDIR)/debian/changelog.tmp
mv $(PKGDIR)/debian/changelog.tmp $(PKGDIR)/debian/changelog
cd ${PKGDIR}; dpkg-buildpackage -b -us -uc
lintian ${DEBS}
2013-08-19 12:43:49 +02:00
.PHONY: download
download: $(SOURCE)_$(PKGVERSION).orig.tar.bz2 $(SOURCE)_$(DEBVERSION).debian.tar.xz
$(SOURCE)_$(PKGVERSION).orig.tar.bz2: $(SOURCE)_$(DEBVERSION).debian.tar.xz
$(SOURCE)_$(DEBVERSION).debian.tar.xz:
dget http://deb.debian.org/debian/pool/main/s/spice-protocol/spice-protocol_0.14.0-1.dsc
2016-07-14 07:07:11 +02:00
.PHONY: upload
upload: ${DEBS}
tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
2016-07-14 07:07:11 +02:00
2013-08-19 12:43:49 +02:00
distclean: clean
rm -f *.tar.*
2013-08-19 12:43:49 +02:00
.PHONY: clean
clean:
rm -rf *~ debian/*~ *.deb *.changes *.dsc *.buildinfo $(SOURCE)-*/ ${PKGDIR}
2013-08-19 12:43:49 +02:00
.PHONY: dinstall
dinstall: ${DEBS}
dpkg -i ${DEBS}