# sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: python-passlib Version: 1.5.3 Release: 1%{?dist} Summary: Comprehensive password hashing framework supporting over 20 schemes License: BSD and Beerware and Copyright only URL: http://passlib.googlecode.com Source0: http://passlib.googlecode.com/files/passlib-1.5.3.tar.gz BuildArch: noarch BuildRequires: python2-devel # docs generation requires python-cloud-sptheme, which isn't packaged yet. # so we won't generate the docs yet. #BuildRequires: python-sphinx >= 1.0 #BuildRequires: python-cloud-sptheme %description Passlib is a password hashing library for Python 2 & 3, which provides cross-platform implementations of over 20 password hashing algorithms, as well as a framework for managing existing password hashes. It's designed to be useful for a wide range of tasks, from verifying a hash found in /etc/shadow, to providing full-strength password hashing for multi-user application. %prep %setup -q -n passlib-%{version} %build # Remove CFLAGS=... for noarch packages (unneeded) CFLAGS="%{optflags}" %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root %{buildroot} %files %doc LICENSE README %{python_sitelib}/* %changelog * Mon Oct 17 2011 Matt Domsch - 1.5.3-1 - initial release for Fedora