[packages/python3-service_identity] - python-service_identity.spec updated to 24.2.0 for python 3.8+

qboosh qboosh at pld-linux.org
Wed Jun 25 20:26:08 CEST 2025


commit 240b0e07d6da3c15485b7f897264a13ff58cd866
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jun 25 20:27:30 2025 +0200

    - python-service_identity.spec updated to 24.2.0 for python 3.8+

 python-service_identity.spec  | 156 ------------------------------------------
 python3-service_identity.spec | 107 +++++++++++++++++++++++++++++
 2 files changed, 107 insertions(+), 156 deletions(-)
---
diff --git a/python-service_identity.spec b/python-service_identity.spec
deleted file mode 100644
index 572bbc8..0000000
--- a/python-service_identity.spec
+++ /dev/null
@@ -1,156 +0,0 @@
-#
-# Conditional build:
-%bcond_without	doc	# Sphinx documentation
-%bcond_with	tests	# unit tests (not included in release tarball)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Service identity verification for pyOpenSSL & cryptography
-Summary(pl.UTF-8):	Weryfikacja tożsamości usługi dla modułów pyOpenSSL i cryptography
-Name:		python-service_identity
-Version:	21.1.0
-Release:	5
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/service_identity/
-Source0:	https://files.pythonhosted.org/packages/source/s/service-identity/service-identity-%{version}.tar.gz
-# Source0-md5:	5e5c195d8fcedc72f9068be2ad9b5a13
-URL:		https://pypi.org/project/service_identity/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-attrs >= 16.0.0
-BuildRequires:	python-cryptography
-BuildRequires:	python-ipaddress
-BuildRequires:	python-pyasn1
-BuildRequires:	python-pyasn1_modules
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-attrs >= 16.0.0
-BuildRequires:	python3-cryptography
-BuildRequires:	python3-pyasn1
-BuildRequires:	python3-pyasn1_modules
-BuildRequires:	python3-pytest
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with doc}
-BuildRequires:	python3-furo
-BuildRequires:	sphinx-pdg-3
-%endif
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Use this package if:
-- you use pyOpenSSL and don't want to be MITM'ed or
-- if you want to verify that a PyCA cryptography certificate is valid
-  for a certain hostname or IP address.
-
-%description -l pl.UTF-8
-Ten moduł jest przydatny jeśli:
-- używamy pyOpenSSL i chcemy uniknąć ataku MITM, lub też
-- chcemy zweryfikować, że certyfikat PyCA cryptography jest poprawny
-  dla określonej nazwy hosta lub adresu IP.
-
-%package -n python3-service_identity
-Summary:	Service identity verification for pyOpenSSL & cryptography
-Summary(pl.UTF-8):	Weryfikacja tożsamości usługi dla modułów pyOpenSSL i cryptography
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-service_identity
-Use this package if:
-- you use pyOpenSSL and don't want to be MITM'ed or
-- if you want to verify that a PyCA cryptography certificate is valid
-  for a certain hostname or IP address.
-
-%description -n python3-service_identity -l pl.UTF-8
-Ten moduł jest przydatny jeśli:
-- używamy pyOpenSSL i chcemy uniknąć ataku MITM, lub też
-- chcemy zweryfikować, że certyfikat PyCA cryptography jest poprawny
-  dla określonej nazwy hosta lub adresu IP.
-
-%package apidocs
-Summary:	API documentation for Python service_identity module
-Summary(pl.UTF-8):	Dokumentacja API modułu Pythona service_identity
-Group:		Documentation
-
-%description apidocs
-API documentation for Python service_identity module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona service_identity.
-
-%prep
-%setup -q -n service-identity-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
-%endif
-%endif
-
-%if %{with doc}
-%{__make} -C docs html \
-	SPHINXBUILD=sphinx-build-3
-%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 CHANGELOG.rst LICENSE README.rst
-%{py_sitescriptdir}/service_identity
-%{py_sitescriptdir}/service_identity-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-service_identity
-%defattr(644,root,root,755)
-%doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
-%{py3_sitescriptdir}/service_identity
-%{py3_sitescriptdir}/service_identity-%{version}-py*.egg-info
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_build/html/{_static,*.html,*.js}
-%endif
diff --git a/python3-service_identity.spec b/python3-service_identity.spec
new file mode 100644
index 0000000..0066666
--- /dev/null
+++ b/python3-service_identity.spec
@@ -0,0 +1,107 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+
+Summary:	Service identity verification for pyOpenSSL & cryptography
+Summary(pl.UTF-8):	Weryfikacja tożsamości usługi dla modułów pyOpenSSL i cryptography
+Name:		python3-service_identity
+Version:	24.2.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/service-identity/
+Source0:	https://files.pythonhosted.org/packages/source/s/service-identity/service_identity-%{version}.tar.gz
+# Source0-md5:	e575db51719742ec39191c896e4c2971
+URL:		https://pypi.org/project/service_identity/
+BuildRequires:	python3-build
+BuildRequires:	python3-hatch-fancy-pypi-readme
+BuildRequires:	python3-hatch-vcs
+BuildRequires:	python3-hatchling
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-attrs >= 19.1.0
+BuildRequires:	python3-cryptography
+BuildRequires:	python3-pyOpenSSL
+BuildRequires:	python3-pyasn1
+BuildRequires:	python3-pyasn1_modules
+BuildRequires:	python3-pytest
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires:	python3-furo
+BuildRequires:	python3-myst_parser
+BuildRequires:	python3-sphinx-notfound-page
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Use this package if:
+- you use pyOpenSSL and don't want to be MITM'ed or
+- if you want to verify that a PyCA cryptography certificate is valid
+  for a certain hostname or IP address.
+
+%description -l pl.UTF-8
+Ten moduł jest przydatny jeśli:
+- używamy pyOpenSSL i chcemy uniknąć ataku MITM, lub też
+- chcemy zweryfikować, że certyfikat PyCA cryptography jest poprawny
+  dla określonej nazwy hosta lub adresu IP.
+
+%package apidocs
+Summary:	API documentation for Python service_identity module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona service_identity
+Group:		Documentation
+
+%description apidocs
+API documentation for Python service_identity module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona service_identity.
+
+%prep
+%setup -q -n service_identity-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests} || %{with doc}
+%{__python3} -m zipfile -e build-3/*.whl build-3-dev
+%endif
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/build-3-dev \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd)/build-3-dev \
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%{py3_sitescriptdir}/service_identity
+%{py3_sitescriptdir}/service_identity-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-service_identity.git/commitdiff/240b0e07d6da3c15485b7f897264a13ff58cd866



More information about the pld-cvs-commit mailing list