File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ BuildRequires: zlib-devel
134
134
BuildRequires: libtirpc-devel
135
135
%endif
136
136
137
- %if 0%{?fedora } || 0%{?rhel }
137
+ %if 0%{?fedora } > 26 || 0%{?rhel } > 6
138
138
BuildRequires: /usr/bin/pathfix.py
139
139
%endif
140
140
@@ -491,10 +491,22 @@ sed -i -e '1c\
491
491
%{_bindir }/python2' '%{buildroot }%{_bindir }/nxdialog'
492
492
%endif
493
493
%else
494
- %if 0%{?fedora } >= 23 || 0%{?rhel } >= 8
494
+ # Unfortunately, pathfix.py is not available everywhere, so where it is not,
495
+ # we replace it in a less sophisticated way.
496
+ %if 0%{?fedora } > 22 || 0%{?rhel } > 7
497
+ %if 0%{?fedora } > 26 || 0%{?rhel } > 7
495
498
pathfix.py -pni "%{__python3} %{py3_shbang_opts }" '%{buildroot }%{_bindir }/nxdialog'
496
499
%else
500
+ sed -i -e '1c\
501
+ %{__python3}' '%{buildroot }%{_bindir }/nxdialog'
502
+ %endif
503
+ %else
504
+ %if 0%{?rhel } > 6
497
505
pathfix.py -pni "%{__python2} %{py2_shbang_opts }" '%{buildroot }%{_bindir }/nxdialog'
506
+ %else
507
+ sed -i -e '1c\
508
+ /usr/bin/python2' '%{buildroot }%{_bindir }/nxdialog'
509
+ %endif
498
510
%endif
499
511
%endif
500
512
You can’t perform that action at this time.
0 commit comments