diff --git a/0001-bugfix.patch b/0001-bugfix.patch new file mode 100644 index 0000000..3c3b063 --- /dev/null +++ b/0001-bugfix.patch @@ -0,0 +1,24 @@ +From 3aa78e61e455221c8c9786107f3302f0381c749b Mon Sep 17 00:00:00 2001 +From: luolu12 +Date: Mon, 21 Aug 2023 14:32:29 +0800 +Subject: [PATCH] bugfix + +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index f824aa9..50b60d7 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -30,5 +30,5 @@ pytest-socket = [{version="0.3.3", python="~2.7"}, {version="*", python="^3.6"}] + tox = [{version="*", python="^3.6"}] + + [build-system] +-build-backend = "poetry.masonry.api" +-requires = ["poetry>=0.12"] ++build-backend = "poetry.core.masonry.api" ++requires = ["poetry-core>=1.0.0"] +-- +2.33.0 + diff --git a/python-url-normalize.spec b/python-url-normalize.spec new file mode 100644 index 0000000..59c295a --- /dev/null +++ b/python-url-normalize.spec @@ -0,0 +1,49 @@ +%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 - 1.4.3-1 +- Initial package. diff --git a/url-normalize-1.4.3.tar.gz b/url-normalize-1.4.3.tar.gz new file mode 100644 index 0000000..d53ab28 Binary files /dev/null and b/url-normalize-1.4.3.tar.gz differ