File: rules

package info (click to toggle)
networking-bagpipe 15.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 2,032 kB
  • sloc: python: 20,696; sh: 921; makefile: 61
file content (79 lines) | stat: -rwxr-xr-x 2,772 bytes parent folder | download | duplicates (3)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/make -f

include /usr/share/openstack-pkg-tools/pkgos.make

%:
	dh $@ --buildsystem=python_distutils --with python3,sphinxdoc

override_dh_clean:
	dh_clean
	rm -rf build

override_dh_auto_clean:
	python3 setup.py clean

override_dh_auto_build:
	echo "Do nothing..."

override_dh_auto_install:
	echo "Do nothing..."

override_dh_auto_test:
	echo "Do nothing..."

override_dh_install:
	for i in $(PYTHON3S) ; do \
		python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/tmp ; \
	done
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
#	echo "Disabled tests until networking-bgpvpn is in Debian..."
	pkgos-dh_auto_test --no-py2 'networking_bagpipe\.tests\.unit.*'
endif

	mkdir -p $(CURDIR)/debian/python3-networking-bagpipe/etc/bagpipe-bgp
	PYTHON=python3 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \
		oslo-config-generator \
		--output-file $(CURDIR)/debian/python3-networking-bagpipe/etc/bagpipe-bgp/bagpipe-bgp.conf \
		--wrap-width 140 \
		--namespace networking_bagpipe.api \
		--namespace networking_bagpipe.bgp_common \
		--namespace networking_bagpipe.run_command \
		--namespace networking_bagpipe.dataplane.ipvpn \
		--namespace networking_bagpipe.dataplane.evpn

	PYTHON=python3 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \
		oslo-config-generator \
		--output-file $(CURDIR)/debian/python3-networking-bagpipe/etc/bagpipe-bgp/dataplane-evpn-linux-vxlan.conf \
		--wrap-width 140 \
		--namespace networking_bagpipe.dataplane.evpn.linux_vxlan

	PYTHON=python3 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \
		oslo-config-generator \
		--output-file $(CURDIR)/debian/python3-networking-bagpipe/etc/bagpipe-bgp/dataplane-ipvpn-mpls-linux.conf \
		--wrap-width 140 \
		--namespace networking_bagpipe.dataplane.ipvpn.mpls_linux

	PYTHON=python3 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \
		oslo-config-generator \
		--output-file $(CURDIR)/debian/python3-networking-bagpipe/etc/bagpipe-bgp/dataplane-ipvpn-mpls-ovs.conf \
		--wrap-width 140 \
		--namespace networking_bagpipe.dataplane.ipvpn.mpls_ovs

	PYTHON=python3 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \
		oslo-config-generator \
		--output-file $(CURDIR)/debian/python3-networking-bagpipe/etc/bagpipe-bgp/neutron-agent.ini \
		--wrap-width 140 \
		--namespace networking_bagpipe.bagpipe_bgp_agent

	dh_install
	rm -rf $(CURDIR)/debian/tmp/etc
	dh_missing --fail-missing

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHON=python3 python3 -m sphinx -b html doc/source debian/networking-bagpipe-doc/usr/share/doc/networking-bagpipe-doc/html
	dh_sphinxdoc -O--buildsystem=python_distutil
endif

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3