| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/pkg-info.mk |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem=pybuild --verbose --with python3 |
| 7 |
|
| 8 |
override_dh_auto_test: |
| 9 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 10 |
$(MAKE) test.unit |
| 11 |
endif |
| 12 |
|
| 13 |
clean: |
| 14 |
dh_clean asciinema.egg-info/ asciinema/commands/__pycache__/ tests/__pycache__/ asciinema/__pycache__/ .pybuild/ pybuild/ .mypy_cache/ |
| 15 |
|
| 16 |
# taken from openstack-pkg-tools |
| 17 |
gen-orig-gz: |
| 18 |
git tag -v v$(DEB_VERSION_UPSTREAM) |
| 19 |
if [ ! -f ../$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz ] ; then \ |
| 20 |
git archive --prefix=$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)/ v$(GIT_TAG) | gzip >../$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz ; \ |
| 21 |
fi |