mirror of
https://git.proxmox.com/git/libqb
synced 2025-08-22 12:37:46 +00:00

we cannot bump the part before ~ to ensure the upgrade to Debian pull in the for Buster build version (it's 1.0.5-1 there, tilde makes ours always the lesser choice) so add a +2 which ranks (in terms of importance) before the older "1.0.5-1~bpo9" but after 1.0.5-1 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
VERSION=1.0.5
|
|
DEBRELEASE=1
|
|
PVERELEASE=1~bpo9+2
|
|
|
|
BUILDDIR=libqb-${VERSION}
|
|
SRCARCHIVE=libqb_${VERSION}.orig.tar.xz
|
|
DEBARCHIVE=libqb_${VERSION}-${DEBRELEASE}.debian.tar.xz
|
|
|
|
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
|
|
|
MAIN_DEB=libqb0_${VERSION}-${PVERELEASE}_${ARCH}.deb
|
|
OTHER_DEBS= \
|
|
libqb-doc_${VERSION}-${PVERELEASE}_all.deb \
|
|
libqb0-dbgsym_${VERSION}-${PVERELEASE}_${ARCH}.deb \
|
|
libqb-dev_${VERSION}-${PVERELEASE}_${ARCH}.deb \
|
|
libqb-dev-dbgsym_${VERSION}-${PVERELEASE}_${ARCH}.deb \
|
|
|
|
DEBS=${MAIN_DEB} ${OTHER_DEBS}
|
|
DSC=libqb-${VERSION}-${PVERELEASE}.dsc
|
|
|
|
all: ${DEBS}
|
|
echo ${DEBS}
|
|
|
|
${BUILDDIR}: upstream/${SRCARCHIVE} upstream/${DEBARCHIVE} patches/*
|
|
rm -rf ${BUILDDIR}
|
|
ln -sf upstream/${SRCARCHIVE} ${SRCARCHIVE}
|
|
tar -xf upstream/${SRCARCHIVE}
|
|
tar -C ${BUILDDIR} -xf upstream/${DEBARCHIVE}
|
|
cd ${BUILDDIR}; ln -s ../patches patches
|
|
cd ${BUILDDIR}; quilt push -a
|
|
cd ${BUILDDIR}; rm -rf .pc ./patches
|
|
|
|
deb: ${DEBS}
|
|
${OTHER_DEBS}: ${MAIN_DEB}
|
|
${MAIN_DEB}: ${BUILDDIR}
|
|
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
|
|
|
|
dsc: ${DSC}
|
|
${DSC}: ${BUILDDIR}
|
|
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
|
|
|
|
download:
|
|
rm -rf upstream/
|
|
mkdir upstream
|
|
cd upstream; dget https://deb.debian.org/debian/pool/main/libq/libqb/libqb_${VERSION}-${DEBRELEASE}.dsc
|
|
cd upstream; rm -rf *.asc *.dsc ${BUILDDIR}
|
|
|
|
.PHONY: upload
|
|
upload: ${DEBS}
|
|
tar cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf *~ debian/*~ *.deb *.changes *.dsc ${BUILDDIR} *.orig.tar.xz *.debian.tar.xz *.buildinfo
|
|
|
|
.PHONY: dinstall
|
|
dinstall: ${DEBS}
|
|
dpkg -i ${DEBS}
|