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