xref: /unit/pkg/rpm/Makefile.python27 (revision 490:db2fc04d0ee7)
1MODULES+=		python27
2
3MODULE_SUMMARY_python27=	Python 2.7 module for NGINX Unit
4
5MODULE_VERSION_python27=	$(VERSION)
6MODULE_RELEASE_python27=	1
7
8MODULE_CONFARGS_python27=	python --config=python2.7-config
9MODULE_MAKEARGS_python27=	python2.7
10MODULE_INSTARGS_python27=	python2.7-install
11
12MODULE_SOURCES_python27=	unit.example-python-app \
13			unit.example-python27-config
14
15BUILD_DEPENDS_python27=	python27-devel
16BUILD_DEPENDS+=		$(BUILD_DEPENDS_python27)
17
18define MODULE_PREINSTALL_python27
19%{__mkdir} -p %{buildroot}%{_datadir}/doc/unit-python27/examples/python-app
20%{__install} -m 644 -p %{SOURCE100} \
21    %{buildroot}%{_datadir}/doc/unit-python27/examples/python-app/wsgi.py
22%{__install} -m 644 -p %{SOURCE101} \
23    %{buildroot}%{_datadir}/doc/unit-python27/examples/unit.config
24endef
25export MODULE_PREINSTALL_python27
26
27define MODULE_FILES_python27
28%{_libdir}/unit/modules/*
29%{_libdir}/unit/debug-modules/*
30endef
31export MODULE_FILES_python27
32
33define MODULE_POST_python27
34cat <<BANNER
35----------------------------------------------------------------------
36
37The $(MODULE_SUMMARY_python27) 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-python27/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_python27
51