Author: glen Date: Tue Aug 31 06:54:23 2010 GMT Module: packages Tag: HEAD ---- Log message: - initial, bundle all phpseclib packages for now
---- Files affected: packages/php-seclib: php-seclib.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/php-seclib/php-seclib.spec diff -u /dev/null packages/php-seclib/php-seclib.spec:1.1 --- /dev/null Tue Aug 31 08:54:23 2010 +++ packages/php-seclib/php-seclib.spec Tue Aug 31 08:54:17 2010 @@ -0,0 +1,83 @@ +# $Revision$, $Date$ +# TODO +# - individtual php-pear-XXX packages +# http://phpseclib.sourceforge.net/pear.htm +# pear remote-list -c phpseclib +%define subver a +%define rel 0.1 +%define pkgname seclib +%define php_min_version 5.2.0 +%include /usr/lib/rpm/macros.php +Summary: PHP Secure Communications Library +Name: php-%{pkgname} +Version: 0.2.1 +Release: 0.%{subver}.%{rel} +License: LGPL +Group: Development/Languages/PHP +Source0: http://downloads.sourceforge.net/project/phpseclib/phpseclib%{version}%{subver}.zip +# Source0-md5: 028be0414123f4bff61f1b2b4fd68fab +URL: http://phpseclib.sourceforge.net/ +BuildRequires: php-pear-PEAR +BuildRequires: rpm-php-pearprov >= 4.4.2-11 +BuildRequires: rpmbuild(macros) >= 1.300 +Requires: php-bcmath +Requires: php-common >= 4:%{php_min_version} +Requires: php-date +Requires: php-hash +Requires: php-openssl +Requires: php-pcre +Requires: php-pear +Requires: php-xml +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Pure-PHP implementations of an arbitrary-precision integer arithmetic +library, fully PKCS#1 (v2.1) compliant RSA, DES, 3DES, RC4, Rijndael, +AES, SSH-1, SSH-2, and SFTP. + +%prep +%setup -qc + +mkdir html +mv *.html *.css html + +# php 4.2, php 5.0 +rm PHP/Compat/Function/array_fill.php +# php 5.0 +rm PHP/Compat/Function/bcpowmod.php +# php 5.0 +rm PHP/Compat/Function/str_split.php + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{php_pear_dir} +cp -a PHP Crypt Math Net $RPM_BUILD_ROOT%{php_pear_dir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc html +%{php_pear_dir}/Crypt/AES.php +%{php_pear_dir}/Crypt/DES.php +%{php_pear_dir}/Crypt/Hash.php +%{php_pear_dir}/Crypt/RC4.php +%{php_pear_dir}/Crypt/RSA.php +%{php_pear_dir}/Crypt/Random.php +%{php_pear_dir}/Crypt/Rijndael.php +%{php_pear_dir}/Crypt/TripleDES.php +%{php_pear_dir}/Math/BigInteger.php +%{php_pear_dir}/Net/SFTP.php +%{php_pear_dir}/Net/SSH1.php +%{php_pear_dir}/Net/SSH2.php + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2010/08/31 06:54:17 glen +- initial, bundle all phpseclib packages for now ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
