~ubuntu-branches/ubuntu/natty/configobj/natty

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f

DEB_PYTHON_SYSTEM = pysupport

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

DEB_COMPRESS_EXCLUDE = .js
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed --install-lib usr/share/python-support/python-configobj
DEB_INSTALL_CHANGELOGS_ALL += CONFIGOBJ_CHANGELOG_TODO.txt

UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
PYVER=$(shell python -V 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1-2)

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

clean::
	-rm -rf configobj.egg-info