File: rules

package info (click to toggle)
ruledispatch 0.5adev-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 572 kB
  • ctags: 1,265
  • sloc: python: 5,715; makefile: 9
file content (15 lines) | stat: -rwxr-xr-x 540 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /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_INSTALL_ARGS_ALL += --single-version-externally-managed
UPSTREAM_VERSION=$(shell echo ${DEB_UPSTREAM_VERSION} | sed s,dev,0,g)

binary-post-install/python-dispatch::
	EGGDIR=$$(find debian/python-dispatch/ -name RuleDispatch\*.egg-info | head -n 1); \
	mv $${EGGDIR} \
		debian/python-dispatch/usr/share/python-support/python-dispatch/RuleDispatch-${UPSTREAM_VERSION}.egg-info