File: rules

package info (click to toggle)
simplejson 1.3-0.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 472 kB
  • ctags: 1,026
  • sloc: python: 953; makefile: 13; sh: 1
file content (22 lines) | stat: -rwxr-xr-x 913 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
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2002,2003 Colin Walters <walters@debian.org>

DEB_PYTHON_SYSTEM := pysupport

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

UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
PYVER=$(shell pyversions -vr 'current')

DEB_DH_ALWAYS_EXCLUDE := .svn:.git:
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed --install-lib usr/share/python-support/python-simplejson

binary-post-install/python-simplejson::
	mv debian/python-simplejson/usr/share/python-support/python-simplejson/simplejson-${UPSTREAM_VERSION}-py${PYVER}.egg-info \
	   debian/python-simplejson/usr/share/python-support/python-simplejson/simplejson-${UPSTREAM_VERSION}.egg-info
	-rm -rf debian/python-simplejson/usr/lib/

clean::
	rm -rf dist simplejson.egg-info