File: rules

package info (click to toggle)
networking-bgpvpn 13.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,356 kB
  • sloc: python: 8,613; sh: 91; makefile: 39
file content (55 lines) | stat: -rwxr-xr-x 1,582 bytes parent folder | download | duplicates (2)
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
#!/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:
	pkgos-dh_auto_install --no-py2 --in-tmp

	mkdir -p $(CURDIR)/debian/python3-networking-bgpvpn/etc/neutron
	PYTHON=python3 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \
		oslo-config-generator \
		--output-file $(CURDIR)/debian/python3-networking-bgpvpn/etc/neutron/networking_bgpvpn.conf \
		--wrap-width 140 \
		--namespace networking-bgpvpn.service_provider

	mkdir -p $(CURDIR)/debian/python3-networking-bgpvpn/etc/neutron/policy.d
	PYTHON=python3 PYTHONPATH=$(CURDIR)/debian/tmp/usr/lib/python3/dist-packages \
		oslopolicy-sample-generator \
		--output-file $(CURDIR)/debian/python3-networking-bgpvpn/etc/neutron/policy.d/bgpvpn.conf \
		--format json \
		--namespace networking-bgpvpn

ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	echo "Disabling tests until networking-bagpipe is in Debian ..."
#	pkgos-dh_auto_test --no-py2 'networking_bgpvpn\.tests.*'
endif

	rm -r $(CURDIR)/debian/tmp/usr/etc

	dh_install
	dh_missing --fail-missing

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