]>
Commit | Line | Data |
---|---|---|
47000ee7 AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Crypt | |
3 | %define _subclass DiffieHellman | |
4 | %define _status beta | |
5 | %define _pearname Crypt_DiffieHellman | |
6 | Summary: %{_pearname} - Implementation of Diffie-Hellman Key Exchange cryptographic protocol for PHP5 | |
5268c6a1 | 7 | Summary(pl.UTF-8): %{_pearname} - implementacja protkołu uzgadniania kluczy Diffiego-Hellmana dla PHP5 |
47000ee7 AG |
8 | Name: php-pear-%{_pearname} |
9 | Version: 0.2.0 | |
486f9080 | 10 | Release: 2 |
47000ee7 AG |
11 | License: New BSD License |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
14 | # Source0-md5: 4abdc73b379bdfb3f4b172a30c67335d | |
15 | URL: http://pear.php.net/package/Crypt_DiffieHellman/ | |
16 | BuildRequires: php-pear-PEAR | |
17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
18 | Requires: php-pear | |
19 | Requires: php-pear-PEAR >= 1.4.0b1 | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Implementation of the Diffie-Hellman Key Exchange cryptographic | |
25 | protocol in PHP5. Enables two parties without any prior knowledge of | |
26 | each other establish a secure shared secret key across an insecure | |
27 | channel of communication. | |
28 | ||
29 | In PEAR status of this package is: %{_status}. | |
30 | ||
31 | %description -l pl.UTF-8 | |
5268c6a1 | 32 | Implementacja protokołu uzgadniania kluczy Diffiego-Hellmana dla PHP5. |
33 | Umożliwia dwóm stronom ustalenie w bezpieczny sposób klucza transmisji | |
34 | poprzez niezabezpieczony kanał transmisji. | |
47000ee7 AG |
35 | |
36 | Ta klasa ma w PEAR status: %{_status}. | |
37 | ||
38 | %package tests | |
39 | Summary: Tests for PEAR::%{_pearname} | |
40 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
41 | Group: Development/Languages/PHP | |
42 | AutoReq: no | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | AutoProv: no | |
45 | ||
46 | %description tests | |
47 | Tests for PEAR::%{_pearname}. | |
48 | ||
49 | %description tests -l pl.UTF-8 | |
50 | Testy dla PEAR::%{_pearname}. | |
51 | ||
52 | %prep | |
53 | %pear_package_setup | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/Crypt | |
58 | %pear_package_install | |
59 | mv -f $RPM_BUILD_ROOT%{php_pear_dir}/{,Crypt}/DiffieHellman | |
60 | mv -f $RPM_BUILD_ROOT%{php_pear_dir}/{,Crypt}/DiffieHellman.php | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc install.log | |
68 | %{php_pear_dir}/.registry/*.reg | |
69 | %{php_pear_dir}/Crypt/DiffieHellman/ | |
70 | %{php_pear_dir}/Crypt/DiffieHellman.php | |
71 | ||
72 | %files tests | |
73 | %defattr(644,root,root,755) | |
74 | %{php_pear_dir}/tests/Crypt_DiffieHellman |