Skip to content

Commit f16db5a

Browse files
committed
packaging: do not use %py_provides for Python 2
The macro is not available in EPEL-7 buildroot and causes the build of csdiff to fail: ``` error: line 79: Unknown tag: %py_provides python2-csdiff ``` This partially reverts commit df5c63f. Closes: #202
1 parent 16f81cf commit f16db5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make-srpm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ for context embedding in legacy build environments.
157157
%package -n python2-%{name}
158158
Summary: Python interface to csdiff for Python 2
159159
BuildRequires: python2-devel
160-
%py_provides python2-%{name}
160+
%{?python_provide:%python_provide python2-%{name}}
161161
162162
%description -n python2-%{name}
163163
This package contains the Python 2 binding for the csdiff tool for comparing

0 commit comments

Comments
 (0)