1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/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_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed --install-lib usr/share/python-support/python-json
# hack around CDBS bug -- see #373678
DEB_PYTHON_INSTALL_ARGS := ${DEB_PYTHON_INSTALL_ARGS_ALL}
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-json::
mv debian/python-json/usr/share/python-support/python-json/json_py-${UPSTREAM_VERSION}-py${PYVER}.egg-info \
debian/python-json/usr/share/python-support/python-json/json_py-${UPSTREAM_VERSION}.egg-info
-rm -rf debian/python-json/usr/lib/
clean::
# hack (CDBS bug -- see #300149)
-rm -rf build json_py.egg-info
|