Name: php-phpass Version: 0.3 Release: 1%{?dist} Summary: Password hashing framework for PHP License: Public Domain URL: http://www.openwall.com/phpass/ Source0: http://www.openwall.com/phpass/phpass-%{version}.tar.gz Requires: php BuildArch: noarch %description This is a portable public domain password hashing framework for use in PHP applications. It is meant to work with PHP 3 and above, and it has actually been tested with at least PHP 3.0.18 through 5.3.0 so far. The preferred (most secure) hashing method supported by phpass is the OpenBSD-style Blowfish-based bcrypt, also supported with our public domain crypt_blowfish package (for C applications), and known in PHP as CRYPT_BLOWFISH, with a fallback to BSDI-style extended DES-based hashes, known in PHP as CRYPT_EXT_DES, and a last resort fallback to MD5-based salted and variable iteration count password hashes implemented in phpass itself (also referred to as portable hashes). %prep %setup -q -n phpass-%{version} %build # Nothing to build %install rm -rf $RPM_BUILD_ROOT install -dm 755 $RPM_BUILD_ROOT%{_datadir}/php/phpass cp -p PasswordHash.php \ $RPM_BUILD_ROOT%{_datadir}/php/phpass %files %doc test.php c/* %{_datadir}/php/phpass/PasswordHash.php %changelog * Sun Jun 03 2012 Felix Kaechele - 0.3-1 - initial package