| 1 |
|
| 2 |
|
| 3 |
UPSTREAM_GITscip-debian debian python-pycadf 4.0.1-2 python-pycadf/rules/UPSTREAM_GIT. := https://github.com/openstack/pycadf.git |
| 4 |
include /usr/share/openstack-pkg-tools/pkgos.make |
| 5 |
|
| 6 |
%scip-debian debian python-pycadf 4.0.1-2 python-pycadf/rules/`%`().: |
| 7 |
dh $@ --buildsystem=pybuild --with python3 |
| 8 |
|
| 9 |
override_dh_auto_cleanscip-debian debian python-pycadf 4.0.1-2 python-pycadf/rules/override_dh_auto_clean().: |
| 10 |
rm -rf build .stestr *.egg-info .pybuild |
| 11 |
find . -iname '*.pyc' -delete |
| 12 |
for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done |
| 13 |
|
| 14 |
override_dh_auto_buildscip-debian debian python-pycadf 4.0.1-2 python-pycadf/rules/override_dh_auto_build().: |
| 15 |
echo "Do nothing..." |
| 16 |
|
| 17 |
override_dh_auto_installscip-debian debian python-pycadf 4.0.1-2 python-pycadf/rules/override_dh_auto_install().: |
| 18 |
pkgos-dh_auto_installscip-debian debian debhelper . dh_auto_install(). --no-py2 |
| 19 |
rm -rf $(CURDIRscip-debian debian python-pycadf 4.0.1-2 python-pycadf/rules/CURDIR.)/debian/python*-pycadf/usr/etc |
| 20 |
for i in `ls etc/pycadf/*.conf` ; do \ |
| 21 |
BASENAME=`basename $$i` ; \ |
| 22 |
install -D -m 0664 etc/pycadf/$$BASENAME $(CURDIRscip-debian debian python-pycadf 4.0.1-2 python-pycadf/rules/CURDIR.)/debian/pycadf-common/etc/pycadf/$$BASENAME ; \ |
| 23 |
done |
| 24 |
|
| 25 |
override_dh_auto_testscip-debian debian python-pycadf 4.0.1-2 python-pycadf/rules/override_dh_auto_test().: |
| 26 |
ifeq (,$(findstringscip-debian debian python-pycadf 4.0.1-2 python-pycadf/rules/findstring. nocheck, $(DEB_BUILD_OPTIONSscip-debian debian python-pycadf 4.0.1-2 python-pycadf/rules/DEB_BUILD_OPTIONS.))) |
| 27 |
pkgos-dh_auto_test --no-py2 |
| 28 |
endif |