summaryrefslogtreecommitdiffhomepage
path: root/pkg/rpm/Makefile.python27
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/rpm/Makefile.python27')
-rw-r--r--pkg/rpm/Makefile.python279
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/rpm/Makefile.python27 b/pkg/rpm/Makefile.python27
index 95b392a9..19e64d43 100644
--- a/pkg/rpm/Makefile.python27
+++ b/pkg/rpm/Makefile.python27
@@ -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} \