3 %bcond_without doc # Sphinx documentation
4 %bcond_without tests # unit test
6 Summary: Crypthography library for Python 3
7 Summary(pl.UTF-8): Biblioteka Cryptography dla Pythona 3
8 Name: python3-cryptography
11 License: Apache v2.0 or BSD
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/cryptography/
14 Source0: https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
15 # Source0-md5: ba34eba3ae36cbf3d2e1ee3239f07732
16 #Source1Download: https://pypi.org/simple/cryptography_vectors/
17 Source1: https://files.pythonhosted.org/packages/source/c/cryptography-vectors/cryptography_vectors-%{version}.tar.gz
18 # Source1-md5: 8e9d050bd601d1788883fa361c69cf85
19 URL: https://cryptography.io/
20 BuildRequires: openssl-devel >= 1.1.0
21 BuildRequires: rpm-pythonprov >= 5.4.15-48
22 BuildRequires: rpmbuild(macros) >= 1.714
24 BuildRequires: python3-cffi >= 1.12
25 BuildRequires: python3-devel >= 1:3.6
26 BuildRequires: python3-setuptools >= 18.5
27 BuildRequires: python3-six >= 1.4.1
29 BuildRequires: python3-hypothesis >= 1.11.4
30 BuildRequires: python3-iso8601
31 BuildRequires: python3-pretend
32 BuildRequires: python3-pytest >= 3.6.0
33 BuildRequires: python3-pytz
36 BuildRequires: python3-sphinx_rtd_theme
37 BuildRequires: sphinx-pdg-3 >= 1.6.5
39 Requires: openssl >= 1.1.0
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 cryptography is a package which provides cryptographic recipes and
44 primitives to Python developers. Our goal is for it to be your
45 "cryptographic standard library". It supports Python 3.6+ and
48 cryptography includes both high level recipes and low level interfaces
49 to common cryptographic algorithms such as symmetric ciphers, message
50 digests, and key derivation functions.
52 %description -l pl.UTF-8
53 cryptography to pakiet zaprojektowany w celu udostępnienia funkcji i
54 obiektów kryptograficznych programistom Pythona. Celem jest
55 dostarczenie "standardowej biblioteki kryptograficznej". Obsługuje
56 Pythona 3.6+ oraz PyPy 7.2+.
58 cryptography zawiera zarówno funkcje wysokopoziomowe, jak i
59 niskopoziomowe interfejsy do popularnych algorytmów kryptograficznych,
60 takich jak szyfry symetryczne, skróty wiadomości czy funkcje
61 wyprowadzające klucze.
64 Summary: API documentation for cryptography module
65 Summary(pl.UTF-8): Dokumentacja API modułu cryptography
70 API documentation for cryptography module.
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API modułu cryptography.
76 %setup -q -n cryptography-%{version} %{?with_tests:-a1}
79 %{__mv} cryptography_vectors-%{version}/cryptography_vectors .
83 export CFLAGS="%{rpmcflags}"
88 PYTHONPATH=$(echo $(pwd)/build-3/lib.*) \
89 %{__python3} -m pytest tests
93 %{__make} -C docs html \
94 SPHINXBUILD=sphinx-build-3
98 rm -rf $RPM_BUILD_ROOT
103 rm -rf $RPM_BUILD_ROOT
106 %defattr(644,root,root,755)
107 %doc CHANGELOG.rst CONTRIBUTING.rst LICENSE LICENSE.APACHE LICENSE.BSD README.rst
108 %dir %{py3_sitedir}/cryptography
109 %{py3_sitedir}/cryptography/*.py
110 %{py3_sitedir}/cryptography/py.typed
111 %{py3_sitedir}/cryptography/__pycache__
112 %dir %{py3_sitedir}/cryptography/hazmat
113 %{py3_sitedir}/cryptography/hazmat/*.py
114 %{py3_sitedir}/cryptography/hazmat/__pycache__
115 %dir %{py3_sitedir}/cryptography/hazmat/backends
116 %{py3_sitedir}/cryptography/hazmat/backends/*.py
117 %{py3_sitedir}/cryptography/hazmat/backends/__pycache__
118 %dir %{py3_sitedir}/cryptography/hazmat/backends/openssl
119 %{py3_sitedir}/cryptography/hazmat/backends/openssl/*.py
120 %{py3_sitedir}/cryptography/hazmat/backends/openssl/__pycache__
121 %dir %{py3_sitedir}/cryptography/hazmat/bindings
122 %{py3_sitedir}/cryptography/hazmat/bindings/*.py
123 %{py3_sitedir}/cryptography/hazmat/bindings/__pycache__
124 %attr(755,root,root) %{py3_sitedir}/cryptography/hazmat/bindings/_*.so
125 %dir %{py3_sitedir}/cryptography/hazmat/bindings/_rust
126 %{py3_sitedir}/cryptography/hazmat/bindings/_rust/*.pyi
127 %dir %{py3_sitedir}/cryptography/hazmat/bindings/openssl
128 %{py3_sitedir}/cryptography/hazmat/bindings/openssl/*.py
129 %{py3_sitedir}/cryptography/hazmat/bindings/openssl/__pycache__
130 %dir %{py3_sitedir}/cryptography/hazmat/primitives
131 %{py3_sitedir}/cryptography/hazmat/primitives/*.py
132 %{py3_sitedir}/cryptography/hazmat/primitives/__pycache__
133 %dir %{py3_sitedir}/cryptography/hazmat/primitives/asymmetric
134 %{py3_sitedir}/cryptography/hazmat/primitives/asymmetric/*.py
135 %{py3_sitedir}/cryptography/hazmat/primitives/asymmetric/__pycache__
136 %dir %{py3_sitedir}/cryptography/hazmat/primitives/ciphers
137 %{py3_sitedir}/cryptography/hazmat/primitives/ciphers/*.py
138 %{py3_sitedir}/cryptography/hazmat/primitives/ciphers/__pycache__
139 %dir %{py3_sitedir}/cryptography/hazmat/primitives/kdf
140 %{py3_sitedir}/cryptography/hazmat/primitives/kdf/*.py
141 %{py3_sitedir}/cryptography/hazmat/primitives/kdf/__pycache__
142 %dir %{py3_sitedir}/cryptography/hazmat/primitives/serialization
143 %{py3_sitedir}/cryptography/hazmat/primitives/serialization/*.py
144 %{py3_sitedir}/cryptography/hazmat/primitives/serialization/__pycache__
145 %dir %{py3_sitedir}/cryptography/hazmat/primitives/twofactor
146 %{py3_sitedir}/cryptography/hazmat/primitives/twofactor/*.py
147 %{py3_sitedir}/cryptography/hazmat/primitives/twofactor/__pycache__
148 %dir %{py3_sitedir}/cryptography/x509
149 %{py3_sitedir}/cryptography/x509/*.py
150 %{py3_sitedir}/cryptography/x509/__pycache__
151 %{py3_sitedir}/cryptography-%{version}-py*.egg-info
155 %defattr(644,root,root,755)
156 %doc docs/_build/html/{_downloads,_static,development,hazmat,x509,*.html,*.js}