python-url-normalize/python-url-normalize.spec

50 lines
1.1 KiB
RPMSpec

%global pypi_name url-normalize
Name: python-%{pypi_name}
Version: 1.4.3
Release: 1
Summary: URL normalization for Python
License: MIT
URL: https://github.com/niksite/url-normalize
Source0: https://files.pythonhosted.org/packages/ec/ea/780a38c99fef750897158c0afb83b979def3b379aaac28b31538d24c4e8f/url-normalize-1.4.3.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
BuildRequires: python3-poetry-core
Patch001:0001-bugfix.patch
%description
URI Normalization function
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3dist(six)
%description -n python3-%{pypi_name}
URI Normalization function
%prep
%autosetup -n %{pypi_name}-%{version} -p1
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/url_normalize*
%changelog
* Fri Aug 18 2023 luolu12 <luluoc@isoftstone.com> - 1.4.3-1
- Initial package.