]> git.pld-linux.org Git - packages/php-seclib.git/blob - php-seclib.spec
1b7bcb5343426a569a9b2ce6e5e54b7d77afe920
[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:        2
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 BuildArch:      noarch
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
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.
38
39 %prep
40 %setup -qc
41 %undos -f php
42 %patch0 -p1
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT%{php_pear_dir}
47 cp -a . $RPM_BUILD_ROOT%{php_pear_dir}
48
49 %{__rm} $RPM_BUILD_ROOT%{php_pear_dir}/openssl.cnf
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc openssl.cnf
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
This page took 0.053352 seconds and 2 git commands to generate.