]>
Commit | Line | Data |
---|---|---|
0dc1620e | 1 | Summary: Python interface to OpenSSL |
f3256f05 | 2 | Summary(pl.UTF-8): Interfejs Pythona do OpenSSL |
2917fb4e | 3 | Name: python-M2Crypto |
085d7304 | 4 | Version: 0.22.5 |
b3683a1e | 5 | Release: 2 |
db5bbf78 | 6 | License: BSD-like |
4988ab36 | 7 | Group: Libraries/Python |
c8750eea | 8 | Source0: https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz |
085d7304 | 9 | # Source0-md5: f84eb07aa1687f39bc26ee7b1ba5a105 |
c8750eea JB |
10 | Patch0: %{name}-store2ssl.patch |
11 | Patch1: %{name}-swig.patch | |
085d7304 | 12 | URL: https://gitlab.com/m2crypto/m2crypto |
c8750eea JB |
13 | BuildRequires: openssl-devel >= 0.9.8 |
14 | BuildRequires: python-devel >= 1:2.6 | |
44aff576 | 15 | BuildRequires: python-modules |
16 | BuildRequires: rpm-pythonprov | |
cf5fa816 | 17 | BuildRequires: rpmbuild(macros) >= 1.710 |
c8750eea | 18 | BuildRequires: swig-python >= 2.0 |
8a818010 | 19 | BuildRequires: unzip |
707d4e2c | 20 | %pyrequires_eq python |
2917fb4e | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
2917fb4e | 23 | %description |
24 | M2Crypto makes accessible to the Python programmer the following: | |
25 | - DH, RSA, DSA, symmetric ciphers, message digests, HMACs. | |
26 | - SSL functionality to implement clients and servers. | |
27 | - S/MIME v2. | |
28 | ||
db5bbf78 | 29 | M2Crypto is released under a very liberal BSD-like licence. See |
2917fb4e | 30 | LICENCE for details. |
31 | ||
12a04f9d JR |
32 | %description -l pl.UTF-8 |
33 | M2Crypto udostępnia z poziomu Pythona następujące funkcje: | |
34 | - DH, RSA, DSA, szyfry symetryczne, skróty, HMAC | |
35 | - SSL do implementacji klientów i serwerów | |
e60c4f73 JB |
36 | - S/MIME v2. |
37 | ||
2917fb4e | 38 | %prep |
e03c4abe | 39 | %setup -q -n M2Crypto-%{version} |
63fb16de | 40 | %patch0 -p1 |
60daa667 | 41 | %patch1 -p1 |
8be7ac7c | 42 | |
2917fb4e | 43 | %build |
35ec8f26 | 44 | %py_build |
2917fb4e | 45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
4988ab36 | 48 | install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}} |
84c63765 | 49 | |
35ec8f26 | 50 | %py_install |
2917fb4e | 51 | |
4988ab36 | 52 | %py_postclean |
24ac6e9a | 53 | |
2917fb4e | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
c8750eea | 59 | %doc README |
24b30991 | 60 | %dir %{py_sitedir}/M2Crypto |
5d2d2a18 | 61 | %attr(755,root,root) %{py_sitedir}/M2Crypto/*.so |
c8750eea | 62 | %{py_sitedir}/M2Crypto/*.py[co] |
085d7304 AM |
63 | %dir %{py_sitedir}/M2Crypto/PGP |
64 | %{py_sitedir}/M2Crypto/PGP/*.py[co] | |
5d2d2a18 | 65 | %dir %{py_sitedir}/M2Crypto/SSL |
c8750eea | 66 | %{py_sitedir}/M2Crypto/SSL/*.py[co] |
7662b057 | 67 | %{py_sitedir}/M2Crypto-*.egg-info |