Bladeren bron

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 jaren geleden
bovenliggende
commit
d71f6645d6
1 gewijzigde bestanden met toevoegingen van 6 en 0 verwijderingen
  1. 6
    0
      packaging/template.spec

+ 6
- 0
packaging/template.spec Bestand weergeven

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