1 %define _modname funcall
3 Summary: %{_modname} - Add callbacks for any function/method
4 Summary(pl.UTF-8): %{_modname} - odwołania dla dowolnej funkcji / metody
5 Name: php-pecl-%{_modname}
9 Group: Development/Languages/PHP
10 Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
11 # Source0-md5: 5a86a01b065d3d767d8b0f7a2a3ca865
12 URL: http://pecl.php.net/package/funcall/
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 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Call callbacks before or after specified functions/methods being
23 In PECL status of this extension is: %{_status}.
25 %description -l pl.UTF-8
26 Rozszerzenie to pozwala na wykonywanie odwołań przed lub po wywołaniu
27 określonej funkcji / metody.
29 To rozszerzenie ma w PECL status: %{_status}.
35 cd %{_modname}-%{version}
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
45 -C %{_modname}-%{version} \
46 INSTALL_ROOT=$RPM_BUILD_ROOT \
47 EXTENSION_DIR=%{php_extensiondir}
48 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
49 ; Enable %{_modname} extension module
50 extension=%{_modname}.so
54 rm -rf $RPM_BUILD_ROOT
57 %php_webserver_restart
61 %php_webserver_restart
65 %defattr(644,root,root,755)
66 %doc %{_modname}-%{version}/{TODO,funcall.php}
67 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
68 %attr(755,root,root) %{php_extensiondir}/%{_modname}.so