%bcond_with check Name: python-distlib Version: 0.3.1 Release: 1 Summary: A library of packaging functionality License: Python URL: https://readthedocs.org/projects/distlib/ Source0: %pypi_source distlib %{version} zip Patch0000: distlib_unbundle.patch BuildRequires: python3-devel BuildArch: noarch %description A library of packaging functionality which is intended to be used as the basis for third-party packaging tools. %package -n python3-distlib Summary: A library of packaging functionality %{?python_provide:%python_provide python3-distlib} %description -n python3-distlib A library of packaging functionality which is intended to be used as the basis for third-party packaging tools. %prep %autosetup -n distlib-%{version} -p1 rm distlib/*.exe rm -rf distlib/_backport rm tests/test_shutil.py* rm tests/test_sysconfig.py* %build %py3_build %if %{with check} %check export PYTHONHASHSEED=0 %{python3} setup.py test %endif %install %py3_install %files -n python3-distlib %doc README.rst LICENSE.txt %{python3_sitelib}/distlib %{python3_sitelib}/distlib-%{version}-py?.?.egg-info %changelog * Fri Aug 7 2020 shixuantong - 0.3.1-1 - update to 0.3.1 * Fri Jun 5 2020 chengzihan - 0.3.0-2 - Package init