From c20a9efbf5da0587fbb6a855a2d366ce19f1abe1 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Thu, 14 Sep 2017 09:59:28 +0200 Subject: SPEC: Fix detecting of minor release INFO: Installed packages: Start: build phase for sssd-1.15.4-0.el7.src.rpm Start: build setup for sssd-1.15.4-0.el7.src.rpm error: unmatched ( error: unmatched ( error: /builddir/build/SPECS/sssd.spec:56: bad %if condition Reviewed-by: Jakub Hrozek --- contrib/sssd.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 4d97598e3..e76b51833 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -2,8 +2,8 @@ # Set --with sssd_user or bcond_without to run SSSD as non-root user(sssd). %bcond_with sssd_user -%global rhel6_minor %(%{__grep} -o "6.[0-9]*" /etc/redhat-release |%{__sed} -s 's/6.//') -%global rhel7_minor %(%{__grep} -o "7.[0-9]*" /etc/redhat-release |%{__sed} -s 's/7.//') +%global rhel6_minor %(%{__grep} -o "6\\.[0-9]*" /etc/redhat-release |%{__sed} -s 's/6.//') +%global rhel7_minor %(%{__grep} -o "7\\.[0-9]*" /etc/redhat-release |%{__sed} -s 's/7.//') %if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python2} -- cgit