| 1 |
|
| 2 |
include /usr/share/dpkg/pkg-info.mk |
| 3 |
|
| 4 |
DEBVERS ?= $(shell dpkg-parsechangelog -SVersion) |
| 5 |
VERSION ?= $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//') |
| 6 |
DEBFLAVOR ?= $(shell dpkg-parsechangelog -SDistribution) |
| 7 |
DEBPKGNAME ?= $(shell dpkg-parsechangelog -SSource) |
| 8 |
UPSTREAM_GIT ?= https://github.com/openstack/$(DEBPKGNAME).git |
| 9 |
GIT_TAG ?= $(shell echo '$(VERSION)' | sed -e 's/~/_/') |
| 10 |
MANIFEST_EXCLUDE_STANDARD ?= $(DEBPKGNAME) |
| 11 |
DEBIAN_BRANCH ?= $(shell cat debian/gbp.conf | grep debian-branch | cut -d'=' -f2 | awk '{print $1}') |
| 12 |
|
| 13 |
export OSLO_PACKAGE_VERSION=$(shell dpkg-parsechangelog -SVersion | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~/.0/' -e 's/+dfsg1//' | head -n 1) |
| 14 |
|
| 15 |
|
| 16 |
export PBR_VERSION=$(DEB_VERSION_UPSTREAM) |
| 17 |
export PYBUILD_NAME=jeepyb |
| 18 |
export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/share/jeepyb |
| 19 |
|
| 20 |
VER_PARSED=$(shell echo 20170923|awk -F '' '{printf $$1$$2$$3$$4 "-" $$5$$6 "-" $$7$$8}') |
| 21 |
|
| 22 |
%: |
| 23 |
dh $@ --buildsystem=pybuild |
| 24 |
|
| 25 |
get-orig-source: |
| 26 |
git clone https://github.com/openstack-infra/jeepyb.git $(PYBUILD_NAME)-$(DEB_VERSION_UPSTREAM) |
| 27 |
(cd $(PYBUILD_NAME)-$(DEB_VERSION_UPSTREAM) && git checkout `git rev-list -n 1 --before="$(VER_PARSED) 23:59" master`) |
| 28 |
tar czvf ../$(PYBUILD_NAME)_$(DEB_VERSION_UPSTREAM).orig.tar.gz $(PYBUILD_NAME)-$(DEB_VERSION_UPSTREAM)/* |
| 29 |
rm -rf $(PYBUILD_NAME)-$(DEB_VERSION_UPSTREAM) |