Packages: added Python 3 support on RHEL/CentOS 7.
This commit is contained in:
@@ -57,7 +57,8 @@ endif
|
|||||||
|
|
||||||
ifeq ($(OSVER), centos7)
|
ifeq ($(OSVER), centos7)
|
||||||
include Makefile.php
|
include Makefile.php
|
||||||
include Makefile.python
|
include Makefile.python27
|
||||||
|
include Makefile.python36
|
||||||
include Makefile.go
|
include Makefile.go
|
||||||
include Makefile.perl
|
include Makefile.perl
|
||||||
include Makefile.jsc-common
|
include Makefile.jsc-common
|
||||||
|
|||||||
@@ -17,12 +17,21 @@ ifneq (,$(findstring $(OSVER),opensuse-leap opensuse-tumbleweed sles))
|
|||||||
BUILD_DEPENDS_python27= python-devel
|
BUILD_DEPENDS_python27= python-devel
|
||||||
else ifneq (,$(findstring $(OSVER),fedora centos8))
|
else ifneq (,$(findstring $(OSVER),fedora centos8))
|
||||||
BUILD_DEPENDS_python27= python2-devel
|
BUILD_DEPENDS_python27= python2-devel
|
||||||
|
else ifneq (,$(findstring $(OSVER),centos7))
|
||||||
|
BUILD_DEPENDS_python27= python-devel
|
||||||
else
|
else
|
||||||
BUILD_DEPENDS_python27= python27-devel
|
BUILD_DEPENDS_python27= python27-devel
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BUILD_DEPENDS+= $(BUILD_DEPENDS_python27)
|
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
|
define MODULE_PREINSTALL_python27
|
||||||
%{__mkdir} -p %{buildroot}%{_datadir}/doc/unit-python27/examples/python-app
|
%{__mkdir} -p %{buildroot}%{_datadir}/doc/unit-python27/examples/python-app
|
||||||
%{__install} -m 644 -p %{SOURCE100} \
|
%{__install} -m 644 -p %{SOURCE100} \
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ MODULE_INSTARGS_python36= python3.6-install
|
|||||||
MODULE_SOURCES_python36= unit.example-python-app \
|
MODULE_SOURCES_python36= unit.example-python-app \
|
||||||
unit.example-python36-config
|
unit.example-python36-config
|
||||||
|
|
||||||
ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles fedora))
|
ifneq (,$(findstring $(OSVER),opensuse-tumbleweed sles fedora centos7))
|
||||||
BUILD_DEPENDS_python36= python3-devel
|
BUILD_DEPENDS_python36= python3-devel
|
||||||
else
|
else
|
||||||
BUILD_DEPENDS_python36= python36-devel
|
BUILD_DEPENDS_python36= python36-devel
|
||||||
|
|||||||
Reference in New Issue
Block a user