]>
Commit | Line | Data |
---|---|---|
0273b8fe AG |
1 | %define _class Crypt |
2 | %define _subclass HMAC2 | |
dee4d3ea | 3 | %define _status stable |
0273b8fe AG |
4 | %define _pearname Crypt_HMAC2 |
5 | Summary: %{_pearname} - Implementation of Hashed Message Authentication Code for PHP5 | |
6 | Summary(pl.UTF-8): %{_pearname} - implementacja kodu HMAC (Hashed Message Authentication Code) dla PHP5 | |
7 | Name: php-pear-%{_pearname} | |
dee4d3ea | 8 | Version: 1.0.0 |
82b966ed | 9 | Release: 3 |
0273b8fe AG |
10 | License: New BSD License |
11 | Group: Development/Languages/PHP | |
12 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
dee4d3ea | 13 | # Source0-md5: a409494b0baad6da364424f1e18bcc0f |
0273b8fe | 14 | URL: http://pear.php.net/package/Crypt_HMAC2/ |
61e26375 | 15 | BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1 |
0273b8fe | 16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
4d25e38a | 17 | BuildRequires: rpmbuild(macros) >= 1.300 |
0273b8fe | 18 | Requires: php-pear |
61e26375 | 19 | Requires: php-pear-PEAR-core >= 1:1.3.6 |
d338fc10 | 20 | Obsoletes: php-pear-Crypt_HMAC2-tests |
0273b8fe AG |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Implementation of Hashed Message Authentication Code for PHP5. This | |
26 | package may use the hash or mhash extensions when enabled to extend | |
27 | the range of cryptographic hash functions beyond the natively | |
28 | implemented MD5 and SHA1. | |
29 | ||
30 | In PEAR status of this package is: %{_status}. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Implementacja kodu Hashed Message Authentication Code dla PHP5. Pakiet | |
d2c142b4 | 34 | może skorzystać z modułów hash oraz mhash w celu poszerzenia zakresu |
35 | kryptograficznych funkcji skrótu poza natywnie zaimplementowane MD5 | |
0273b8fe AG |
36 | oraz SHA1. |
37 | ||
38 | Ta klasa ma w PEAR status: %{_status}. | |
39 | ||
0273b8fe AG |
40 | %prep |
41 | %pear_package_setup | |
42 | ||
dee4d3ea ER |
43 | rm .%{php_pear_dir}/generate_package_xml.php |
44 | ||
0273b8fe AG |
45 | %install |
46 | rm -rf $RPM_BUILD_ROOT | |
dee4d3ea | 47 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
0273b8fe | 48 | %pear_package_install |
0273b8fe AG |
49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc install.log docs/Crypt_HMAC2/docs/intro.xml | |
56 | %{php_pear_dir}/.registry/*.reg | |
57 | %{php_pear_dir}/Crypt/HMAC2 | |
58 | %{php_pear_dir}/Crypt/HMAC2.php |