87 lines
2.2 KiB
RPMSpec
87 lines
2.2 KiB
RPMSpec
%define php_majver %(php-config --version | cut -d. -f1-2)
|
|
Name: php-xdebug
|
|
Version: 2.2.3
|
|
Release: 2mamba
|
|
Summary: A PHP extension for powerful debugging
|
|
Group: Applications/Development
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://xdebug.org/
|
|
Source: http://xdebug.org/files/xdebug-%{version}.tgz
|
|
License: PHP License
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libedit-devel
|
|
BuildRequires: libtermcap-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: php-devel
|
|
Requires: php >= %{php_majver}
|
|
Requires: php <= %{php_majver}.99
|
|
Provides: xdebug
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
A PHP extension for powerful debugging. It supports stack and function traces, profiling information and memory allocation and script execution analysis.
|
|
|
|
%package debugclient
|
|
Group: Applications/Development
|
|
Summary: Test client application for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description debugclient
|
|
Test client application for %{name}.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -c
|
|
|
|
%build
|
|
cd xdebug-%{version}
|
|
phpize
|
|
%configure
|
|
%make
|
|
|
|
cd debugclient
|
|
%configure --with-libedit
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
cd xdebug-%{version}
|
|
%makeinstall INSTALL_ROOT=%{buildroot}
|
|
|
|
cd debugclient
|
|
%makeinstall INSTALL_ROOT=%{buildroot}
|
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/php/php.d
|
|
cat > %{buildroot}%{_sysconfdir}/php/php.d/xdebug.ini <<EOF
|
|
; Enable xdebug extension module
|
|
zend_extension=xdebug.so
|
|
;xdebug.remote_enable=On
|
|
;xdebug.remote_host="192.168.0.117"
|
|
;xdebug.remote_port=9000
|
|
;xdebug.remote_handler="dbgp"
|
|
EOF
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_sysconfdir}/php/php.d/xdebug.ini
|
|
%{_libdir}/php/extensions/xdebug.so
|
|
|
|
%files debugclient
|
|
%defattr(-,root,root)
|
|
%{_bindir}/debugclient
|
|
|
|
%changelog
|
|
* Thu Feb 13 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.3-2mamba
|
|
- rebuilt with debug client
|
|
- xdebug.ini updated
|
|
|
|
* Mon Nov 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.3-1mamba
|
|
- package created by silvan using the webbuild interface
|