2 %define _subclass DiffieHellman
4 %define _pearname Crypt_DiffieHellman
5 Summary: %{_pearname} - Implementation of Diffie-Hellman Key Exchange cryptographic protocol for PHP5
6 Summary(pl.UTF-8): %{_pearname} - implementacja protokołu uzgadniania kluczy Diffiego-Hellmana dla PHP5
7 Name: php-pear-%{_pearname}
10 License: New BSD License
11 Group: Development/Languages/PHP
12 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
13 # Source0-md5: 421948445d0c92398d8231f417cbc2fe
14 URL: http://pear.php.net/package/Crypt_DiffieHellman/
15 BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.300
19 Requires: php(mbstring)
21 Requires: php-pear-PEAR-core >= 1:1.3.6
23 Obsoletes: php-pear-Crypt_DiffieHellman-tests
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
33 In PEAR status of this package is: %{_status}.
35 %description -l pl.UTF-8
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.
40 Ta klasa ma w PEAR status: %{_status}.
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{php_pear_dir}/Crypt
51 rm -rf $RPM_BUILD_ROOT
54 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
55 cat %{_docdir}/%{name}-%{version}/optional-packages.txt
59 %defattr(644,root,root,755)
60 %doc install.log optional-packages.txt
61 %{php_pear_dir}/.registry/*.reg
62 %{php_pear_dir}/Crypt/DiffieHellman
63 %{php_pear_dir}/Crypt/DiffieHellman.php