1 Summary: A SOAP library for Python
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
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define python_prefix %(echo `python -c "import sys; print sys.prefix"`)
17 %define python_version %(echo `python -c "import sys; print sys.version[:3]"`)
18 %define python_includedir %{_includedir}/python%{python_version}
19 %define python_libdir %{python_prefix}/lib/python%{python_version}
20 %define python_sitedir %{python_libdir}/site-packages
21 %define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
22 %define python_compile python -c "import compileall; compileall.compile_dir('.')"
25 M2Crypto 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.
30 M2Crypto is released under a very liberal BSD-style licence. See
34 %setup -q -n m2crypto-%{version}
37 make -C swig INCLUDE="-I. -I%{python_includedir}"
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{python_sitedir}
46 find M2Crypto -name \*.py | xargs -r rm -f
47 cp -a M2Crypto $RPM_BUILD_ROOT%{python_sitedir}
49 gzip -9nf BUGS CHANGES INSTALL LICENCE README STORIES
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc *.gz doc/*.html demo
57 %{python_sitedir}/M2Crypto