On Sun, 2019-08-11 at 20:40 +0200, Antonio wrote:
commit f25cca2deb50bed76036c5b5dc7be9d1de0c2829
Author: sagitter <sagitter(a)fedoraproject.org>
Date: Sun Aug 11 20:40:01 2019 +0200
Fix Python binding conditional macro
mythtv.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/mythtv.spec b/mythtv.spec
index 4138e92..747401a 100644
--- a/mythtv.spec
+++ b/mythtv.spec
@@ -963,7 +963,7 @@ pushd mythtv
%if !%{with php}
--without-bindings=php \
%endif
-%if !%{with python}
+%if %{without python}
Please read /lib/rpm/macros [1] "without" doesn't exist , but also
maybe !% is wrong, we may need a space to separate ! and % (%if !
%{with python} )
[1]
#
# For example (spec file):
#
# (at the beginning)
# %bcond_with extra_fonts
# %bcond_without static
# (and later)
# %if %{with extra_fonts}
# ...
# %else
# ...
# %endif
# %if ! %{with static}
# ...
# %endif
# %if %{with static}
# ...
# %endif
# %{?with_static: ... }
# %{!?with_static: ... }
# %{?with_extra_fonts: ... }
# %{!?with_extra_fonts: ... }
--
Sérgio M. B.