From 1c5ed040d172ecfca1ee8694c9ba549f12736863 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Jan 10 2020 16:21:57 +0000 Subject: another one error: attempt to use unversioned python, define %__python to /usr/bin/python2 or /usr/bin/python3 explicitly error: Macro %pylib failed to expand error: line 2: %global pylib %{?fedora:%{python3_sitelib}}%{!?fedora:%{python_sitelib}} Version: 1.4-1 --- diff --git a/distgen.spec b/distgen.spec index 06f5a73..a0b3739 100644 --- a/distgen.spec +++ b/distgen.spec @@ -1,5 +1,5 @@ %global pybin %{?fedora:%{__python3}}%{!?fedora:%{__python2}} -%global pylib %{?fedora:%{python3_sitelib}}%{!?fedora:%{python_sitelib}} +%global pylib %{?fedora:%{python3_sitelib}}%{!?fedora:%{python2_sitelib}} %global pypkg %{?fedora:python3}%{!?fedora:python} %global meh_pypkg %{?fedora:%{pypkg}-}