]> git.pld-linux.org Git - packages/python-M2Crypto.git/blob - python-M2Crypto.spec
- openssl 1.0.2g rebuild
[packages/python-M2Crypto.git] / python-M2Crypto.spec
1 Summary:        Python interface to OpenSSL
2 Summary(pl.UTF-8):      Interfejs Pythona do OpenSSL
3 Name:           python-M2Crypto
4 Version:        0.22.5
5 Release:        2
6 License:        BSD-like
7 Group:          Libraries/Python
8 Source0:        https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-%{version}.tar.gz
9 # Source0-md5:  f84eb07aa1687f39bc26ee7b1ba5a105
10 Patch0:         %{name}-store2ssl.patch
11 Patch1:         %{name}-swig.patch
12 URL:            https://gitlab.com/m2crypto/m2crypto
13 BuildRequires:  openssl-devel >= 0.9.8
14 BuildRequires:  python-devel >= 1:2.6
15 BuildRequires:  python-modules
16 BuildRequires:  rpm-pythonprov
17 BuildRequires:  rpmbuild(macros) >= 1.710
18 BuildRequires:  swig-python >= 2.0
19 BuildRequires:  unzip
20 %pyrequires_eq  python
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
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
29 M2Crypto is released under a very liberal BSD-like licence. See
30 LICENCE for details.
31
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
36 - S/MIME v2.
37
38 %prep
39 %setup -q -n M2Crypto-%{version}
40 %patch0 -p1
41 %patch1 -p1
42
43 %build
44 %py_build
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
49
50 %py_install
51
52 %py_postclean
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc README
60 %dir %{py_sitedir}/M2Crypto
61 %attr(755,root,root) %{py_sitedir}/M2Crypto/*.so
62 %{py_sitedir}/M2Crypto/*.py[co]
63 %dir %{py_sitedir}/M2Crypto/PGP
64 %{py_sitedir}/M2Crypto/PGP/*.py[co]
65 %dir %{py_sitedir}/M2Crypto/SSL
66 %{py_sitedir}/M2Crypto/SSL/*.py[co]
67 %{py_sitedir}/M2Crypto-*.egg-info
This page took 0.030124 seconds and 3 git commands to generate.