From 69800e7bb6355e33569e38b2b4e45e21bd43663c Mon Sep 17 00:00:00 2001 From: David Murphy < dmurphy@saltstack.com> Date: Tue, 24 Jul 2018 16:55:02 -0600 Subject: [PATCH] Revise spec to generate correct use of python 2.7 --- salt.spec | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/salt.spec b/salt.spec index 6a10c6c..ea8eb5e 100644 --- a/salt.spec +++ b/salt.spec @@ -45,7 +45,7 @@ Name: salt Version: 2018.3.2%{?__rc_ver} -Release: 4%{?dist} +Release: 5%{?dist} Summary: A parallel remote execution system Group: System Environment/Daemons @@ -301,21 +301,6 @@ install -p -m 0644 %{SOURCE9} %{buildroot}%{_unitdir}/ install -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/ %endif -## # Force python2.7 on EPEL6 -## # https://github.com/saltstack/salt/issues/22003 -## %if 0%{?rhel} == 6 -## sed -i 's#/usr/bin/python#/usr/bin/python2.7#g' %{buildroot}%{_bindir}/spm -## sed -i 's#/usr/bin/python#/usr/bin/python2.7#g' %{buildroot}%{_bindir}/salt* -## sed -i 's#/usr/bin/python#/usr/bin/python2.7#g' %{buildroot}%{_initrddir}/salt* -## %endif - -%if 0%{?fedora} >= 28 -sed -i 's#/usr/bin/python#/usr/bin/python2.7#g' %{buildroot}%{_bindir}/spm -sed -i 's#/usr/bin/python#/usr/bin/python2.7#g' %{buildroot}%{_bindir}/salt* -## sed -i 's#/usr/bin/python#/usr/bin/python2.7#g' %{buildroot}%{_initrddir}/salt* -%endif - - # Logrotate install -p %{SOURCE10} . mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/ @@ -632,6 +617,9 @@ rm -rf %{buildroot} %endif %changelog +* Tue Jul 24 2018 SaltStack Packaging Team - 2018.3.2-5 +- Fix version of python used, multiple addition of 2.7 + * Sat Jul 14 2018 Fedora Release Engineering - 2018.3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild