54 lines
1.2 KiB
RPMSpec
54 lines
1.2 KiB
RPMSpec
%bcond_with check
|
|
|
|
Name: python-distlib
|
|
Version: 0.3.0
|
|
Release: 2
|
|
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 Jun 5 2020 chengzihan <chengzihan2@huawei.com> - 0.3.0-2
|
|
- Package init
|