1 %define _modname big_int
3 Summary: %{_modname} - set of functions for calculations with arbitrary length integers
4 Summary(pl): %{_modname} - zestaw funkcji do obliczeñ z u¿yciem liczb o dowolnej wielko¶ci
5 Name: php-pecl-%{_modname}
9 Group: Development/Languages/PHP
10 Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
11 # Source0-md5: d858d5bcfd3f789cb1ae8cb8ff09d3e9
12 URL: http://pecl.php.net/package/big_int/
13 BuildRequires: php-devel >= 3:5.0.0
14 BuildRequires: rpmbuild(macros) >= 1.344
15 %{?requires_php_extension}
16 Requires: php-common >= 4:5.0.4
17 Obsoletes: php-pear-%{_modname}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This package is useful for number theory applications. For example, in
22 two-keys cryptography. See tests/RSA.php in the package for example of
23 implementation of RSA-like cryptoalgorithm.
25 Also the package has many bitset functions, which allow to work with
26 arbitrary length bitsets.
28 This package is much faster than bundled into PHP BCMath. It
29 implements almost all functions as in GMP extension, but it needn't
30 any additional external libraries.
32 In PECL status of this extension is: %{_status}.
35 Ten pakiet jest przydatny do zastosowañ z teorii liczb, na przyk³ad do
36 kryptografii z u¿yciem dwóch kluczy. Przyk³adow± implementacjê
37 algorytmu kryptograficznego podobnego do RSA mo¿na znale¼æ w tym
38 pakiecie w pliku tests/RSA.php.
40 Pakiet ma tak¿e wiele funkcji operuj±cych na bitach, umo¿liwiaj±cych
41 dzia³anie na zbiorach bitów dowolnej d³ugo¶ci.
43 Ten pakiet jest du¿o szybszy ni¿ wbudowany w PHP BCMath. Implementuje
44 prawie wszystkie funkcje z rozszerzenia GMP, ale nie wymaga ¿adnych
45 dodatkowych bibliotek zewnêtrznych.
47 To rozszerzenie ma w PECL status: %{_status}.
53 cd %{_modname}-%{version}
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
62 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
63 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
64 ; Enable %{_modname} extension module
65 extension=%{_modname}.so
69 rm -rf $RPM_BUILD_ROOT
72 %php_webserver_restart
76 %php_webserver_restart
80 %defattr(644,root,root,755)
81 %doc %{_modname}-%{version}/{docs,tests,CREDITS,README}
82 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
83 %attr(755,root,root) %{php_extensiondir}/%{_modname}.so