blob: 7d4bf0798fc2531926b2fe6a6cc32e11f74cc613 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PYVERS := $(shell pyversions -r)
export DEB_CFLAGS_MAINT_APPEND = -Wl,-z,relro
package=python-srp
docpkg=python-srp-doc
%:
dh $@ --with python2,sphinxdoc --buildsystem=python_distutils
override_dh_auto_build:
sphinx-build $(CURDIR)/srp/doc $(CURDIR)/srp/doc/build
set -ex; \
for python in $(PYVERS); do \
$$python setup.py build; \
done
override_dh_auto_install:
set -ex; \
for python in $(PYVERS); do \
$$python setup.py install --skip-build \
--root debian/$(package)\
--install-layout deb; \
done
# XXX should remove the duplicated doc
#rm -rf debian/$(package)/usr/share/pyshared/srp/doc
#rm -rf usr/share/pyshared/srp/doc
#rm -rf debian/$(package)/usr/share/pyshared/srp/doc
#rm -rf debian/$(package)/usr/share/doc
override_dh_install:
dh_install -X"srp/doc"
override_dh_installdocs:
echo "Skipping the docs in the tree, they are installed in -doc package"
override_dh_sphinxdoc:
ifneq "$(shell dh_listpackages | grep -- -doc)" ""
mkdir -p debian/$(docpkg)/usr/share/doc/$(docpkg)
cp -r srp/doc/build/* debian/$(docpkg)/usr/share/doc/$(docpkg)/
dh_sphinxdoc usr/share/doc/$(docpkg)/
endif
override_dh_auto_clean:
dh_auto_clean
rm -rf srp/doc/build
|