File: rules

package info (click to toggle)
python-httplib2 0.9.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,744 kB
  • ctags: 1,237
  • sloc: python: 5,190; makefile: 103
file content (18 lines) | stat: -rwxr-xr-x 794 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export PYBUILD_NAME=httplib2
VERSION = $(shell head -n1 debian/changelog | sed -e 's/.*(//;s/+.*).*//')

%:
	dh $@ --buildsystem pybuild --with python2,python3

get-orig-source:
	uscan --force-download
	tar fxz ../python-httplib2_${VERSION}.orig.tar.gz -C ../ && mv ../httplib2-${VERSION} ../python-httplib2-${VERSION}+dfsg
	find ../python-httplib2-${VERSION}+dfsg -name "*searchindex.js" -delete
	find ../python-httplib2-${VERSION}+dfsg -name "*searchindex.json" -delete
	find ../python-httplib2-${VERSION}+dfsg -name "*interface.js" -delete
	tar czf ../python-httplib2_${VERSION}+dfsg.orig.tar.gz ../python-httplib2-${VERSION}+dfsg
	rm -fr ../python-httplib2_${VERSION}.orig.tar.gz ../python-httplib2-${VERSION}+dfsg ../httplib2-${VERSION}.tar.gz

.PHONY: get-orig-source