From: Elan Ruusamäe Date: Thu, 14 Dec 2006 23:46:14 +0000 (+0000) Subject: - add missing provides X-Git-Tag: AC-STABLE~3 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=87c7dfa11e55704ff8ec3208f7c9ad4c3cd2b1b0;p=packages%2Fphp-pecl-apd.git - add missing provides Changed files: php-pecl-apd.spec -> 1.15 --- diff --git a/php-pecl-apd.spec b/php-pecl-apd.spec index 275ff12..cc617fd 100644 --- a/php-pecl-apd.spec +++ b/php-pecl-apd.spec @@ -1,7 +1,5 @@ %define _modname apd %define _status stable -%define _sysconfdir /etc/php -%define extensionsdir %(php-config --extension-dir 2>/dev/null) Summary: %{_modname} - full-featured engine-level profiler/debugger Summary(pl): %{_modname} - w pe³ni funkcjonalny profiler/debugger dla PHP Name: php-pecl-%{_modname} @@ -14,9 +12,9 @@ Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz Patch0: %{name}-build_fix.patch URL: http://pecl.php.net/package/apd/ BuildRequires: php-devel >= 3:5.0.0 -BuildRequires: rpmbuild(macros) >= 1.254 +BuildRequires: rpmbuild(macros) >= 1.344 %{?requires_zend_extension} -Requires: %{_sysconfdir}/conf.d +Requires: php-common >= 4:5.0.4 Obsoletes: php-pear-%{_modname} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -46,10 +44,10 @@ phpize %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sysconfdir}/conf.d,%{extensionsdir}} +install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}} -install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir} -cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini +install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir} +cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini ; Enable %{_modname} extension module zend_extension%{?zend_zts:_ts}=%{_modname}.so EOF @@ -58,17 +56,15 @@ EOF rm -rf $RPM_BUILD_ROOT %post -[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart -[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart +%php_webserver_restart %postun if [ "$1" = 0 ]; then - [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart - [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart + %php_webserver_restart fi %files %defattr(644,root,root,755) %doc %{_modname}-%{version}/README -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini -%attr(755,root,root) %{extensionsdir}/%{_modname}.so +%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini +%attr(755,root,root) %{php_extensiondir}/%{_modname}.so