~kampka/ubuntu/quantal/lxc/upstart-instance

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Stéphane Graber
  • Date: 2012-08-27 21:50:00 UTC
  • Revision ID: stgraber@ubuntu.com-20120827215000-f1u5oheevgfibgat
Move python-lxc from debian/ to a patch against the upstream tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
                $${_FILE} > debian/apparmor/$$(basename $${_FILE} .in); \
27
27
        done
28
28
 
29
 
        rm -rf debian/python-lxc/build
30
 
 
31
 
override_dh_auto_build:
32
 
        dh_auto_build
33
 
 
34
 
        set -ex; for python in $(shell py3versions -r); do \
35
 
                cd debian/python-lxc/; \
36
 
                CFLAGS="-I ../../src -L../../src/lxc/" $$python setup.py build; \
37
 
                cd ../../; \
38
 
        done
39
 
 
40
29
override_dh_auto_configure:
41
 
        dh_auto_configure -- --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --libexecdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --with-rootfs-path=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)/lxc --enable-doc --disable-rpath --enable-seccomp=check
 
30
        dh_auto_configure -- --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --libexecdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --with-rootfs-path=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)/lxc --disable-doc --disable-rpath --enable-seccomp=check --enable-python
42
31
 
43
32
override_dh_auto_install:
44
33
        dh_auto_install
53
42
        # removing useless files
54
43
        rm -f debian/tmp/usr/share/lxc/templates/lxc-lenny
55
44
 
56
 
        set -ex; for python in $(shell py3versions -r); do \
57
 
                cd debian/python-lxc/; \
58
 
                $$python setup.py install --root=$(CURDIR)/debian/python3-lxc --install-layout=deb; \
59
 
                cd ../../; \
60
 
        done
61
 
        rm -Rf debian/python3-lxc/usr/lib/python3/dist-packages/lxc/__pycache__/
62
 
 
63
45
override_dh_builddeb:
64
46
        dh_builddeb -- -Zgzip -z9
65
47