## START: Set by rpmautospec ## (rpmautospec version 0.6.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond tests 1 %bcond docs 1 %global common_description %{expand: Use this package if you use pyOpenSSL and don’t want to be MITMed, or if you want to verify that a PyCA cryptography certificate is valid for a certain hostname or IP address. service-identity aspires to give you all the tools you need for verifying whether a certificate is valid for the intended purposes. In the simplest case, this means host name verification. However, service-identity implements RFC 6125 fully and plans to add other relevant RFCs too.} Name: python-service-identity Version: 23.1.0 Release: %autorelease Summary: Service identity verification for pyOpenSSL License: MIT URL: https://github.com/pyca/service-identity Source: %{pypi_source service_identity} # Downstream-only patch to disable coverage Patch: 0001-Remove-coverage-from-tests-extras.patch BuildArch: noarch BuildRequires: python3-devel %description %{common_description} %package -n python3-service-identity Summary: %{summary} %description -n python3-service-identity %{common_description} %package doc Summary: Documentation for %{name} %description doc %{common_description} This is the documentation package for %{name}. %pyproject_extras_subpkg -n python3-service-identity idna %prep %autosetup -p1 -n service_identity-%{version} %generate_buildrequires %pyproject_buildrequires %{?with_tests:-x tests,idna} %{?with_docs:-x docs} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files service_identity %if %{with docs} # Previously the docs were built with PYTHONPATH=%%{pyproject_build_lib}, but # that macro is now deprecated. It also only works with setuptools, and # upstream switched to hatchling. Building the docs relies on the library # being installed, so we have to do it here in %%install instead of in %%build. PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %endif %check %if %{with tests} %pytest -v %else %pyproject_check_import %endif %files -n python3-service-identity -f %{pyproject_files} %doc README.md %if %{with docs} %files doc %doc html %license LICENSE %endif %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 23.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 23.1.0-6 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 23.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 23.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 23.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 23.1.0-2 - Rebuilt for Python 3.12 * Thu Jun 15 2023 Carl George - 23.1.0-1 - Update to version 23.1.0 * Thu Jun 15 2023 Carl George - 21.1.0-15 - Remove unnecessary macros * Fri Jan 20 2023 Fedora Release Engineering - 21.1.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 21.1.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 23 2022 Robert-André Mauchin - 21.1.0-12 - Fix the location of docs building * Thu Jun 23 2022 Robert-André Mauchin - 21.1.0-11 - Fix Python lib name * Thu Jun 23 2022 Robert-André Mauchin - 21.1.0-10 - Fix macro * Thu Jun 23 2022 Robert-André Mauchin - 21.1.0-9 - Fix typo * Thu Jun 23 2022 Robert-André Mauchin - 21.1.0-8 - Minor cosmetic fixes * Tue Jun 14 2022 Python Maint - 21.1.0-6 - Rebuilt for Python 3.11 * Fri Jan 28 2022 Carl George - 21.1.0-5 - Add idna extras subpackage - Switch to pyproject macros * Fri Jan 21 2022 Fedora Release Engineering - 21.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 21.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu Jun 03 2021 Python Maint - 21.1.0-2 - Rebuilt for Python 3.10 * Mon May 24 13:50:05 CEST 2021 Robert-André Mauchin - 21.1.0-1 - Update to 21.1.0 - Close: rhbz#1958639 * Wed Jan 27 2021 Fedora Release Engineering - 18.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 18.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat May 23 2020 Miro Hrončok - 18.1.0-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 18.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Sep 09 2019 Miro Hrončok - 18.1.0-5 - Subpackage python2-service-identity has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Fri Aug 16 2019 Miro Hrončok - 18.1.0-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 18.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jul 03 2019 Miro Hrončok - 18.1.0-2 - Rebuilt to update automatic Python dependencies * Wed Apr 10 18:38:06 CET 2019 Robert-André Mauchin - 18.1.0-1 - Release 18.1.0 (#1454995) - Fix FTBFS with pytest 4.3 (#1693822) * Sat Feb 02 2019 Fedora Release Engineering - 16.0.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 16.0.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Jun 17 2018 Miro Hrončok - 16.0.0-10 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 16.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 16.0.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 16.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 22 2016 Miro Hrončok - 16.0.0-6 - Rebuild for Python 3.6 * Mon Dec 19 2016 Igor Gnatenko - 16.0.0-5 - Modernize spec * Tue Dec 13 2016 Charalampos Stratakis - 16.0.0-4 - Enable tests * Mon Dec 12 2016 Charalampos Stratakis - 16.0.0-3 - Rebuild for Python 3.6 - Disable python3 tests for now * Mon Oct 17 2016 Tom Prince - 16.0.0-2 - Use python3 to test python3 package. - Fix dependencies. * Mon Oct 17 2016 Tom Prince - 16.0.0-1 - Update source URL for pypi migration. (#1361604) - Build new version * Tue Jul 19 2016 Fedora Release Engineering - 14.0.0-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 14.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 14.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 14.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jan 22 2015 robyduck@fedoraproject.org - 14.0.0-1 - Build new version * Sat Jul 12 2014 tom.prince@twistedmatrix.com - 1.0.0-2 - Add python-idna dependency. * Sat Jul 12 2014 tom.prince@twistedmatrix.com - 1.0.0-1 - Initial package. ## END: Generated by rpmautospec