File: rules

package info (click to toggle)
pymca 4.7.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 52,352 kB
  • ctags: 9,570
  • sloc: python: 116,490; ansic: 18,322; cpp: 826; sh: 57; xml: 24; makefile: 19
file content (28 lines) | stat: -rwxr-xr-x 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

export SPECFILE_USE_GNU_SOURCE=1
export QHULL_CFLAGS=-I/usr/include/qhull
export QHULL_LIBS=-lqhull

# Get the supported Python versions
PYVERS = $(shell pyversions -r -v)

override_dh_installchangelogs:
	dh_installchangelogs changelog.txt

override_dh_auto_install:
	# fix the creation of the man directory
	# https://sourceforge.net/tracker/?func=detail&aid=3524625&group_id=164626&atid=832479
	mkdir -p  $(CURDIR)/debian/tmp/usr/share/man
	dh_auto_install
	dh_numpy
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	set -e -x;\
	for py in $(PYVERS); do \
		cd $(CURDIR)/build/lib.*-$$py;\
		env PYTHONPATH=. python$$py PyMca/tests/TestAll.py;\
	done
endif

%:
	dh $@ --with python2