Browse Source

Fix strange fc26-only python2 packaging issue

For some reaon, /usr/bin/python, which should be symlink to python2,
is not available on Fedora 26 COPR build servers (it seems to be on
"normal" installations).

From COPR targets, it really only affects Fedora 26 in particular: 25
was OK, and 27 is OK again, just as are EPELs and RHELs.
Alois Mahdal 6 years ago
parent
commit
d71f6645d6
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      packaging/template.spec

+ 6
- 0
packaging/template.spec View File

@@ -13,11 +13,17 @@ BuildArch:  noarch
13 13
 BuildRequires: %shellfu_req
14 14
 BuildRequires: libxml2-python
15 15
 BuildRequires: shellfu-bash-pretty
16
+%if 0%{?fedora} == 26
17
+BuildRequires: /usr/bin/python
18
+%endif
16 19
 
17 20
 Requires: %shellfu_req
18 21
 Requires: libxml2-python
19 22
 Requires: shellfu-bash
20 23
 Requires: shellfu-bash-pretty
24
+%if 0%{?fedora} == 26
25
+BuildRequires: /usr/bin/python
26
+%endif
21 27
 %description
22 28
 pxpath is Shellfu/Bash wrapper around libxml2-python with intent
23 29
 to enable you to make simple XPath queries from a shell script,