File: rules

package info (click to toggle)
python-gasp 0.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 228 kB
  • ctags: 285
  • sloc: python: 1,081; makefile: 15
file content (21 lines) | stat: -rwxr-xr-x 712 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
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM=pysupport
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