]>
Commit | Line | Data |
---|---|---|
b0d9e26b PG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Crypt | |
3 | %define _subclass HMAC | |
a29c58b9 | 4 | %define _status stable |
b0d9e26b | 5 | %define _pearname %{_class}_%{_subclass} |
a29c58b9 | 6 | |
b0d9e26b | 7 | Summary: %{_pearname} - A class to calculate RFC 2104 compliant hashes |
384ad069 | 8 | Summary(pl.UTF-8): %{_pearname} - klasa licząca hasze zgodne z RFC 2104 |
b0d9e26b | 9 | Name: php-pear-%{_pearname} |
e47648d9 | 10 | Version: 1.0.1 |
7a9184be | 11 | Release: 3 |
b0d9e26b PG |
12 | License: PHP 2.02 |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
e47648d9 | 15 | # Source0-md5: 7c9781e32d23ff35754fd7261a3aad39 |
eeb27c6c | 16 | URL: http://pear.php.net/package/Crypt_HMAC/ |
03b07092 | 17 | BuildRequires: php-pear-PEAR |
a1a8e1de | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
8b0d5cd9 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
b0d9e26b PG |
20 | Requires: php-pear |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | A class to calculate RFC 2104 compliant hashes. | |
26 | ||
228aa588 | 27 | In PEAR status of this package is: %{_status}. |
b0d9e26b | 28 | |
1517efa5 | 29 | %description -l pl.UTF-8 |
384ad069 | 30 | Klasa licząca hasze zgodne z RFC 2104. |
b0d9e26b PG |
31 | |
32 | Ta klasa ma w PEAR status: %{_status}. | |
33 | ||
62340453 ER |
34 | %package tests |
35 | Summary: Tests for PEAR::%{_pearname} | |
4028f80b | 36 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
54b6a49a | 37 | Group: Development/Languages/PHP |
62340453 | 38 | Requires: %{name} = %{version}-%{release} |
fe33932d | 39 | AutoReq: no |
12f7fb4c | 40 | AutoProv: no |
62340453 ER |
41 | |
42 | %description tests | |
43 | Tests for PEAR::%{_pearname}. | |
44 | ||
1517efa5 | 45 | %description tests -l pl.UTF-8 |
ee42c0a0 ER |
46 | Testy dla PEAR::%{_pearname}. |
47 | ||
b0d9e26b | 48 | %prep |
62340453 | 49 | %pear_package_setup |
b0d9e26b PG |
50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
62340453 ER |
53 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
54 | %pear_package_install | |
b0d9e26b PG |
55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
62340453 ER |
61 | %doc install.log |
62 | %{php_pear_dir}/.registry/*.reg | |
b0d9e26b | 63 | %{php_pear_dir}/%{_class}/*.php |
62340453 ER |
64 | |
65 | %files tests | |
66 | %defattr(644,root,root,755) | |
67 | %{php_pear_dir}/tests/* |