1 Summary: Python interface to OpenSSL
6 Source0: http://www.pobox.org.sg/home/ngps/m2/m2crypto-%{version}.zip
7 URL: http://www.pobox.org.sg/home/ngps/m2/
8 Group: Development/Languages/Python
9 Group(de): Entwicklung/Sprachen/Python
10 Group(pl): Programowanie/Jêzyki/Python
11 Requires: python >= 1.5.2
12 BuildRequires: python-devel >= 1.5.2
13 BuildRequires: openssl-devel >= 0.9.6
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define python_prefix %(echo `python -c "import sys; print sys.prefix"`)
18 %define python_version %(echo `python -c "import sys; print sys.version[:3]"`)
19 %define python_includedir %{_includedir}/python%{python_version}
20 %define python_libdir %{python_prefix}/lib/python%{python_version}
21 %define python_sitedir %{python_libdir}/site-packages
22 %define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
23 %define python_compile python -c "import compileall; compileall.compile_dir('.')"
26 M2Crypto 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.
31 M2Crypto is released under a very liberal BSD-style licence. See
35 %setup -q -n m2crypto-%{version}
38 make -C swig INCLUDE="-I. -I%{python_includedir}"
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{python_sitedir}
47 find M2Crypto -name \*.py | xargs -r rm -f
48 cp -a M2Crypto $RPM_BUILD_ROOT%{python_sitedir}
50 gzip -9nf BUGS CHANGES INSTALL LICENCE README STORIES
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc *.gz doc/*.html demo
58 %{python_sitedir}/M2Crypto