summaryrefslogtreecommitdiffstats
path: root/php-phpass.spec
blob: ca846dc72571a84585e3a33d3d4895922ce9ce83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Name:           php-phpass
Version:        0.3
Release:        2%{?dist}
Summary:        Portable password hashing framework for use in PHP applications

License:        Public Domain
URL:            http://www.openwall.com/phpass/
Group:          Development/Libraries
Source0:        http://www.openwall.com/phpass/phpass-0.3.tar.gz
Source1:        phpass-README.devel

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  php-cli

Requires:       php-common

%description
phpass (pronounced "pH pass") is a portable public domain password hashing
framework for use in PHP applications. It is meant to work with PHP 3 and
above.

The preferred (most secure) hashing method supported by phpass is the
OpenBSD-style Blowfish-based bcrypt 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}

cp -a %{SOURCE1} README.devel


%build

%install
mkdir -p %{buildroot}/%{_datadir}/php/phpass
install -pm 644 PasswordHash.php %{buildroot}%{_datadir}/php/phpass


%check
php test.php | grep PASSED


%files
%defattr(-,root,root,-)
%doc test.php c README.devel
%dir %{_datadir}/php/phpass
%{_datadir}/php/phpass/PasswordHash.php


%changelog
* Wed Dec 19 2012 Remi Collet <RPMS@FamilleCollet.com> - 0.3-2
- backport 0.3.2 for remi repo.

* Sun Dec 16 2012 Gregor Tätzner <brummbq@fedoraproject.org> - 0.3-2
- enabled tests

* Tue Dec 11 2012 Gregor Tätzner <brummbq@fedoraproject.org> - 0.3-1
- Initial package