|
|
5a79e4d |
#$Id$
|
|
|
5a79e4d |
|
|
|
5a79e4d |
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
|
5a79e4d |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
5a79e4d |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
5a79e4d |
%endif
|
|
|
5a79e4d |
|
|
|
5a79e4d |
|
|
|
5a79e4d |
Summary: Python bindings for OpenBSD's Blowfish password hashing code
|
|
|
5a79e4d |
Name: py-bcrypt
|
|
|
5a79e4d |
Version: 0.2
|
|
|
5a79e4d |
Release: 4%{?dist}
|
|
|
5a79e4d |
License: BSD with advertising
|
|
|
5a79e4d |
Group: Development/Libraries
|
|
|
5a79e4d |
URL: http://www.mindrot.org/projects/py-bcrypt/
|
|
|
5a79e4d |
Source: http://www.mindrot.org/files/py-bcrypt/py-bcrypt-%{version}.tar.gz
|
|
|
5a79e4d |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
5a79e4d |
|
|
|
5a79e4d |
BuildRequires: python2-devel
|
|
|
5a79e4d |
|
|
|
5a79e4d |
%description
|
|
|
5a79e4d |
python-bcrypt is a Python wrapper of OpenBSD's Blowfish password hashing
|
|
|
5a79e4d |
code, as described in "A Future-Adaptable Password Scheme" by Niels
|
|
|
5a79e4d |
Provos and David Mazières.
|
|
|
5a79e4d |
|
|
|
5a79e4d |
This system hashes passwords using a version of Bruce Schneier's Blowfish
|
|
|
5a79e4d |
block cipher with modifications designed to raise the cost of off-line
|
|
|
5a79e4d |
password cracking and frustrate fast hardware implementation. The
|
|
|
5a79e4d |
computation cost of the algorithm is parametised, so it can be increased
|
|
|
5a79e4d |
as computers get faster. The intent is to make a compromise of a password
|
|
|
5a79e4d |
database less likely to result in an attacker gaining knowledge of the
|
|
|
5a79e4d |
plaintext passwords (e.g. using John the Ripper).
|
|
|
5a79e4d |
|
|
|
5a79e4d |
%prep
|
|
|
5a79e4d |
%setup -q -n %{name}-%{version}
|
|
|
5a79e4d |
|
|
|
5a79e4d |
%build
|
|
|
5a79e4d |
%{__python} setup.py build
|
|
|
5a79e4d |
|
|
|
5a79e4d |
%install
|
|
|
5a79e4d |
rm -rf %{buildroot}
|
|
|
5a79e4d |
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
|
|
|
5a79e4d |
|
|
|
5a79e4d |
%clean
|
|
|
5a79e4d |
rm -rf %{buildroot}
|
|
|
5a79e4d |
|
|
|
5a79e4d |
%files
|
|
|
5a79e4d |
%defattr(-,root,root,-)
|
|
|
5a79e4d |
%doc ChangeLog LICENSE MANIFEST README TODO
|
|
|
5a79e4d |
%{python_sitearch}/py_bcrypt-0.2-py2.*
|
|
|
5a79e4d |
%{python_sitearch}/bcrypt
|
|
|
5a79e4d |
|
|
|
5a79e4d |
%changelog
|
|
|
5a79e4d |
* Tue Aug 17 2010 david.r@ultracar.co.uk - 0.2-4
|
|
|
5a79e4d |
- Altered spec file to allow building across py2.6 and py2.7
|
|
|
5a79e4d |
|
|
|
5a79e4d |
* Thu Aug 12 2010 dcr226@fedorapeople.org - 0.2-3
|
|
|
5a79e4d |
- Rebuilt for python 2.7
|
|
|
5a79e4d |
|
|
|
5a79e4d |
* Wed Aug 11 2010 dcr226@fedoraproject.org - 0.2-2
|
|
|
5a79e4d |
- packaged for Fedora
|
|
|
5a79e4d |
|
|
|
5a79e4d |
*Mon Jun 14 2010 djm@mindrot.org
|
|
|
5a79e4d |
- (djm) Prefer setuptools for packaging. Based on patch from Niall
|
|
|
5a79e4d |
O'Higgins.
|
|
|
5a79e4d |
- (djm) Release py-bcrypt-0.2
|
|
|
5a79e4d |
|
|
|
5a79e4d |
*Thu Oct 01 2009 djm@mindrot.org
|
|
|
5a79e4d |
- (djm) Allow Python threads to run during (potentially lengthy) bcrypt
|
|
|
5a79e4d |
operation. Patch from vijay AT meebo-inc.com
|
|
|
5a79e4d |
|
|
|
5a79e4d |
*Tue Aug 08 2006 djm@mindrot.org
|
|
|
5a79e4d |
- (djm) Add support for Win32
|
|
|
5a79e4d |
|
|
|
5a79e4d |
*Mon May 22 2006 djm@mindrot.org
|
|
|
5a79e4d |
- (djm) Start
|