1 %define php_name php%{?php_suffix}
4 Summary: %{modname} - event scheduling engine
5 Summary(pl.UTF-8): %{modname} - silnik do planowania zdarzeń
6 Name: %{php_name}-pecl-%{modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12 # Source0-md5: f009fd3519c14a027a8c85414208b61c
13 URL: http://pecl.php.net/package/event/
14 BuildRequires: %{php_name}-devel >= 3:5.0.0
15 BuildRequires: rpmbuild(macros) >= 1.650
16 %{?requires_php_extension}
17 Requires: php(core) >= 5.0.4
18 Obsoletes: php-pear-%{modname}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This is an extension to efficiently schedule IO, time and signal based
23 events using the best available IO notification mechanism for your
26 This is a port of libevent to the PHP infrastructure; the API is
27 similar but not identical.
29 In PECL status of this extension is: %{status}.
31 %description -l pl.UTF-8
32 To rozszerzenie pozwala na efektywne planowanie We/Wy, czasu oraz
33 opartych na sygnałach zdarzeń za pomocą najlepszego dostępnego dla
34 systemu mechanizmu powiadamiania.
36 Jest to port biblioteki libevent do infrastruktury PHP; API jest
37 podobne, jednak nie identyczne.
39 To rozszerzenie ma w PECL status: %{status}.
43 mv %{modname}-%{version}/* .
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
54 install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
55 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
56 ; Enable %{modname} extension module
57 extension=%{modname}.so
61 rm -rf $RPM_BUILD_ROOT
64 %php_webserver_restart
68 %php_webserver_restart
72 %defattr(644,root,root,755)
73 %doc CREDITS EXPERIMENTAL
74 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
75 %attr(755,root,root) %{php_extensiondir}/%{modname}.so