2 # - individual php-pear-XXX packages
3 # http://phpseclib.sourceforge.net/pear.htm
4 # pear remote-list -c phpseclib
5 # this way it won't file-conflict with PEAR packages
6 # - patch location of CRYPT_RSA_OPENSSL_CONFIG (currently not installed)
8 %define php_min_version 5.2.0
9 Summary: PHP Secure Communications Library
14 Group: Development/Languages/PHP
15 Source0: http://downloads.sourceforge.net/phpseclib/phpseclib%{version}.zip
16 # Source0-md5: d4a0692a8c2d5ef919f8f867e3878a74
17 URL: http://phpseclib.sourceforge.net/
18 BuildRequires: php-pear-PEAR
19 BuildRequires: rpm-php-pearprov >= 4.4.2-11
20 BuildRequires: rpmbuild(macros) >= 1.553
22 Patch0: includes.patch
24 Requires: php(core) >= %{php_min_version}
27 Requires: php(openssl)
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Pure-PHP implementations of an arbitrary-precision integer arithmetic
36 library, fully PKCS#1 (v2.1) compliant RSA, DES, 3DES, RC4, Rijndael,
37 AES, SSH-1, SSH-2, and SFTP.
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{php_pear_dir}
47 cp -a . $RPM_BUILD_ROOT%{php_pear_dir}
49 %{__rm} $RPM_BUILD_ROOT%{php_pear_dir}/openssl.cnf
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{php_pear_dir}/Crypt/AES.php
58 %{php_pear_dir}/Crypt/Blowfish.php
59 %{php_pear_dir}/Crypt/DES.php
60 %{php_pear_dir}/Crypt/Hash.php
61 %{php_pear_dir}/Crypt/Random.php
62 %{php_pear_dir}/Crypt/RC4.php
63 %{php_pear_dir}/Crypt/Rijndael.php
64 %{php_pear_dir}/Crypt/RSA.php
65 %{php_pear_dir}/Crypt/TripleDES.php
66 %{php_pear_dir}/Crypt/Twofish.php
67 %{php_pear_dir}/File/ANSI.php
68 %{php_pear_dir}/File/ASN1.php
69 %{php_pear_dir}/File/X509.php
70 %{php_pear_dir}/Math/BigInteger.php
71 %{php_pear_dir}/Net/SCP.php
72 %{php_pear_dir}/Net/SFTP.php
73 %dir %{php_pear_dir}/Net/SFTP
74 %{php_pear_dir}/Net/SFTP/Stream.php
75 %{php_pear_dir}/Net/SSH1.php
76 %{php_pear_dir}/Net/SSH2.php