Skip to content

Commit d1e25e8

Browse files
committed
packaging: do not use %py_provides in epel-7 builds
If the buildroot contains outdated packages that do not yet contain definition of the macro, it causes the build of csdiff to fail with: ``` error: line 90: Unknown tag: %py_provides python3-csdiff ``` This partially reverts commit df5c63f. Fixes: commit f16db5a Closes: #203
1 parent 8e7e1ee commit d1e25e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: make-srpm.sh

+5
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,12 @@ code scan defect lists to find out added or fixed defects.
171171
%package -n python3-%{name}
172172
Summary: Python interface to csdiff for Python 3
173173
BuildRequires: python3-devel
174+
%if 0%{?rhel} == 7
175+
# fallback for epel7 buildroots with outdated RPM macros
176+
%{?python_provide:%python_provide python3-%{name}}
177+
%else
174178
%py_provides python3-%{name}
179+
%endif
175180
176181
%description -n python3-%{name}
177182
This package contains the Python 3 binding for the csdiff tool for comparing

0 commit comments

Comments
 (0)