From 5b3fde9978ec3652514e22d5bde0318871b51864 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Mon, 11 Mar 2019 10:18:11 -0400 Subject: [PATCH] Switch kojid back to Python 2 so that imgfac doesn't get disabled --- koji.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/koji.spec b/koji.spec index 8e80424..0814db7 100644 --- a/koji.spec +++ b/koji.spec @@ -44,6 +44,9 @@ %endif %endif +# Until imgfac is ported, keep kojid at py2 +%bcond_without py2_kojid + # Lastly enforce the bcond parameters %if %{without python2} %define py2_support 0 @@ -78,7 +81,7 @@ Name: koji Version: 1.17.0 -Release: 4%{?dist} +Release: 5%{?dist} # the included arch lib from yum's rpmUtils is GPLv2+ License: LGPLv2 and GPLv2+ Summary: Build system tools @@ -294,7 +297,7 @@ Requires: /usr/bin/cvs Requires: /usr/bin/svn Requires: /usr/bin/git Requires: createrepo_c >= 0.10.0 -%if 0%{py3_support} > 1 +%if 0%{py3_support} > 1 && (! %{with py2_kojid}) Requires: python%{python3_pkgversion}-%{name} = %{version}-%{release} Requires: python%{python3_pkgversion}-librepo Requires: python%{python3_pkgversion}-multilib @@ -442,7 +445,7 @@ done %if 0%{py3_support} > 1 make DESTDIR=$RPM_BUILD_ROOT PYTHON=%{__python3} %{?install_opt} install # alter python interpreter in koji CLI -scripts='%{_bindir}/koji %{_sbindir}/kojid %{_sbindir}/kojira %{_sbindir}/koji-shadow +scripts='%{_bindir}/koji %{!?with_py2_kojid:%{_sbindir}/kojid} %{_sbindir}/kojira %{_sbindir}/koji-shadow %{_sbindir}/koji-gc %{_sbindir}/kojivmd' for fn in $scripts ; do sed -i 's|#!/usr/bin/python2|#!/usr/bin/python3|' $RPM_BUILD_ROOT$fn @@ -687,6 +690,9 @@ fi %endif %changelog +* Mon Mar 11 2019 Neal Gompa - 1.17.0-5 +- Switch kojid back to Python 2 so that imgfac doesn't get disabled + * Sun Mar 10 2019 Neal Gompa - 1.17.0-4 - Add patch proposed upstream to use createrepo_c by default to drop yum dependency