File: rules

package info (click to toggle)
gramps 4.2.8~dfsg-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports-sloppy
  • size: 92,220 kB
  • sloc: python: 186,633; sql: 148,234; xml: 710; sh: 305; makefile: 153
file content (45 lines) | stat: -rwxr-xr-x 1,441 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#export DH_OPTIONS=-v
export PYBUILD_NAME=gramps
export PYBUILD_INSTALL_ARGS_python3=--resourcepath=/usr/share --force

%:
	dh $@ --with python3 --buildsystem=pybuild

# Override auto test to enable node tests
override_dh_auto_test:
	HOME=$(CURDIR)/build \
	nosetests3 -vv \
	--exclude=TestcaseGenerator \
	--exclude=vcard \
	--exclude=merge_ref_test \
	--exclude=test3b_delete_tree_constraint \
	--exclude=test_consistent_with_DISPLAY_env \
	--exclude=test4_arbitrary_uncode_path \
	--exclude=user_test \
	--exclude=webapp \
	gramps

# Override of auto_install to remove information from package
override_dh_auto_install:
	dh_installchangelogs NEWS
	dh_auto_install
	# Remove install file as it is not needed by package users
	rm $(CURDIR)/debian/gramps/usr/share/doc/gramps/INSTALL
	# Remove NEWS file as it is now installed as the changelog
	rm $(CURDIR)/debian/gramps/usr/share/doc/gramps/NEWS
	#Remove duplicate license information
	rm $(CURDIR)/debian/gramps/usr/share/doc/gramps/LICENSE
	#Remove license information in COPYING file & link to system license
	rm $(CURDIR)/debian/gramps/usr/share/doc/gramps/COPYING
	ln -s /usr/share/common-licenses/GPL-2 $(CURDIR)/debian/gramps/usr/share/doc/gramps/COPYING

# Fix clean target
override_dh_clean:
	rm -rf data/tips.xml
	rm -rf gramps/plugins/lib/holidays.xml
	rm -rf po/.intltool-merge-cache
	dh_clean