]>
Commit | Line | Data |
---|---|---|
86cdaac6 | 1 | RELEASE=4.0 |
f47a4a98 DM |
2 | |
3 | PACKAGE=pve-libspice-server1 | |
1636a5de | 4 | PKGVERSION=0.14.1 |
925955e9 | 5 | PKGRELEASE=2 |
f47a4a98 DM |
6 | |
7 | PKGDIR=spice-${PKGVERSION} | |
8 | PKGSRC=${PKGDIR}.tar.bz2 | |
9 | ||
10 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
e94c7b8c | 11 | GITVERSION:=$(shell cat .git/refs/heads/master) |
f47a4a98 | 12 | |
c5035f95 WB |
13 | DEB=pve-libspice-server1_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb |
14 | DEB_DBG=pve-libspice-server-dev_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb | |
15 | DEBS=$(DEB) $(DEB_DBG) | |
f47a4a98 | 16 | |
f47a4a98 DM |
17 | all: ${DEBS} |
18 | echo ${DEBS} | |
19 | ||
c5035f95 WB |
20 | .PHONY: deb |
21 | deb: $(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 | |
6c083f45 | 29 | cd pki/; cp ca-cert.pem server-cert.pem server-key.pem ../${PKGDIR}/server/tests/pki/ |
e94c7b8c | 30 | echo "git clone git://git.proxmox.com/git/pve-libspice-server.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE |
7e6560eb | 31 | cd ${PKGDIR}; dpkg-buildpackage -b -us -uc |
387153c0 | 32 | lintian ${DEBS} |
f47a4a98 DM |
33 | |
34 | ||
35 | .PHONY: download | |
36 | download: | |
37 | rm -f ${PKGSRC} | |
1636a5de | 38 | wget http://spice-space.org/download/releases/spice-server/spice-${PKGVERSION}.tar.bz2 |
f47a4a98 DM |
39 | |
40 | .PHONY: upload | |
41 | upload: ${DEBS} | |
967172cc | 42 | tar cf - ${DEBS}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} |
f47a4a98 DM |
43 | |
44 | distclean: clean | |
45 | ||
46 | .PHONY: clean | |
47 | clean: | |
407b666c | 48 | rm -rf *~ debian/*~ *_${ARCH}.deb *.changes *.dsc *.buildinfo ${PKGDIR} |
f47a4a98 DM |
49 | |
50 | .PHONY: dinstall | |
51 | dinstall: ${DEBS} | |
52 | dpkg -i ${DEBS} |