From 42307980588c79727501be9da5f6e2ea3219cfcf Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 1 Sep 2017 12:24:21 +0200 Subject: [PATCH] Disable platform python on old releases Signed-off-by: Igor Gnatenko --- libcomps.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/libcomps.spec b/libcomps.spec index 5bc653a..64736d0 100644 --- a/libcomps.spec +++ b/libcomps.spec @@ -1,15 +1,18 @@ +%bcond_without python2 %if 0%{?rhel} && 0%{?rhel} <= 7 %bcond_with python3 %else %bcond_without python3 %endif - -%bcond_without python2 +%if 0%{?fedora} >= 27 || 0%{?rhel} > 7 %bcond_without platform_python +%else +%bcond_with platform_python +%endif Name: libcomps Version: 0.1.8 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Comps XML file manipulation library License: GPLv2+ @@ -203,6 +206,9 @@ popd %endif # with platform_python %changelog +* Fri Sep 01 2017 Igor Gnatenko - 0.1.8-7 +- Disable platform python on old releases + * Thu Aug 10 2017 Lumír Balhar - 0.1.8-6 - Add Platform Python subpackage (https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)