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