File: rules

package info (click to toggle)
python-gasp 0.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 220 kB
  • ctags: 284
  • sloc: python: 1,081; makefile: 14
file content (20 lines) | stat: -rwxr-xr-x 684 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

DEB_PYTHON_SETUP_CMD = setup.py

install/python-gasp::
	rm -rf debian/python-gasp/usr/lib/python*/site-packages/gasp*egg-info/requires.txt

.PHONY: get-orig-source
get-orig-source:
	REV=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*bzr([^-]+).*,\1,p'); \
        VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p'); \
        if [ x$$REV = x ]; then \
         uscan --force-download --rename --repack --download-version=$$VER --destdir=.; \
        else \
	 bzr export -r $$REV python-gasp_$$VER.orig.tar.gz lp:gasp-core; \
        fi