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