[packages/python3-rfc3986] - python-rfc3986.spec updated to 2.0.0 for python 3.7+
qboosh
qboosh at pld-linux.org
Sun Nov 2 12:41:40 CET 2025
commit 0db9e4af491dacae7f8e086272376104b2c6eac8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 2 12:41:38 2025 +0100
- python-rfc3986.spec updated to 2.0.0 for python 3.7+
python-rfc3986.spec => python3-rfc3986.spec | 77 +++++------------------------
rfc3986-intersphinx.patch | 8 +++
2 files changed, 20 insertions(+), 65 deletions(-)
---
diff --git a/python-rfc3986.spec b/python3-rfc3986.spec
similarity index 53%
rename from python-rfc3986.spec
rename to python3-rfc3986.spec
index f1d48b0..374d1f4 100644
--- a/python-rfc3986.spec
+++ b/python3-rfc3986.spec
@@ -2,41 +2,31 @@
# Conditional build:
%bcond_without doc # Sphinx documentation
%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
Summary: Validating URI References per RFC 3986
Summary(pl.UTF-8): Sprawdzanie poprawności URI według RFC 3986
-Name: python-rfc3986
-# keep 1.x here for python2 support
-Version: 1.5.0
-Release: 3
+Name: python3-rfc3986
+Version: 2.0.0
+Release: 1
License: Apache v2.0
Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/r/rfc3986/rfc3986-%{version}.tar.gz
-# Source0-md5: 0e3a03c3eb3b679d5a253b168bb5774a
+# Source0-md5: bbf20302bf26bc771e88cc775fbde3bc
+Patch0: rfc3986-intersphinx.patch
URL: https://pypi.org/project/rfc3986
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
+BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
%if %{with tests}
+BuildRequires: python3-idna
BuildRequires: python3-pytest
%endif
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with doc}
-BuildRequires: python-sphinx-prompt
-BuildRequires: sphinx-pdg-2
+BuildRequires: python3-sphinx-prompt
+BuildRequires: sphinx-pdg-3
%endif
-Requires: python-modules >= 1:2.7
+Requires: python3-modules >= 1:3.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -48,20 +38,6 @@ parsing.
Pythonowa implementacja RFC 3986 obejmująca sprawdzanie poprawności i
analizę wiarygodności.
-%package -n python3-rfc3986
-Summary: Validating URI References per RFC 3986
-Summary(pl.UTF-8): Sprawdzanie poprawności URI według RFC 3986
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-
-%description -n python3-rfc3986
-A Python implementation of RFC 3986 including validation and authority
-parsing.
-
-%description -n python3-rfc3986 -l pl.UTF-8
-Pythonowa implementacja RFC 3986 obejmująca sprawdzanie poprawności i
-analizę wiarygodności.
-
%package apidocs
Summary: API documentation for Python rfc3986 module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona rfc3986
@@ -75,19 +51,9 @@ Dokumentacja API modułu Pythona rfc3986.
%prep
%setup -q -n rfc3986-%{version}
+%patch -P0 -p1
%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
%py3_build
%if %{with tests}
@@ -95,44 +61,25 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
PYTHONPATH=$(pwd)/src \
%{__python3} -m pytest tests
%endif
-%endif
%if %{with doc}
PYTHONPATH=$(pwd)/src \
-sphinx-build-2 docs/source docs/build/html
+sphinx-build-3 docs/source docs/build/html
%endif
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
%py3_install
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc AUTHORS.rst LICENSE README.rst
-%{py_sitescriptdir}/rfc3986
-%{py_sitescriptdir}/rfc3986-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-rfc3986
-%defattr(644,root,root,755)
-%doc AUTHORS.rst LICENSE README.rst
%{py3_sitescriptdir}/rfc3986
%{py3_sitescriptdir}/rfc3986-%{version}-py*.egg-info
-%endif
%if %{with doc}
%files apidocs
diff --git a/rfc3986-intersphinx.patch b/rfc3986-intersphinx.patch
new file mode 100644
index 0000000..344bf2e
--- /dev/null
+++ b/rfc3986-intersphinx.patch
@@ -0,0 +1,8 @@
+--- rfc3986-2.0.0/docs/source/conf.py.orig 2022-01-09 17:00:29.000000000 +0100
++++ rfc3986-2.0.0/docs/source/conf.py 2025-11-02 12:39:12.641921294 +0100
+@@ -167,4 +167,4 @@ texinfo_documents = [
+
+
+ # Example configuration for intersphinx: refer to the Python standard library.
+-intersphinx_mapping = {"https://docs.python.org/": None}
++intersphinx_mapping = {"python": ("https://docs.python.org/", None)}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-rfc3986.git/commitdiff/0db9e4af491dacae7f8e086272376104b2c6eac8
More information about the pld-cvs-commit
mailing list