#!/usr/bin/make -f

override_dh_installchangelogs:
	dh_installchangelogs PyMca/changelog.txt

override_dh_install:
	dh_install
	# fix the permission of the files
	# https://sourceforge.net/tracker/?func=detail&aid=3507657&group_id=164626&atid=832479
	chmod -R a-X $(CURDIR)/debian/pymca-data/usr/share/*
	chmod -R a+X $(CURDIR)/debian/pymca-data/usr/share/*
	chmod -R a-X $(CURDIR)/debian/pymca/usr/lib/*
	chmod -R a+X $(CURDIR)/debian/pymca/usr/lib/*
	dh_numpy

%:
	dh $@ --with python2
