]> git.pld-linux.org Git - packages/php-seclib.git/blob - php-seclib.spec
Obsolete pear packages; rel 2
[packages/php-seclib.git] / php-seclib.spec
1 # TODO
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)
7 %define         pkgname seclib
8 %define         php_min_version 5.2.0
9 Summary:        PHP Secure Communications Library
10 Name:           php-%{pkgname}
11 Version:        0.3.5
12 Release:        3
13 License:        MIT
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
21 BuildRequires:  unzip
22 Patch0:         includes.patch
23 Requires:       php(bcmath)
24 Requires:       php(core) >= %{php_min_version}
25 Requires:       php(date)
26 Requires:       php(hash)
27 Requires:       php(openssl)
28 Requires:       php(pcre)
29 Requires:       php(xml)
30 Requires:       php-pear
31 Obsoletes:      php-pear-Crypt_Blowfish <= 1.1.0-0.RC2.2
32 Obsoletes:      php-pear-Crypt_RSA <= 1.2.1-3
33 Obsoletes:      php-pear-Math_BigInteger <= 1.0.3-1
34 BuildArch:      noarch
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 Pure-PHP implementations of an arbitrary-precision integer arithmetic
39 library, fully PKCS#1 (v2.1) compliant RSA, DES, 3DES, RC4, Rijndael,
40 AES, SSH-1, SSH-2, and SFTP.
41
42 %prep
43 %setup -qc
44 %undos -f php
45 %patch0 -p1
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{php_pear_dir}
50 cp -a . $RPM_BUILD_ROOT%{php_pear_dir}
51
52 %{__rm} $RPM_BUILD_ROOT%{php_pear_dir}/openssl.cnf
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc openssl.cnf
60 %{php_pear_dir}/Crypt/AES.php
61 %{php_pear_dir}/Crypt/Blowfish.php
62 %{php_pear_dir}/Crypt/DES.php
63 %{php_pear_dir}/Crypt/Hash.php
64 %{php_pear_dir}/Crypt/Random.php
65 %{php_pear_dir}/Crypt/RC4.php
66 %{php_pear_dir}/Crypt/Rijndael.php
67 %{php_pear_dir}/Crypt/RSA.php
68 %{php_pear_dir}/Crypt/TripleDES.php
69 %{php_pear_dir}/Crypt/Twofish.php
70 %{php_pear_dir}/File/ANSI.php
71 %{php_pear_dir}/File/ASN1.php
72 %{php_pear_dir}/File/X509.php
73 %{php_pear_dir}/Math/BigInteger.php
74 %{php_pear_dir}/Net/SCP.php
75 %{php_pear_dir}/Net/SFTP.php
76 %dir %{php_pear_dir}/Net/SFTP
77 %{php_pear_dir}/Net/SFTP/Stream.php
78 %{php_pear_dir}/Net/SSH1.php
79 %{php_pear_dir}/Net/SSH2.php
This page took 0.098065 seconds and 3 git commands to generate.