~ubuntu-branches/ubuntu/utopic/python-docutils/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Jakub Wilk, Simon McVittie, Jakub Wilk
  • Date: 2012-02-15 19:21:26 UTC
  • Revision ID: package-import@ubuntu.com-20120215192126-fkqm9dsi1psd09w4
Tags: 0.8.1-5
[ Simon McVittie ]
* Remove myself from Uploaders

[ Jakub Wilk ]
* Backport upstream patch to follow the changes in the
  xml.dom.minidom.Document.toprettyxml method
  (fix-docutilsxmltestcase.diff).
* Drop postinst snippet to deal with a python-support bug (it cannot replace
  directory with a regular file). It was needed only for 0.7 upgrades.
* Suggest fonts-linuxlibertine as an alternative to ttf-linux-libertine.
* Update David Goodger's e-mail address in debian/copyright
  (closes: #653769). Thanks to Jari Aalto for the bug report.
* Update Subversion repository URLs in patch headers (so that they point to
  SourceForge rather than BerliOS).
* Use xargs to iterate over all Python versions.
* Convert rst2odt_prepstyles manpage source from DocBook to
  reStructuredText.
  + Remove docbook-to-man from Build-Depends-Indep.
  + Update debian/rules.
* Don't run dh_testroot in the clean target. There's a good chance that root
  privileges are not needed (e.g. because binary target was run under
  fakeroot), and even if they are actually needed, the target will fail
  quickly.
* Drop obsolete virtual package: docutils-writer-manpage (closes: #631066).
* Run tests with --verbose.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
pre_strip_images2 = 's,<img alt="([^"]*)"[^>]*\bsrc="http://[^"]+"[^>]*>,$$1,g;'
21
21
pre_strip_images = $(pre_strip_images1)$(pre_strip_images2)
22
22
 
 
23
python_all = pyversions -r $(CURDIR)/debian/control | tr ' ' '\n' | xargs -t -I {} env {}
 
24
python3_all = $(patsubst py%,py3%,$(python_all))
 
25
 
23
26
build build-indep: build-stamp
24
27
build-stamp:
25
28
        dh_testdir
35
38
        python3 setup.py build --build-lib=build/py3/
36
39
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
37
40
        # Run test suite for Python 2.X:
38
 
        set -ex && cd build/py2/ && \
39
 
        for python in $(shell pyversions -r); do \
40
 
                $$python ../../test/alltests.py; \
41
 
        done
 
41
        cd build/py2/ && $(python_all) ../../test/alltests.py --verbose
42
42
        # Run test suite for Python 3.X:
43
 
        set -ex && cd build/py3/ && \
44
 
        for python in $(shell py3versions -r); do \
45
 
                $$python test/alltests.py; \
46
 
        done
 
43
        cd build/py3/ && $(python3_all) test/alltests.py --verbose
47
44
endif
48
45
        # Build documentation:
49
46
        PYTHONPATH=.:extras python tools/buildhtml.py \
58
55
 
59
56
clean:
60
57
        dh_testdir
61
 
        dh_testroot
62
58
        rm -f build-stamp
63
59
        rm -rf build/
64
60
        find -name '*.py[co]' -delete
109
105
                python tools/rst2man.py debian/tmp/man/$$exe.txt \
110
106
                        debian/tmp/man/$$exe.1; \
111
107
        done
112
 
        docbook-to-man debian/rst2odt_prepstyles.sgml > \
 
108
        PYTHONPATH=.:extras python tools/rst2man.py debian/rst2odt_prepstyles.txt \
113
109
                debian/tmp/man/rst2odt_prepstyles.1
114
110
 
115
111
# Build architecture-independent files here.