| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE=1 |
| 4 |
|
| 5 |
PACKAGE = gausssum |
| 6 |
DEB_UPSTREAM_VERSION = $(shell dpkg-parsechangelog | sed -n -e 's/^Version: \(.*\)-[^-]*$$/\1/p') |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --buildsystem=pybuild |
| 10 |
|
| 11 |
setup.py: debian/setup.py |
| 12 |
sed -e "s/@DEB_UPSTREAM_VERSION@/$(DEB_UPSTREAM_VERSION)/g" < $< > $@ |
| 13 |
|
| 14 |
override_dh_auto_configure: setup.py |
| 15 |
|
| 16 |
override_dh_auto_clean: setup.py |
| 17 |
dh_auto_clean |
| 18 |
|
| 19 |
override_dh_auto_build: setup.py |
| 20 |
dh_auto_build |
| 21 |
|
| 22 |
override_dh_auto_install: setup.py |
| 23 |
dh_auto_install |
| 24 |
mv $(CURDIR)/debian/$(PACKAGE)/usr/bin/GaussSum.py $(CURDIR)/debian/$(PACKAGE)/usr/bin/gausssum |
| 25 |
fromdos $(CURDIR)/debian/$(PACKAGE)/usr/bin/gausssum |
| 26 |
|
| 27 |
override_dh_clean: |
| 28 |
dh_clean setup.py |
| 29 |
|
| 30 |
override_dh_installchangelogs: |
| 31 |
dh_installchangelogs Docs/pr01.html |
| 32 |
|
| 33 |
override_dh_python3: |
| 34 |
dh_python3 |
| 35 |
dh_numpy3 |