Commit 99bfc16f authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

Add a makefile for building debian packages This allow building debian source...

Add a makefile for building debian packages This allow building debian source package from sdist. This is cleaner than building from hg clone because we ensure to only include what's listed in sdist MANIFEST.in in upstream tarball. The deb-zip target allow to build a zip for the source package, suitable as input of https://jenkins.intra.logilab.fr/job/pkg-from-dsc The deb target build the binary packages using sbuild.
parent b9d979d471a5
Pipeline #16691 passed with stage
in 1 minute and 31 seconds
...@@ -10,3 +10,4 @@ recursive-include debian changelog compat control copyright rules ...@@ -10,3 +10,4 @@ recursive-include debian changelog compat control copyright rules
include cubicweb-squareui.spec include cubicweb-squareui.spec
include README.rst include README.rst
exclude .gitlab-ci.yml exclude .gitlab-ci.yml
exclude Makefile
VERSION=$(shell python2 setup.py --version)
DEBVERSION=$(shell dpkg-parsechangelog -S Version)
clean:
rm -rf dist
sdist:
python2 setup.py sdist
.ONESHELL:
deb-src: clean sdist
cd dist
tar xf cubicweb-squareui-${VERSION}.tar.gz
cd cubicweb-squareui-${VERSION}
cp -a ../../debian .
mk-origtargz --rename ../cubicweb-squareui-${VERSION}.tar.gz
dpkg-buildpackage -us -uc -sa --no-check-builddeps --build=source
.ONESHELL:
deb-zip: deb-src
cd dist
dcmd zip latest.zip *.changes
.ONESHELL:
deb: clean sdist
mk-origtargz dist/cubicweb-squareui-${VERSION}.tar.gz
dpkg-buildpackage -us -uc
.PHONY: clean sdist deb-src deb-zip deb deb-sbuild
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment