]>
Commit | Line | Data |
---|---|---|
47000ee7 AG |
1 | %define _class Crypt |
2 | %define _subclass DiffieHellman | |
3 | %define _status beta | |
4 | %define _pearname Crypt_DiffieHellman | |
5 | Summary: %{_pearname} - Implementation of Diffie-Hellman Key Exchange cryptographic protocol for PHP5 | |
9beec186 | 6 | Summary(pl.UTF-8): %{_pearname} - implementacja protokołu uzgadniania kluczy Diffiego-Hellmana dla PHP5 |
47000ee7 | 7 | Name: php-pear-%{_pearname} |
dcbaddaf ER |
8 | Version: 0.2.6 |
9 | Release: 1 | |
47000ee7 AG |
10 | License: New BSD License |
11 | Group: Development/Languages/PHP | |
12 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
dcbaddaf | 13 | # Source0-md5: 421948445d0c92398d8231f417cbc2fe |
47000ee7 | 14 | URL: http://pear.php.net/package/Crypt_DiffieHellman/ |
b10688a9 | 15 | BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1 |
47000ee7 | 16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
46f4a19c | 17 | BuildRequires: rpmbuild(macros) >= 1.300 |
e0c6be37 ER |
18 | Requires: php(bcmath) |
19 | Requires: php(mbstring) | |
47000ee7 | 20 | Requires: php-pear |
b10688a9 ER |
21 | Requires: php-pear-PEAR-core >= 1:1.3.6 |
22 | Suggests: php-gmp | |
ce21e6a3 | 23 | Obsoletes: php-pear-Crypt_DiffieHellman-tests |
47000ee7 AG |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Implementation of the Diffie-Hellman Key Exchange cryptographic | |
29 | protocol in PHP5. Enables two parties without any prior knowledge of | |
30 | each other establish a secure shared secret key across an insecure | |
31 | channel of communication. | |
32 | ||
33 | In PEAR status of this package is: %{_status}. | |
34 | ||
35 | %description -l pl.UTF-8 | |
5268c6a1 | 36 | Implementacja protokołu uzgadniania kluczy Diffiego-Hellmana dla PHP5. |
37 | Umożliwia dwóm stronom ustalenie w bezpieczny sposób klucza transmisji | |
38 | poprzez niezabezpieczony kanał transmisji. | |
47000ee7 AG |
39 | |
40 | Ta klasa ma w PEAR status: %{_status}. | |
41 | ||
47000ee7 AG |
42 | %prep |
43 | %pear_package_setup | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT%{php_pear_dir}/Crypt | |
48 | %pear_package_install | |
47000ee7 AG |
49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
bb797f91 ER |
53 | %post |
54 | if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then | |
55 | cat %{_docdir}/%{name}-%{version}/optional-packages.txt | |
56 | fi | |
57 | ||
47000ee7 AG |
58 | %files |
59 | %defattr(644,root,root,755) | |
bb797f91 | 60 | %doc install.log optional-packages.txt |
47000ee7 | 61 | %{php_pear_dir}/.registry/*.reg |
bb797f91 | 62 | %{php_pear_dir}/Crypt/DiffieHellman |
47000ee7 | 63 | %{php_pear_dir}/Crypt/DiffieHellman.php |