%define scl rh-python36 %{?scl:%scl_package %{name}} %{!?scl:%global pkg_name %{name}} %define name service_identity %define version 18.1.0 %define unmangled_version 18.1.0 %define unmangled_version 18.1.0 %define release 1 Summary: Service identity verification for pyOpenSSL & cryptography. %{?scl:Requires: %{scl}-runtime} %{?scl:BuildRequires: %{scl}-runtime} Name: %{?scl_prefix}service_identity Version: %{version} Release: %{release} Source0: service_identity-%{unmangled_version}.tar.gz License: MIT Group: Development/Libraries BuildRoot: %{_tmppath}/service_identity-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: Hynek Schlawack Packager: Martin Juhl Url: https://service-identity.readthedocs.io/ %description ============================= Service Identity Verification ============================= .. image:: https://readthedocs.org/projects/service-identity/badge/?version=stable :target: https://service-identity.readthedocs.io/en/stable/?badge=stable :alt: Documentation Status .. image:: https://travis-ci.org/pyca/service_identity.svg?branch=master :target: https://travis-ci.org/pyca/service_identity :alt: CI status .. image:: https://codecov.io/github/pyca/service_identity/branch/master/graph/badge.svg :target: https://codecov.io/github/pyca/service_identity :alt: Test Coverage .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/ambv/black :alt: Code style: black .. image:: https://www.irccloud.com/invite-svg?channel=%23cryptography-dev&hostname=irc.freenode.net&port=6697&ssl=1 :target: https://www.irccloud.com/invite?channel=%23cryptography-dev&hostname=irc.freenode.net&port=6697&ssl=1 .. begin 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. ``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. ``service_identity``\ ’s documentation lives at `Read the Docs `_, the code on `GitHub `_. .. _Twisted: https://twistedmatrix.com/ .. _pyOpenSSL: https://pypi.org/project/pyOpenSSL/ .. _MITM: https://en.wikipedia.org/wiki/Man-in-the-middle_attack .. _RFC 6125: https://www.rfc-editor.org/info/rfc6125 .. _PyCA cryptography: https://cryptography.io/ Release Information =================== 18.1.0 (2018-12-05) ------------------- Changes: ^^^^^^^^ - pyOpenSSL is optional now if you use ``service_identity.cryptography.*`` only. - Added support for ``iPAddress`` ``subjectAltName``\ s. You can now verify whether a connection or a certificate is valid for an IP address using ``service_identity.pyopenssl.verify_ip_address()`` and ``service_identity.cryptography.verify_certificate_ip_address()``. `#12 `_ `Full changelog `_. Authors ======= ``service_identity`` is written and maintained by `Hynek Schlawack `_. The development is kindly supported by `Variomedia AG `_. Other contributors can be found in `GitHub's overview `_. %prep %{?scl:scl enable %{scl} - << \EOF} set -ex %setup -n service_identity-%{unmangled_version} -n service_identity-%{unmangled_version} %{?scl:EOF} %build %{?scl:scl enable %{scl} - << \EOF} set -ex python3 setup.py build %{?scl:EOF} %install %{?scl:scl enable %{scl} - << \EOF} set -ex python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES %{?scl:EOF} %clean %{?scl:scl enable %{scl} - << \EOF} set -ex rm -rf $RPM_BUILD_ROOT %{?scl:EOF} %files -f INSTALLED_FILES %defattr(-,root,root)