1 %define php_name php%{?php_suffix}
2 %define modname inotify
4 Summary: %{modname} - php bindings
5 Summary(pl.UTF-8): %{modname} - dowiÄ…zania php
6 Name: %{php_name}-pecl-%{modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12 # Source0-md5: c7d837c4837d8132c451c6ab37ef917e
13 URL: http://pecl.php.net/package/inotify/
14 BuildRequires: %{php_name}-devel >= 3:5.0.0
15 BuildRequires: glibc-devel >= 6:2.3.6-19
16 BuildRequires: rpmbuild(macros) >= 1.650
17 %{?requires_php_extension}
18 Requires: php(core) >= 5.0.4
19 Provides: php(%{modname}) = %{version}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The inotify extension allows to use inotify functions in a PHP script.
25 In PECL status of this extension is: %{status}.
27 %description -l pl.UTF-8
28 Rozszerzenie inotify pozwala na skorzystanie z funkcji inotify w
31 To rozszerzenie ma w PECL status: %{status}.
35 mv %{modname}-%{version}/* .
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
47 INSTALL_ROOT=$RPM_BUILD_ROOT \
48 EXTENSION_DIR=%{php_extensiondir}
49 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
50 ; Enable %{modname} extension module
51 extension=%{modname}.so
54 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
55 cp -p inotify.php tail.php $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 rm -rf $RPM_BUILD_ROOT
61 %php_webserver_restart
65 %php_webserver_restart
69 %defattr(644,root,root,755)
70 %doc CREDITS EXPERIMENTAL README
71 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
72 %attr(755,root,root) %{php_extensiondir}/%{modname}.so
73 %{_examplesdir}/%{name}-%{version}