Packages: added Python 3 support on RHEL/CentOS 7.

This commit is contained in:
Andrei Belov
2019-12-02 15:09:53 +03:00
parent 9a7881d131
commit a3e5d09501
3 changed files with 12 additions and 2 deletions

View File

@@ -17,12 +17,21 @@ ifneq (,$(findstring $(OSVER),opensuse-leap opensuse-tumbleweed sles))
BUILD_DEPENDS_python27= python-devel
else ifneq (,$(findstring $(OSVER),fedora centos8))
BUILD_DEPENDS_python27= python2-devel
else ifneq (,$(findstring $(OSVER),centos7))
BUILD_DEPENDS_python27= python-devel
else
BUILD_DEPENDS_python27= python27-devel
endif
BUILD_DEPENDS+= $(BUILD_DEPENDS_python27)
define MODULE_DEFINITIONS_python27
%if (0%{?rhel} == 7)
Obsoletes: unit-python
%endif
endef
export MODULE_DEFINITIONS_python27
define MODULE_PREINSTALL_python27
%{__mkdir} -p %{buildroot}%{_datadir}/doc/unit-python27/examples/python-app
%{__install} -m 644 -p %{SOURCE100} \