%include /usr/lib/rpm/macros.python Summary: Python interface to OpenSSL Summary(pl): Interfejs Pythona do OpenSSL Name: python-M2Crypto Version: 0.11 Release: 1 License: BSD-like Source0: http://www.pobox.org.sg/home/ngps/m2/m2crypto-%{version}.zip # Source0-md5: c018c94e00b33aac969fbbe02b244aba URL: http://www.pobox.org.sg/home/ngps/m2/ Group: Development/Languages/Python %pyrequires_eq python BuildRequires: python-devel >= 2.2.1 BuildRequires: openssl-devel >= 0.9.7 BuildRequires: swig >= 1.3.17 BuildRequires: rpm-pythonprov BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description M2Crypto makes accessible to the Python programmer the following: - DH, RSA, DSA, symmetric ciphers, message digests, HMACs. - SSL functionality to implement clients and servers. - S/MIME v2. M2Crypto is released under a very liberal BSD-like licence. See LICENCE for details. %description -l pl M2Crypto udostępnia z poziomu Pythona następujące funkcje: - DH, RSA, DSA, szyfry symetryczne, skróty, HMAC - SSL do implementacji klientów i serwerów - S/MIME v2. %prep %setup -q -n m2crypto-%{version} %build # workaroud (no way to pass -ISWIG to swig invocation) cp SWIG/*.i SWIG/*.h . python setup.py build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{py_sitedir} python setup.py install \ --root=$RPM_BUILD_ROOT \ --optimize=2 # shutup check-files find $RPM_BUILD_ROOT/%{py_sitedir} -name \*.py \ -exec rm {} \; %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc BUGS CHANGES INSTALL LICENCE README STORIES doc/*.html demo %attr(755,root,root) %{py_sitedir}/M2Crypto/*.so %{py_sitedir}/M2Crypto/*.py[oc] %dir %{py_sitedir}/M2Crypto/SSL %{py_sitedir}/M2Crypto/SSL/*.py[oc] %dir %{py_sitedir}/M2Crypto/PGP %{py_sitedir}/M2Crypto/PGP/*.py[oc]