1 %define php_name php%{?php_suffix}
4 Summary: %{modname} - full-featured engine-level profiler/debugger
5 Summary(pl.UTF-8): %{modname} - w pełni funkcjonalny profiler/debugger dla 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: 470ea75cde09f7504c83441911c86f29
13 Patch0: php-pecl-%{modname}-cvs.patch
14 URL: http://pecl.php.net/package/apd/
15 BuildRequires: %{php_name}-devel >= 4:5.2.17-8
16 BuildRequires: rpmbuild(macros) >= 1.650
17 %{?requires_zend_extension}
18 Provides: php(%{modname}) = %{version}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 APD is a full-featured profiler/debugger that is loaded as a
23 zend_extension. It aims to be an analog of C's gprof or Perl's
26 In PECL status of this package is: %{status}.
28 %description -l pl.UTF-8
29 APD to w pełni funkcjonalny profiler/debugger ładowany jako
30 rozszerzenie Zend. Ma być odpowiednikiem gprof z C lub perlowego
33 To rozszerzenie ma w PECL status: %{status}.
37 mv %{modname}-%{version}/* .
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
48 install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
49 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
50 ; Enable %{modname} extension module
51 zend_extension=%{modname}.so
55 rm -rf $RPM_BUILD_ROOT
58 %php_webserver_restart
62 %php_webserver_restart
66 %defattr(644,root,root,755)
68 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
69 %attr(755,root,root) %{php_extensiondir}/%{modname}.so