54 lines
1.4 KiB
RPMSpec
54 lines
1.4 KiB
RPMSpec
|
|
%global pypi_name pip-shims
|
|||
|
|
%global source_name pip_shims
|
|||
|
|
|
|||
|
|
Name: python-%{pypi_name}
|
|||
|
|
Version: 0.7.3
|
|||
|
|
Release: 1
|
|||
|
|
Summary: Pip-shims is a set of compatibility access shims to the pip internal API.
|
|||
|
|
|
|||
|
|
License: ISC
|
|||
|
|
URL: https://github.com/sarugaku/pip-shims
|
|||
|
|
Source0: %{url}/archive/%{version}/%{source_name}-%{version}.tar.gz
|
|||
|
|
BuildArch: noarch
|
|||
|
|
|
|||
|
|
BuildRequires: python3-devel
|
|||
|
|
BuildRequires: python3-setuptools
|
|||
|
|
BuildRequires: python3-pip
|
|||
|
|
BuildRequires: python3-wheel
|
|||
|
|
BuildRequires: python3-editables
|
|||
|
|
BuildRequires: python3-hatch-vcs
|
|||
|
|
BuildRequires: python3-hatchling
|
|||
|
|
BuildRequires: python3-virtualenv
|
|||
|
|
|
|||
|
|
%description
|
|||
|
|
pip-shims is a set of compatibilty access shims to the pip internal API.
|
|||
|
|
pip-shims provides compatibility across several pip releases.
|
|||
|
|
The shims are provided using a lazy import strategy by hacking a module
|
|||
|
|
by overloading a class instance’s getattr method.
|
|||
|
|
|
|||
|
|
%package -n python3-%{pypi_name}
|
|||
|
|
Summary: %{summary}
|
|||
|
|
|
|||
|
|
%description -n python3-%{pypi_name}
|
|||
|
|
Pip-shims is a set of compatibility access shims to the pip internal API.
|
|||
|
|
|
|||
|
|
|
|||
|
|
%prep
|
|||
|
|
%autosetup -p1 -n %{source_name}-%{version}
|
|||
|
|
|
|||
|
|
%build
|
|||
|
|
%pyproject_build
|
|||
|
|
|
|||
|
|
%install
|
|||
|
|
%pyproject_install
|
|||
|
|
|
|||
|
|
%files -n python3-%{pypi_name}
|
|||
|
|
%license LICENSE
|
|||
|
|
%doc README.rst
|
|||
|
|
%{python3_sitelib}/%{source_name}
|
|||
|
|
%{python3_sitelib}/%{source_name}*.dist-info/
|
|||
|
|
|
|||
|
|
%changelog
|
|||
|
|
* Thu Jun 15 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.7.3-1
|
|||
|
|
- Initial package 0.7.3
|