~ubuntu-branches/ubuntu/lucid/smart-notifier/lucid-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2009-10-30 14:47:08 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091030144708-t59eotzit13uxzkz
Tags: 0.28-2
* QA upload.
  + Set maintainer to Debian QA Group <packages@qa.debian.org>.
* Acknowledge NMUs. (Closes: #511502).
* Fix moving of egg-info file in rules. (Closes: #552914).
* Don't capitalize false in .desktop file. (Closes: #512684, #550993).
* Remove useless cat in 60smart-notifier. (Closes: #511504).
* Don't build-dep on -1 revision.
* Add appropriate copyright holder to debian/copyright.
* Version path to GPL (GPL-2) in debian/copyright.
* Remove empty /usr/sbin dir.
* Add debian/pycompat and set to 2.
* Bump debian/compat to 5 to match debhelper build-dep.
* Bump Standards Version to 3.8.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Uncomment this to turn on verbose mode.
4
4
#export DH_VERBOSE=1
5
5
 
6
 
include /usr/share/python/python.mk
7
 
 
8
6
PYVERS=$(shell pyversions -vd)
9
7
PYMOD=smart_notifier
10
8
PACKAGE=smart-notifier
11
9
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog \
12
10
                             | grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)
13
11
 
 
12
include /usr/share/python/python.mk
 
13
 
14
14
build: $(PYVERS:%=build-python%)
15
15
        touch $@
16
16
 
48
48
        python setup.py install --no-compile --single-version-externally-managed --root=debian/$(PACKAGE) $(py_setup_install_args)
49
49
        install -d debian/$(PACKAGE)/usr/share/smart-notifier
50
50
        # Remove python and module version from .egg-info and move it to the privat modules
51
 
        mv debian/$(PACKAGE)/$(call py_libdir,$*)/$(PYMOD)-$(DEB_UPSTREAM_VERSION)-py$*.egg-info \
 
51
#       mv debian/$(PACKAGE)/usr/lib/python$*/$(call py_sitename_sh, $*)/$(PYMOD)-$(DEB_UPSTREAM_VERSION)-py$*.egg-info \
 
52
        mv debian/$(PACKAGE)/usr/lib/python$*/$(call py_sitename_sh, $*)/$(PYMOD)-$(DEB_UPSTREAM_VERSION).egg-info \
52
53
           debian/$(PACKAGE)/usr/share/smart-notifier/$(PYMOD).egg-info
53
54
        # Move the python module to a private location
54
 
        mv debian/$(PACKAGE)/$(call py_libdir,$*)/$(PYMOD) \
 
55
        mv debian/$(PACKAGE)/usr/lib/python$*/$(call py_sitename_sh, $*)/$(PYMOD) \
55
56
           debian/$(PACKAGE)/usr/share/smart-notifier/$(PYMOD)
56
57
 
57
58
# Build architecture-independent files here.
67
68
        dh_compress
68
69
        dh_fixperms
69
70
        dh_pycentral
 
71
        dh_python
70
72
        dh_installdeb
71
73
        dh_gencontrol
72
74
        dh_md5sums