xref: /unit/pkg/rpm/Makefile.python36 (revision 490:db2fc04d0ee7)
1MODULES+=		python36
2
3MODULE_SUMMARY_python36=	Python 3.6 module for NGINX Unit
4
5MODULE_VERSION_python36=	$(VERSION)
6MODULE_RELEASE_python36=	1
7
8MODULE_CONFARGS_python36=	python --config=python3.6-config
9MODULE_MAKEARGS_python36=	python3.6
10MODULE_INSTARGS_python36=	python3.6-install
11
12MODULE_SOURCES_python36=	unit.example-python-app \
13			unit.example-python36-config
14
15BUILD_DEPENDS_python36=	python36-devel
16BUILD_DEPENDS+=		$(BUILD_DEPENDS_python36)
17
18define MODULE_PREINSTALL_python36
19%{__mkdir} -p %{buildroot}%{_datadir}/doc/unit-python36/examples/python-app
20%{__install} -m 644 -p %{SOURCE100} \
21    %{buildroot}%{_datadir}/doc/unit-python36/examples/python-app/wsgi.py
22%{__install} -m 644 -p %{SOURCE101} \
23    %{buildroot}%{_datadir}/doc/unit-python36/examples/unit.config
24endef
25export MODULE_PREINSTALL_python36
26
27define MODULE_FILES_python36
28%{_libdir}/unit/modules/*
29%{_libdir}/unit/debug-modules/*
30endef
31export MODULE_FILES_python36
32
33define MODULE_POST_python36
34cat <<BANNER
35----------------------------------------------------------------------
36
37The $(MODULE_SUMMARY_python36) has been installed.
38
39To check the sample app, run these commands:
40
41 sudo service unit start
42 sudo service unit loadconfig /usr/share/doc/unit-python36/examples/unit.config
43 curl http://localhost:8400/
44
45Online documentation is available at https://unit.nginx.org
46
47----------------------------------------------------------------------
48BANNER
49endef
50export MODULE_POST_python36
51