Blob Blame Raw

%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}

Summary:	Python bindings for OpenBSD's Blowfish password hashing code
Name:		py-bcrypt
Version:	0.2
Release:	5%{?dist}
License:	BSD with advertising
Group:		Development/Libraries
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires:	python2-devel

python-bcrypt is a Python wrapper of OpenBSD's Blowfish password hashing
code, as described in "A Future-Adaptable Password Scheme" by Niels
Provos and David Mazières.

This system hashes passwords using a version of Bruce Schneier's Blowfish
block cipher with modifications designed to raise the cost of off-line
password cracking and frustrate fast hardware implementation. The
computation cost of the algorithm is parametised, so it can be increased
as computers get faster. The intent is to make a compromise of a password
database less likely to result in an attacker gaining knowledge of the
plaintext passwords (e.g. using John the Ripper). 

%setup -q -n %{name}-%{version}

%{__python} build

rm -rf %{buildroot}
%{__python} install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"

rm  -rf %{buildroot}


* Tue Feb 08 2011 Fedora Release Engineering <> - 0.2-5
- Rebuilt for

* Tue Aug 17 2010 - 0.2-4
- Altered spec file to allow building across py2.6 and py2.7

* Thu Aug 12 2010 - 0.2-3
- Rebuilt for python 2.7

* Wed Aug 11 2010 - 0.2-2
- packaged for Fedora

*Mon Jun 14 2010
- (djm) Prefer setuptools for packaging. Based on patch from Niall
- (djm) Release py-bcrypt-0.2

*Thu Oct 01 2009
- (djm) Allow Python threads to run during (potentially lengthy) bcrypt
   operation. Patch from vijay AT

*Tue Aug 08 2006
- (djm) Add support for Win32

*Mon May 22 2006
- (djm) Start