| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
%: |
| 5 |
dh $@ --buildsystem=pybuild |
| 6 |
|
| 7 |
override_dh_auto_build: |
| 8 |
|
| 9 |
execute_before_dh_auto_install: |
| 10 |
touch -d@$(SOURCE_DATE_EPOCH) $(CURDIR)/dkim/tests/ |
| 11 |
python3 $(CURDIR)/setup.py install --install-layout=deb \ |
| 12 |
--root $(CURDIR)/debian/python3-dkim |
| 13 |
|
| 14 |
override_dh_python3: |
| 15 |
dh_python3 --no-guessing-deps -v |
| 16 |
|
| 17 |
override_dh_auto_test: |
| 18 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 19 |
python3 $(CURDIR)/test.py |
| 20 |
endif |
| 21 |
|
| 22 |
execute_before_dh_auto_clean: |
| 23 |
python3 setup.py clean -a |
| 24 |
find . -name \*.pyc -exec rm {} \; |