File: rules

package info (click to toggle)
python-hurry.filesize 0.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 132 kB
  • sloc: python: 100; makefile: 18
file content (24 lines) | stat: -rwxr-xr-x 672 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
#!/usr/bin/make -f

UPSTREAM_GIT = git://github.com/<please-user>/hurry.filesize.git
-include /usr/share/openstack-pkg-tools/pkgos.make

export PYBUILD_NAME=hurry.filesize

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

override_dh_auto_clean:
	if [ -d debian/hurry.filesize.egg-info ] ; then \
		cp -arf debian/hurry.filesize.egg-info src ; \
		rm -rf debian/hurry.filesize.egg-info ; \
	fi
	rm -rf build .stestr .pybuild
	find . -iname '*.pyc' -delete
	for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done

override_dh_auto_build:
	if ! [ -d debian/hurry.filesize.egg-info ] ; then \
		cp -arf src/hurry.filesize.egg-info debian ; \
	fi
	dh_auto_build