xref: /unit/pkg/rpm/Makefile.python34 (revision 490:db2fc04d0ee7)
1MODULES+=		python34
2
3MODULE_SUMMARY_python34=	Python 3.4 module for NGINX Unit
4
5MODULE_VERSION_python34=	$(VERSION)
6MODULE_RELEASE_python34=	1
7
8MODULE_CONFARGS_python34=	python --config=python3.4-config
9MODULE_MAKEARGS_python34=	python3.4
10MODULE_INSTARGS_python34=	python3.4-install
11
12MODULE_SOURCES_python34=	unit.example-python-app \
13			unit.example-python34-config
14
15BUILD_DEPENDS_python34=	python34-devel
16BUILD_DEPENDS+=		$(BUILD_DEPENDS_python34)
17
18define MODULE_PREINSTALL_python34
19%{__mkdir} -p %{buildroot}%{_datadir}/doc/unit-python34/examples/python-app
20%{__install} -m 644 -p %{SOURCE100} \
21    %{buildroot}%{_datadir}/doc/unit-python34/examples/python-app/wsgi.py
22%{__install} -m 644 -p %{SOURCE101} \
23    %{buildroot}%{_datadir}/doc/unit-python34/examples/unit.config
24endef
25export MODULE_PREINSTALL_python34
26
27define MODULE_FILES_python34
28%{_libdir}/unit/modules/*
29%{_libdir}/unit/debug-modules/*
30endef
31export MODULE_FILES_python34
32
33define MODULE_POST_python34
34cat <<BANNER
35----------------------------------------------------------------------
36
37The $(MODULE_SUMMARY_python34) 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-python34/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_python34
51