]> git.proxmox.com Git - pve-libspice-server.git/blame - Makefile
add gitignore
[pve-libspice-server.git] / Makefile
CommitLineData
86cdaac6 1RELEASE=4.0
f47a4a98
DM
2
3PACKAGE=pve-libspice-server1
1636a5de 4PKGVERSION=0.14.1
6197f317 5PKGRELEASE=1
f47a4a98
DM
6
7PKGDIR=spice-${PKGVERSION}
8PKGSRC=${PKGDIR}.tar.bz2
9
10ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
e94c7b8c 11GITVERSION:=$(shell cat .git/refs/heads/master)
f47a4a98 12
c5035f95
WB
13DEB=pve-libspice-server1_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb
14DEB_DBG=pve-libspice-server-dev_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb
15DEBS=$(DEB) $(DEB_DBG)
f47a4a98 16
f47a4a98
DM
17all: ${DEBS}
18 echo ${DEBS}
19
c5035f95
WB
20.PHONY: deb
21deb: $(DEB)
22$(DEB_DBG): $(DEB)
23$(DEB): ${PKGSRC}
f47a4a98
DM
24 echo ${DEBS}
25 rm -rf ${PKGDIR}
26 tar xf ${PKGSRC}
f47a4a98
DM
27 # now compile spice server
28 cp -a debian ${PKGDIR}/debian
e94c7b8c 29 echo "git clone git://git.proxmox.com/git/pve-libspice-server.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE
7e6560eb 30 cd ${PKGDIR}; dpkg-buildpackage -b -us -uc
f47a4a98
DM
31
32
33.PHONY: download
34download:
35 rm -f ${PKGSRC}
1636a5de 36 wget http://spice-space.org/download/releases/spice-server/spice-${PKGVERSION}.tar.bz2
f47a4a98
DM
37
38.PHONY: upload
39upload: ${DEBS}
967172cc 40 tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
f47a4a98
DM
41
42distclean: clean
43
44.PHONY: clean
45clean:
407b666c 46 rm -rf *~ debian/*~ *_${ARCH}.deb *.changes *.dsc *.buildinfo ${PKGDIR}
f47a4a98
DM
47
48.PHONY: dinstall
49dinstall: ${DEBS}
50 dpkg -i ${DEBS}