3 %bcond_without doc # Sphinx documentation
4 %bcond_with tests # unit tests (not included in release tarball)
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
8 Summary: Service identity verification for pyOpenSSL & cryptography
9 Summary(pl.UTF-8): Weryfikacja tożsamości usługi dla modułów pyOpenSSL i cryptography
10 Name: python-service_identity
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/service_identity/
16 Source0: https://files.pythonhosted.org/packages/source/s/service-identity/service_identity-%{version}.tar.gz
17 # Source0-md5: c6b8bac93e7d899a1da313a19cc6570a
18 URL: https://pypi.org/project/service_identity/
20 BuildRequires: python-modules >= 1:2.7
21 BuildRequires: python-setuptools
23 BuildRequires: python-attrs >= 16.0.0
24 BuildRequires: python-cryptography
25 BuildRequires: python-ipaddress
26 BuildRequires: python-pyasn1
27 BuildRequires: python-pyasn1_modules
28 BuildRequires: python-pytest
32 BuildRequires: python3-modules >= 1:3.4
33 BuildRequires: python3-setuptools
35 BuildRequires: python3-attrs >= 16.0.0
36 BuildRequires: python3-cryptography
37 BuildRequires: python3-pyasn1
38 BuildRequires: python3-pyasn1_modules
39 BuildRequires: python3-pytest
42 BuildRequires: rpm-pythonprov
43 BuildRequires: rpmbuild(macros) >= 1.714
45 BuildRequires: sphinx-pdg
47 Requires: python-modules >= 1:2.7
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 - you use pyOpenSSL and don't want to be MITM'ed or
54 - if you want to verify that a PyCA cryptography certificate is valid
55 for a certain hostname or IP address.
57 %description -l pl.UTF-8
58 Ten moduł jest przydatny jeśli:
59 - używamy pyOpenSSL i chcemy uniknąć ataku MITM, lub też
60 - chcemy zweryfikować, że certyfikat PyCA cryptography jest poprawny
61 dla określonej nazwy hosta lub adresu IP.
63 %package -n python3-service_identity
64 Summary: Service identity verification for pyOpenSSL & cryptography
65 Summary(pl.UTF-8): Weryfikacja tożsamości usługi dla modułów pyOpenSSL i cryptography
66 Group: Libraries/Python
67 Requires: python3-modules >= 1:3.4
69 %description -n python3-service_identity
71 - you use pyOpenSSL and don't want to be MITM'ed or
72 - if you want to verify that a PyCA cryptography certificate is valid
73 for a certain hostname or IP address.
75 %description -n python3-service_identity -l pl.UTF-8
76 Ten moduł jest przydatny jeśli:
77 - używamy pyOpenSSL i chcemy uniknąć ataku MITM, lub też
78 - chcemy zweryfikować, że certyfikat PyCA cryptography jest poprawny
79 dla określonej nazwy hosta lub adresu IP.
82 Summary: API documentation for Python service_identity module
83 Summary(pl.UTF-8): Dokumentacja API modułu Pythona service_identity
87 API documentation for Python service_identity module.
89 %description apidocs -l pl.UTF-8
90 Dokumentacja API modułu Pythona service_identity.
93 %setup -q -n service_identity-%{version}
100 %{__python} -m pytest tests
108 %{__python3} -m pytest tests
113 %{__make} -C docs html
117 rm -rf $RPM_BUILD_ROOT
130 rm -rf $RPM_BUILD_ROOT
134 %defattr(644,root,root,755)
135 %doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
136 %{py_sitescriptdir}/service_identity
137 %{py_sitescriptdir}/service_identity-%{version}-py*.egg-info
141 %files -n python3-service_identity
142 %defattr(644,root,root,755)
143 %doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
144 %{py3_sitescriptdir}/service_identity
145 %{py3_sitescriptdir}/service_identity-%{version}-py*.egg-info
150 %defattr(644,root,root,755)
151 %doc docs/_build/html/{_static,*.html,*.js}