|
|
@ -1,147 +1,120 @@
|
|
|
|
%bcond_with check
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
|
|
%global modname service-identity
|
|
|
|
%global modname service-identity
|
|
|
|
%global srcname service_identity
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without python3
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{modname}
|
|
|
|
Name: python-%{modname}
|
|
|
|
Version: 18.1.0
|
|
|
|
Version: 21.1.0
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Summary: Service identity verification for pyOpenSSL
|
|
|
|
Summary: Service identity verification for pyOpenSSL
|
|
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/pyca/service_identity
|
|
|
|
URL: https://github.com/pyca/service-identity
|
|
|
|
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
|
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
# Revert theme change as "furo" theme is not packaged
|
|
|
|
|
|
|
|
Patch0: 0001-Revert-theme-change.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%global _description \
|
|
|
|
%global common_description %{expand:
|
|
|
|
Service Identity Verification for pyOpenSSL.\
|
|
|
|
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
|
|
|
|
TL;DR: Use this package if you use pyOpenSSL and don’t want to be MITMed.\
|
|
|
|
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.
|
|
|
|
service_identity aspires to give you all the tools you need for verifying\
|
|
|
|
In the simplest case, this means host name verification. However,
|
|
|
|
whether a certificate is valid for the intended purposes.\
|
|
|
|
service-identity implements RFC 6125 fully and plans to add other relevant RFCs
|
|
|
|
\
|
|
|
|
too.}
|
|
|
|
In the simplest case, this means host name verification. However,\
|
|
|
|
|
|
|
|
service_identity implements RFC 6125 fully and plans to add other\
|
|
|
|
|
|
|
|
relevant RFCs too.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python2-%{modname}
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python2-%{modname}}
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
BuildRequires: python2dist(setuptools)
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
|
|
|
BuildRequires: python2dist(attrs)
|
|
|
|
|
|
|
|
BuildRequires: python2dist(idna) >= 0.6
|
|
|
|
|
|
|
|
BuildRequires: python2dist(ipaddress)
|
|
|
|
|
|
|
|
BuildRequires: python2dist(pyasn1)
|
|
|
|
|
|
|
|
BuildRequires: python2dist(pyasn1-modules)
|
|
|
|
|
|
|
|
BuildRequires: python2dist(pyopenssl) >= 0.14
|
|
|
|
|
|
|
|
BuildRequires: python2dist(pytest)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Requires: python2dist(attrs)
|
|
|
|
|
|
|
|
Requires: python2dist(pyasn1)
|
|
|
|
|
|
|
|
Requires: python2dist(pyasn1-modules)
|
|
|
|
|
|
|
|
Requires: python2dist(pyopenssl) >= 0.14
|
|
|
|
|
|
|
|
Recommends: python2dist(idna) >= 0.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{modname} %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Python 2 version.
|
|
|
|
%description %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
%package -n python3-%{modname}
|
|
|
|
%package -n python3-%{modname}
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
BuildRequires: %{py3_dist sphinx}
|
|
|
|
BuildRequires: python3dist(sphinx)
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
BuildRequires: python3dist(attrs)
|
|
|
|
BuildRequires: %{py3_dist pytest}
|
|
|
|
BuildRequires: python3dist(idna) >= 0.6
|
|
|
|
|
|
|
|
BuildRequires: python3dist(pyasn1)
|
|
|
|
|
|
|
|
BuildRequires: python3dist(pyasn1-modules)
|
|
|
|
|
|
|
|
BuildRequires: python3dist(pyopenssl) >= 0.14
|
|
|
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Requires: python3dist(attrs)
|
|
|
|
|
|
|
|
Requires: python3dist(pyasn1)
|
|
|
|
|
|
|
|
Requires: python3dist(pyasn1-modules)
|
|
|
|
|
|
|
|
Requires: python3dist(pyopenssl) >= 0.14
|
|
|
|
|
|
|
|
Recommends: python3dist(idna) >= 0.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{modname} %{_description}
|
|
|
|
%description -n python3-%{modname} %{common_description}
|
|
|
|
|
|
|
|
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python-%{modname}-doc
|
|
|
|
%package -n python-%{modname}-doc
|
|
|
|
Summary: Service-identity documentation
|
|
|
|
Summary: Service-identity documentation
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python-%{modname}-doc
|
|
|
|
%description -n python-%{modname}-doc
|
|
|
|
Documentation for service-identity.
|
|
|
|
Documentation for service-identity.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%pyproject_extras_subpkg -n python3-%{modname} idna
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
%autosetup -p1 -n %{modname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%generate_buildrequires
|
|
|
|
%py2_build
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with python3}
|
|
|
|
%pyproject_buildrequires -x idna
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%py2_install
|
|
|
|
%pyproject_install
|
|
|
|
%if %{with python3}
|
|
|
|
%pyproject_save_files service_identity
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
# generate html docs
|
|
|
|
# generate html docs
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 docs html
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 docs html
|
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
# remove the sphinx-build leftovers
|
|
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
|
|
rm -rf html/.{doctrees,buildinfo}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-%{python2_version} -v
|
|
|
|
%pytest -v
|
|
|
|
%if %{with python3}
|
|
|
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python2-%{modname}
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{srcname}-*.egg-info/
|
|
|
|
|
|
|
|
%{python2_sitelib}/%{srcname}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
%files -n python3-%{modname} -f %{pyproject_files}
|
|
|
|
%files -n python3-%{modname}
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%doc README.rst
|
|
|
|
%doc README.rst
|
|
|
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
|
|
|
|
|
|
%{python3_sitelib}/%{srcname}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python-%{modname}-doc
|
|
|
|
%files -n python-%{modname}-doc
|
|
|
|
%doc html
|
|
|
|
%doc html
|
|
|
|
%license LICENSE docs/license.rst
|
|
|
|
%license LICENSE docs/license.rst
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Jul 22 2019 Stephen Smoogen <smooge@fedoraproject.org> - 18.1.0-2
|
|
|
|
* Fri Jan 28 2022 Carl George <carl@george.computer> - 21.1.0-5
|
|
|
|
- Bootstrap for RHEL8
|
|
|
|
- Add idna extras subpackage
|
|
|
|
|
|
|
|
- Switch to pyproject macros
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 21.1.0-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.1.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 21.1.0-2
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 24 13:50:05 CEST 2021 Robert-André Mauchin <zebob.m@gmail.com> - 21.1.0-1
|
|
|
|
|
|
|
|
- Update to 21.1.0
|
|
|
|
|
|
|
|
- Close: rhbz#1958639
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 18.1.0-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18.1.0-8
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 18.1.0-7
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18.1.0-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 09 2019 Miro Hrončok <mhroncok@redhat.com> - 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 <mhroncok@redhat.com> - 18.1.0-4
|
|
|
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.1.0-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 03 2019 Miro Hrončok <mhroncok@redhat.com> - 18.1.0-2
|
|
|
|
* Wed Jul 03 2019 Miro Hrončok <mhroncok@redhat.com> - 18.1.0-2
|
|
|
|
- Rebuilt to update automatic Python dependencies
|
|
|
|
- Rebuilt to update automatic Python dependencies
|
|
|
|