]> git.proxmox.com Git - pve-spice-protocol.git/blame - Makefile
add changelog; bump version to 0.14.0-1~pve6
[pve-spice-protocol.git] / Makefile
CommitLineData
6f824841
TL
1SOURCE=spice-protocol
2PACKAGE=libspice-protocol
70c25171 3
6f824841
TL
4PKGVERSION=0.14.0
5DEBVERSION=0.14.0-1
6PVERELEASE=pve6
7
8VERSION := $(DEBVERSION)~$(PVERELEASE)
70c25171
DM
9
10PKGDIR=spice-protocol-${PKGVERSION}
11PKGSRC=${PKGDIR}.tar.bz2
12
6f824841
TL
13ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
14GITVERSION:=$(shell cat .git/refs/heads/master)
70c25171 15
6f824841
TL
16DEB=$(PACKAGE)-dev_${VERSION}_all.deb
17DEBS=$(DEB)
70c25171 18
6f824841
TL
19all: ${DEBS}
20 echo ${DEBS}
70c25171 21
fdd3e10e 22.PHONY: deb
84efb527 23deb: $(DEB)
6f824841 24$(DEB): $(SOURCE)_$(PKGVERSION).orig.tar.bz2 $(SOURCE)_$(DEBVERSION).debian.tar.xz
70c25171 25 rm -rf ${PKGDIR}
6f824841
TL
26 tar xf $(SOURCE)_$(PKGVERSION).orig.tar.bz2
27 tar xf $(SOURCE)_$(DEBVERSION).debian.tar.xz -C $(SOURCE)-$(PKGVERSION)
28 cat changelog.Debian $(PKGDIR)/debian/changelog > $(PKGDIR)/debian/changelog.tmp
29 mv $(PKGDIR)/debian/changelog.tmp $(PKGDIR)/debian/changelog
30 cd ${PKGDIR}; dpkg-buildpackage -b -us -uc
31 lintian ${DEBS}
32
70c25171 33
06e5c7d3 34.PHONY: download
6f824841
TL
35download: $(SOURCE)_$(PKGVERSION).orig.tar.bz2 $(SOURCE)_$(DEBVERSION).debian.tar.xz
36$(SOURCE)_$(PKGVERSION).orig.tar.bz2: $(SOURCE)_$(DEBVERSION).debian.tar.xz
37$(SOURCE)_$(DEBVERSION).debian.tar.xz:
38 dget http://deb.debian.org/debian/pool/main/s/spice-protocol/spice-protocol_0.14.0-1.dsc
06e5c7d3 39
fdd3e10e 40.PHONY: upload
6f824841
TL
41upload: ${DEBS}
42 tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
fdd3e10e 43
70c25171 44distclean: clean
6f824841 45 rm -f *.tar.*
70c25171
DM
46
47.PHONY: clean
48clean:
6f824841 49 rm -rf *~ debian/*~ *.deb *.changes *.dsc *.buildinfo $(SOURCE)-*/ ${PKGDIR}
70c25171
DM
50
51.PHONY: dinstall
6f824841
TL
52dinstall: ${DEBS}
53 dpkg -i ${DEBS}