#!/usr/bin/make -f

override_dh_installchangelogs:
	dh_installchangelogs PyMca/changelog.txt

override_dh_python2:
	dh_numpy
	dh_python2
	# fix the permission of the files
	# https://sourceforge.net/tracker/?func=detail&aid=3507657&group_id=164626&atid=832479
	find $(CURDIR)/debian/pymca/usr/share -type f -exec chmod 644 {} \;
	find $(CURDIR)/debian/pymca/usr/lib -type f -exec chmod 644 {} \;
	find $(CURDIR)/debian/pymca-data/usr/share -type f -exec chmod 644 {} \;
	find $(CURDIR)/debian/pymca-data/usr/lib -type f -exec chmod 644 {} \;

%:
	dh $@ --with python2
