/[python-apps]/packages/ibid/trunk/debian/rules
ViewVC logotype

Contents of /packages/ibid/trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7444 - (show annotations) (download)
Fri Aug 12 08:07:12 2011 UTC (6 years, 5 months ago) by stefanor
File size: 1887 byte(s)
* Use dh_sphinxdoc.
  - Bump python-sphinx Build-Depends.
  - Don't link jquery.js to libjs-jquery.
* Don't compress Sphinx _sources.
* Use Jinja2 instead of Jinja. (Closes: #634910)
* Drop Suggests on python-silc, to allow silc-toolkit to be removed from
  Debian. (Closes: #629221)
* sqlalchemy-0.7.patch: Update SQLAlchemy 0.6 patch for 0.7 support.
  (Closes: #634913)
1 #!/usr/bin/make -f
2
3 PKGDIR=$(CURDIR)/debian/ibid
4
5 %:
6 dh $@ --with python2,sphinxdoc
7
8 TRIAL=$(shell which trial)
9
10 override_dh_auto_test:
11 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
12 set -e; \
13 for ver in $(shell pyversions -vr); do \
14 PYTHONPATH=. python$$ver $(TRIAL) --reporter=text ibid; \
15 done
16 endif
17
18 override_dh_auto_build:
19 dh_auto_build
20 # Old sphinx-builds (lenny) are picky
21 mkdir -p docs/html docs/_static
22 sphinx-build -N -bhtml docs/ build/docs
23
24 override_dh_auto_install:
25 dh_auto_install
26 rm -rf $(PKGDIR)/usr/lib/python*/*-packages/ibid/test
27 rm -rf $(PKGDIR)/usr/lib/python*/*-packages/*.egg-info/requires.txt
28
29 override_dh_auto_clean:
30 dh_auto_clean
31 rm -rf build
32 rm -rf *.egg-info
33 rm -rf _trial_temp
34 find . -name dropin.cache -delete
35
36 override_dh_installdocs:
37 dh_installdocs
38 cd $(PKGDIR)/usr/share/doc/ibid && mv docs html
39
40 override_dh_installexamples:
41 dh_installexamples
42 cd $(PKGDIR)/usr/share/doc/ibid/examples/factpacks && rm -f *.py *.sh
43
44 override_dh_compress:
45 dh_compress -X.inv -X.txt
46
47 override_dh_python2:
48 dh_python2 --no-guessing-deps
49
50 REV=$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*bzr([0-9]+).*,\1,p')
51 VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: (.+)\+dfsg.*,\1,p')
52 BZR_REPO?=lp:ibid
53 BZR_DOCS_REPO?=lp:~ibid-dev/ibid/docs
54
55 get-orig-source:
56 ifeq ($(REV),)
57 uscan --noconf --force-download --rename --download-version=$(VER) --destdir=.
58 tar -xf ibid_$(VER).orig.tar.gz
59 mv Ibid-$(VER) ibid-$(VER)
60 rm -f ibid_$(VER).orig.tar.gz
61 else
62 bzr export -r $(REV) ibid-$(VER) $(BZR_REPO)
63 rm -rf ibid-$(VER)/docs
64 bzr export ibid-$(VER)/docs $(BZR_DOCS_REPO)/docs
65 endif
66 cd ibid-$(VER)/factpacks/ && rm -f handey.json overlord.json wrestling.json zippy.json
67 rm -rf ibid-$(VER)/docs/html
68 GZIP=--best tar -cz --owner root --group root --mode a+rX \
69 -f ibid_$(VER)+dfsg.orig.tar.gz ibid-$(VER)
70 rm -rf ibid-$(VER)

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.5