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

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2006-06-23 15:47:24 UTC
  • Revision ID: james.westby@ubuntu.com-20060623154724-zsujvcthuj1ho5se
Tags: 4.3.2-2
* debian/rules:
- rename the egg info directory so that easy_install and others
  will not ignore it because there is a python version number
  (Closes: #373935)
* debian/pycompat:
- added; track policy version
* debian/control, debian/rules:
- updated to python-support 0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
DEB_COMPRESS_EXCLUDE = .js
11
11
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed --install-lib usr/share/python-support/python-configobj
12
 
# hack to workaround CDBS bug -- see #373678
13
 
DEB_PYTHON_INSTALL_ARGS := ${DEB_PYTHON_INSTALL_ARGS_ALL}
14
12
DEB_INSTALL_CHANGELOGS_ALL += CONFIGOBJ_CHANGELOG_TODO.txt
15
13
 
 
14
UPSTREAM_VERSION=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
 
15
PYVER=$(shell python -V 2>&1 | cut -d ' ' -f 2 | cut -d . -f 1-2)
 
16
 
 
17
binary-post-install/python-configobj::
 
18
        mv debian/python-configobj/usr/share/python-support/python-configobj/configobj-${UPSTREAM_VERSION}-py${PYVER}.egg-info \
 
19
                debian/python-configobj/usr/share/python-support/python-configobj/configobj-${UPSTREAM_VERSION}.egg-info
 
20
        -rm -rf debian/python-configobj/usr/lib/
 
21
 
16
22
clean::
17
 
        # hack (CDBS bug -- see #300149)
18
 
        -rm -rf build configobj.egg-info
19
 
        -find . -name '*.py[co]' -exec rm {} \;
 
23
        -rm -rf configobj.egg-info