4 Summary: %{_modname} - Event Scheduling Engine
5 Summary(pl): %{_modname} - Silnik do Planowania Zdarzeniamie
6 Name: php-pecl-%{_modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
12 # Source0-md5: 21609efd43e0b80ed88880595faf6a25
13 Patch0: %{name}-tsrm_fix.patch
14 URL: http://pecl.php.net/package/event/
15 BuildRequires: libtool
16 BuildRequires: php-devel >= 3:5.0.0
17 Requires: php-common >= 3:5.0.0
18 Obsoletes: php-pear-%{_modname}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _sysconfdir /etc/php
22 %define extensionsdir %{_libdir}/php
25 This is an extension to efficiently schedule IO, time and signal based
26 events using the best available IO notification mechanism for your
29 This is a port of libevent to the PHP infrastructure; the API is
30 similar but not identical.
32 In PECL status of this extension is: %{_status}.
35 To rozszerzenie pozwala na efektywne planowanie We/Wy, czasem oraz
36 bazowanymi na sygna³ach zdarzeniami za pomoc± najlepszego dostêpnego
37 dla systemu mechanizmu powiadamiania.
39 Jest to port biblioteki libevent do infrastruktury PHP; API jest
40 podobne, jednak nie identyczne.
42 To rozszerzenie ma w PECL status: %{_status}.
46 cd %{_modname}-%{version}
50 cd %{_modname}-%{version}
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{extensionsdir}
59 install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
62 rm -rf $RPM_BUILD_ROOT
65 %{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
68 if [ "$1" = "0" ]; then
69 %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
73 %defattr(644,root,root,755)
74 %doc %{_modname}-%{version}/{CREDITS,EXPERIMENTAL}
75 %attr(755,root,root) %{extensionsdir}/%{_modname}.so