SPECS: php-pecl-xdebug.spec - switch to conf.d - force php-devel >...
adamg
adamg at pld-linux.org
Sat Sep 10 22:01:13 CEST 2005
Author: adamg Date: Sat Sep 10 20:01:13 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- switch to conf.d
- force php-devel >= 3:5.0.0
---- Files affected:
SPECS:
php-pecl-xdebug.spec (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SPECS/php-pecl-xdebug.spec
diff -u SPECS/php-pecl-xdebug.spec:1.17 SPECS/php-pecl-xdebug.spec:1.18
--- SPECS/php-pecl-xdebug.spec:1.17 Sat Mar 5 22:39:16 2005
+++ SPECS/php-pecl-xdebug.spec Sat Sep 10 22:01:08 2005
@@ -1,6 +1,8 @@
# $Revision$, $Date$
%define _modname xdebug
%define _status stable
+%define _sysconfdir /etc/php
+%define extensionsdir %(php-config --extension-dir 2>/dev/null)
Summary: %{_modname} - provides functions for functions traces and profiling
Summary(pl): %{_modname} - funkcje do śledzenia i profilowania funkcji
@@ -15,14 +17,13 @@
URL: http://pecl.php.net/package/xdebug/
BuildRequires: libedit-devel
BuildRequires: libtool
-BuildRequires: php-devel
-Requires: php-common
+BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.230
+Requires: %{_sysconfdir}/conf.d
+%requires_eq_to php-common php-devel
Obsoletes: php-pear-%{_modname}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc/php
-%define extensionsdir %{_libdir}/php
-
%description
The Xdebug extension helps you debugging your script by providing a
lot of valuable debug information. The debug information that Xdebug
@@ -84,25 +85,32 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{extensionsdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/conf.d,%{extensionsdir}}
install %{_modname}-*/debugclient/debugclient $RPM_BUILD_ROOT%{_bindir}/%{_modname}-debugclient
install %{_modname}-*/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
+EOF
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
+[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
+[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
-%preun
-if [ "$1" = "0" ]; then
- %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
+%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
fi
%files
%defattr(644,root,root,755)
%doc %{_modname}-*/{README,NEWS,Changelog,CREDITS}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
%attr(755,root,root) %{extensionsdir}/%{_modname}.so
%attr(755,root,root) %{_bindir}/*
@@ -112,6 +120,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.18 2005/09/10 20:01:08 adamg
+- switch to conf.d
+- force php-devel >= 3:5.0.0
+
Revision 1.17 2005/03/05 21:39:16 arekm
- up to 2.0.0 beta2, include client binary (subpackage sounds good here)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php-pecl-xdebug.spec?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list