]>
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 |
c8750eea | 4 | Version: 0.22.3 |
cabacf04 | 5 | Release: 2 |
db5bbf78 | 6 | License: BSD-like |
4988ab36 | 7 | Group: Libraries/Python |
c8750eea JB |
8 | Source0: https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz |
9 | # Source0-md5: 573f21aaac7d5c9549798e72ffcefedd | |
10 | Patch0: %{name}-store2ssl.patch | |
11 | Patch1: %{name}-swig.patch | |
12 | URL: http://chandlerproject.org/bin/view/Projects/MeTooCrypto | |
13 | BuildRequires: openssl-devel >= 0.9.8 | |
14 | BuildRequires: python-devel >= 1:2.6 | |
44aff576 | 15 | BuildRequires: python-modules |
16 | BuildRequires: rpm-pythonprov | |
4988ab36 | 17 | BuildRequires: rpmbuild(macros) >= 1.219 |
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 |
596e80b7 | 44 | %{__python} setup.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 | |
596e80b7 | 50 | %{__python} setup.py install \ |
5d2d2a18 AF |
51 | --root=$RPM_BUILD_ROOT \ |
52 | --optimize=2 | |
2917fb4e | 53 | |
4988ab36 | 54 | %py_postclean |
24ac6e9a | 55 | |
2917fb4e | 56 | %clean |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
c8750eea | 61 | %doc README |
24b30991 | 62 | %dir %{py_sitedir}/M2Crypto |
5d2d2a18 | 63 | %attr(755,root,root) %{py_sitedir}/M2Crypto/*.so |
c8750eea | 64 | %{py_sitedir}/M2Crypto/*.py[co] |
5d2d2a18 | 65 | %dir %{py_sitedir}/M2Crypto/SSL |
c8750eea | 66 | %{py_sitedir}/M2Crypto/SSL/*.py[co] |
7662b057 | 67 | %{py_sitedir}/M2Crypto-*.egg-info |