2019-10-22 15:24:25 +02:00
|
|
|
SOURCE=spice-protocol
|
|
|
|
PACKAGE=libspice-protocol
|
2013-08-19 12:43:49 +02:00
|
|
|
|
2019-10-22 15:24:25 +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
|
|
|
|
|
2019-10-22 15:24:25 +02:00
|
|
|
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
|
|
|
GITVERSION:=$(shell cat .git/refs/heads/master)
|
2013-08-19 12:43:49 +02:00
|
|
|
|
2019-10-22 15:24:25 +02:00
|
|
|
DEB=$(PACKAGE)-dev_${VERSION}_all.deb
|
|
|
|
DEBS=$(DEB)
|
2013-08-19 12:43:49 +02:00
|
|
|
|
2019-10-22 15:24:25 +02:00
|
|
|
all: ${DEBS}
|
|
|
|
echo ${DEBS}
|
2013-08-19 12:43:49 +02:00
|
|
|
|
2016-07-14 07:07:11 +02:00
|
|
|
.PHONY: deb
|
2018-09-26 15:09:30 +02:00
|
|
|
deb: $(DEB)
|
2019-10-22 15:24:25 +02:00
|
|
|
$(DEB): $(SOURCE)_$(PKGVERSION).orig.tar.bz2 $(SOURCE)_$(DEBVERSION).debian.tar.xz
|
2013-08-19 12:43:49 +02:00
|
|
|
rm -rf ${PKGDIR}
|
2019-10-22 15:24:25 +02:00
|
|
|
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
|
|
|
|
2018-09-26 15:09:31 +02:00
|
|
|
.PHONY: download
|
2019-10-22 15:24:25 +02:00
|
|
|
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
|
2018-09-26 15:09:31 +02:00
|
|
|
|
2016-07-14 07:07:11 +02:00
|
|
|
.PHONY: upload
|
2019-10-22 15:24:25 +02:00
|
|
|
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
|
2019-10-22 15:24:25 +02:00
|
|
|
rm -f *.tar.*
|
2013-08-19 12:43:49 +02:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2019-10-22 15:24:25 +02:00
|
|
|
rm -rf *~ debian/*~ *.deb *.changes *.dsc *.buildinfo $(SOURCE)-*/ ${PKGDIR}
|
2013-08-19 12:43:49 +02:00
|
|
|
|
|
|
|
.PHONY: dinstall
|
2019-10-22 15:24:25 +02:00
|
|
|
dinstall: ${DEBS}
|
|
|
|
dpkg -i ${DEBS}
|