From fe342c09d626212d80f894a06f68ad3d0d465b42 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 23:04:52 +0300 Subject: [PATCH] import python-url-normalize-1.4.3-5.el10 --- .gitignore | 1 + .python-url-normalize.metadata | 1 + .../python-url-normalize-poetry-core.patch | 21 +++++ SPECS/python-url-normalize.spec | 90 +++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 .gitignore create mode 100644 .python-url-normalize.metadata create mode 100644 SOURCES/python-url-normalize-poetry-core.patch create mode 100644 SPECS/python-url-normalize.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..56ee9c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/python-url-normalize-1.4.3.tar.gz diff --git a/.python-url-normalize.metadata b/.python-url-normalize.metadata new file mode 100644 index 0000000..da7253b --- /dev/null +++ b/.python-url-normalize.metadata @@ -0,0 +1 @@ +ea3cd3c075857c02f89d8c786b6bed327806f1d1 SOURCES/python-url-normalize-1.4.3.tar.gz diff --git a/SOURCES/python-url-normalize-poetry-core.patch b/SOURCES/python-url-normalize-poetry-core.patch new file mode 100644 index 0000000..564b17f --- /dev/null +++ b/SOURCES/python-url-normalize-poetry-core.patch @@ -0,0 +1,21 @@ +From b8557b10c977b191cc9d37e6337afe874a24ad08 Mon Sep 17 00:00:00 2001 +From: Fabian Affolter +Date: Sun, 2 Jan 2022 11:14:15 +0100 +Subject: [PATCH] Switch to poetry-core + +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index f824aa9..ed77161 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"] ++requires = ["poetry-core>=1.0.0"] ++build-backend = "poetry.core.masonry.api" diff --git a/SPECS/python-url-normalize.spec b/SPECS/python-url-normalize.spec new file mode 100644 index 0000000..0945fb2 --- /dev/null +++ b/SPECS/python-url-normalize.spec @@ -0,0 +1,90 @@ +%global srcname url-normalize + +Name: python-%{srcname} +Version: 1.4.3 +Release: 5%{?dist} +Summary: Python URI normalizator + +License: MIT +Url: https://github.com/niksite/url-normalize +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + +# https://github.com/niksite/url-normalize/pull/28 +Patch0: https://github.com/niksite/url-normalize/pull/28.patch#/python-url-normalize-poetry-core.patch + +BuildArch: noarch +BuildRequires: python3-devel +# needed for check +BuildRequires: python3dist(pytest) + +%global _description %{expand: + +URI Normalization function + * Take care of IDN domains. + * Always provide the URI scheme in lowercase characters. + * Always provide the host, if any, in lowercase characters. + * Only perform percent-encoding where it is essential. + * Always use uppercase A-through-F characters when percent-encoding. + * Prevent dot-segments appearing in non-relative URI paths. + * For schemes that define a default authority, use an empty authority if the + default is desired. + * For schemes that define an empty path to be equivalent to a path of "/", + use "/". + * For schemes that define a port, use an empty port if the default is desired + * All portions of the URI must be utf-8 encoded NFC from Unicode strings + +Inspired by Sam Ruby's urlnorm.py: + http://intertwingly.net/blog/2004/08/04/Urlnorm +This fork author: Nikolay Panov () +} + +%description %_description + +%generate_buildrequires +%pyproject_buildrequires + +%package -n python3-%{srcname} +Summary: %{summary} + +%description -n python3-%{srcname} %_description + +%prep +%autosetup -p 1 -n %{srcname}-%{version} + +# supplied tox.ini causes check to fail, will use pytest instead +rm tox.ini + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files url_normalize + +%check +%pytest + +%files -n python3-%{srcname} -f %{pyproject_files} +%license LICENSE +%doc README.md + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 1.4.3-5 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 1.4.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 1.4.3-4 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.4.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.4.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Sep 29 2023 Andrew Bauer - 1.4.3-1 +- initial specfile +- 1.4.3 release +