Author: adamg Date: Sat Feb 19 22:23:30 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
php-pecl-big_int.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/php-pecl-big_int.spec
diff -u /dev/null SPECS/php-pecl-big_int.spec:1.1
--- /dev/null Sat Feb 19 23:23:30 2005
+++ SPECS/php-pecl-big_int.spec Sat Feb 19 23:23:24 2005
@@ -0,0 +1,82 @@
+# $Revision$, $Date$
+%define _modname big_int
+%define _status beta
+
+Summary: %{_modname} - set of functions for calculations with arbitrary
length integers
+Summary(pl): %{_modname} - zestaw funkcji do obliczeń z użyciem liczb o
dowolnej wielkości
+Name: php-pecl-%{_modname}
+Version: 0.0.5
+Release: 1
+License: PHP 2.02
+Group: Development/Languages/PHP
+Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
+# Source0-md5: d1f77c1e56fd316e29bf55e05547edbe
+URL: http://pecl.php.net/package/big_int/
+BuildRequires: libtool
+BuildRequires: php-devel >= 3:5.0.0
+Requires: php-common >= 3:5.0.0
+Obsoletes: php-pear-%{_modname}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _sysconfdir /etc/php
+%define extensionsdir %{_libdir}/php
+
+%description
+This package is useful for number theory applications.
+For example, in two-keys cryptography.
+See tests/RSA.php in the package for example of implementation of
+RSA-like cryptoalgorithm.
+
+Also the package has many bitset functions, which allow to work with
+arbitrary length bitsets.
+
+This package is much faster than bundled into PHP BCMath.
+It implements almost all functions as in GMP extension,
+but it needn't any additional external libraries.
+
+In PECL status of this extension is: %{_status}.
+
+#%description -l pl
+#
+#To rozszerzenie ma w PECL status: %{_status}.
+
+%prep
+%setup -q -c
+
+%build
+cd %{_modname}-%{version}
+phpize
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{extensionsdir}
+
+install %{_modname}-%{version}/modules/%{_modname}.so
$RPM_BUILD_ROOT%{extensionsdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
+
+%preun
+if [ "$1" = "0" ]; then
+ %{_sbindir}/php-module-install remove %{_modname}
%{_sysconfdir}/php-cgi.ini
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{_modname}-%{version}/{docs,tests,CREDITS,README}
+%attr(755,root,root) %{extensionsdir}/%{_modname}.so
+
+%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 2005/02/19 22:23:24 adamg
+- new
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit