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