https://bugzilla.redhat.com/show_bug.cgi?id=1595420
--- Comment #4 from Robert-André Mauchin <zebo...@gmail.com> --- - You misunderstand me: only package the Python 3 lib, Py2 is not needed. Or, in the case you want to support current EPEL, make a conditional with %bcond_without python3 to build Py3 for Fedora and Py2 for EPEL: %if 0%{?rhel} >= 8 || 0%{?fedora} >= 19 %bcond_without python3 %else %bcond_with python3 %endif Name: ydiff Version: 1.1 Release: 1%{?dist} Summary: View colored, incremental diff URL: https://github.com/ymattw/ydiff License: BSD Source0: https://github.com/ymattw/ydiff/archive/%{version}/%{name}-%{version}.tar.gz %if %{without python3} BuildRequires: python2-devel Requires: python%{python2_pkgversion}-%{name} %else BuildRequires: python3-devel Requires: python%{python3_pkgversion}-%{name} %endif Requires: less BuildArch: noarch %description Term based tool to view colored, incremental diff in a Git/Mercurial/Svn workspace or from stdin, with side by side (similar to diff -y) and auto pager support. %if %{without python3} %package -n python2-%{name} %{?python_provide:%python_provide python2-%{name}} Summary: %{summary} %description -n python2-%{name} Python library that implements API used by ydiff tool. %else %package -n python3-%{name} Summary: %{summary} %{?python_provide:%python_provide python3-%{name}} %description -n python3-%{name} Python library that implements API used by ydiff tool. %endif %prep %autosetup -n %{name}-%{version} /usr/bin/sed -i '/#!\/usr\/bin\/env python/d' ydiff.py %build %if %{without python3} %py2_build %else %py3_build %endif %install %if %{without python3} %py2_install %else %py3_install %endif %files %doc README.rst %license LICENSE %{_bindir}/ydiff %if %{without python3} %files -n python2-%{name} %{python2_sitelib}/%{name}.py %{python2_sitelib}/%{name}.pyc %{python2_sitelib}/%{name}.pyo %{python2_sitelib}/%{name}-*.egg-info %else %files -n python3-%{name} %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{name}.py %{python3_sitelib}/%{name}-%{version}-py?.?.egg-info %endif If you don't need EPEL, just drop the Py 2 package. -- You are receiving this mail because: You are on the CC list for the bug. You are always notified about changes to this product and component _______________________________________________ package-review mailing list -- package-review@lists.fedoraproject.org To unsubscribe send an email to package-review-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/package-review@lists.fedoraproject.org/message/TT47OZ45347MHF6TDYE2MJKFP4PFBJZZ/