%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-hashlib Version: 20081119 Release: 1%{?dist} Summary: A port of hashlib to python 2.4 Group: Development/Languages License: Python URL: http://code.krypto.org/python/hashlib/ Source0: http://code.krypto.org/python/hashlib/hashlib-20081119.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel < 2.5 %description Python secure hash and message digest module MD5, SHA1, SHA224, SHA256, SHA384 and SHA512 (back ported from recent Python's for use on 2.3 and 2.4). %prep %setup -q -n hashlib-%{version} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --root %{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE PKG-INFO ChangeLog OWNERS %{python_sitearch}/*.so %{python_sitearch}/*.py* %changelog * Wed Jan 12 2011 Paulo Roma - 20081119-1 - First release