]>
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 |
cc56e89f | 4 | Version: 0.18.2 |
9f42d05e | 5 | Release: 2 |
db5bbf78 | 6 | License: BSD-like |
4988ab36 | 7 | Group: Libraries/Python |
88d6e1a7 | 8 | Source0: http://wiki.osafoundation.org/pub/Projects/MeTooCrypto/m2crypto-%{version}.tar.gz |
cc56e89f | 9 | # Source0-md5: 445dce53fcfc7ec8f6fd31f54da8a067 |
63fb16de | 10 | Patch0: %{name}-swig_sources.patch |
60daa667 | 11 | Patch1: %{name}-store2ssl.patch |
cc56e89f | 12 | Patch2: %{name}-swig.patch |
63fb16de | 13 | URL: http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto |
718a13ff | 14 | BuildRequires: openssl-devel >= 0.9.7d |
7662b057 | 15 | BuildRequires: python-devel >= 1:2.5 |
4988ab36 | 16 | BuildRequires: rpmbuild(macros) >= 1.219 |
60daa667 | 17 | BuildRequires: swig-python >= 1.3.24 |
8a818010 | 18 | BuildRequires: unzip |
707d4e2c | 19 | %pyrequires_eq python |
2917fb4e | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
2917fb4e | 22 | %description |
23 | M2Crypto makes accessible to the Python programmer the following: | |
24 | - DH, RSA, DSA, symmetric ciphers, message digests, HMACs. | |
25 | - SSL functionality to implement clients and servers. | |
26 | - S/MIME v2. | |
27 | ||
db5bbf78 | 28 | M2Crypto is released under a very liberal BSD-like licence. See |
2917fb4e | 29 | LICENCE for details. |
30 | ||
12a04f9d JR |
31 | %description -l pl.UTF-8 |
32 | M2Crypto udostępnia z poziomu Pythona następujące funkcje: | |
33 | - DH, RSA, DSA, szyfry symetryczne, skróty, HMAC | |
34 | - SSL do implementacji klientów i serwerów | |
e60c4f73 JB |
35 | - S/MIME v2. |
36 | ||
2917fb4e | 37 | %prep |
88d6e1a7 | 38 | %setup -q -n m2crypto-%{version} |
63fb16de | 39 | %patch0 -p1 |
60daa667 | 40 | %patch1 -p1 |
4988ab36 | 41 | %patch2 -p1 |
2917fb4e | 42 | |
8be7ac7c JB |
43 | find demo -type d -name CVS | xargs rm -rf |
44 | ||
2917fb4e | 45 | %build |
24ac6e9a | 46 | python setup.py build |
2917fb4e | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
4988ab36 | 50 | install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}} |
84c63765 | 51 | |
5d2d2a18 AF |
52 | python setup.py install \ |
53 | --root=$RPM_BUILD_ROOT \ | |
54 | --optimize=2 | |
2917fb4e | 55 | |
4988ab36 | 56 | %py_postclean |
57 | cp -r demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
24ac6e9a | 58 | |
2917fb4e | 59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
4988ab36 | 64 | %doc CHANGES LICENCE README doc/*.html |
24b30991 | 65 | %dir %{py_sitedir}/M2Crypto |
5d2d2a18 AF |
66 | %attr(755,root,root) %{py_sitedir}/M2Crypto/*.so |
67 | %{py_sitedir}/M2Crypto/*.py[oc] | |
68 | %dir %{py_sitedir}/M2Crypto/SSL | |
69 | %{py_sitedir}/M2Crypto/SSL/*.py[oc] | |
70 | %dir %{py_sitedir}/M2Crypto/PGP | |
71 | %{py_sitedir}/M2Crypto/PGP/*.py[oc] | |
7662b057 | 72 | %{py_sitedir}/M2Crypto-*.egg-info |
4988ab36 | 73 | %dir %{_examplesdir}/%{name}-%{version} |
74 | %{_examplesdir}/%{name}-%{version}/* |