SPECS: dbg.spec (NEW) - added (Q&D but works with PHPeclipse)

twittner twittner at pld-linux.org
Sat Dec 30 13:03:36 CET 2006


Author: twittner                     Date: Sat Dec 30 12:03:36 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added (Q&D but works with PHPeclipse)

---- Files affected:
SPECS:
   dbg.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/dbg.spec
diff -u /dev/null SPECS/dbg.spec:1.1
--- /dev/null	Sat Dec 30 13:03:36 2006
+++ SPECS/dbg.spec	Sat Dec 30 13:03:31 2006
@@ -0,0 +1,80 @@
+# $Revision$, $Date$
+# 
+# INFO: How to get working: patching, installation, using with PHPeclipse (*very* helpful):
+#	http://www.phpeclipse.de/tiki-view_forum_thread.php?forumId=3&comments_parentId=3265
+#
+# TODO:	- install dbg.ini (Source1) in /etc/php/conf.d/, restart apache2
+#	- do sth with php4
+#	- cleaning
+#
+%bcond_with	php4	# build for php4
+#
+Summary:	dbg - PHP debbuger - extension for PHP
+Name:		dbg
+Version:	2.11.32
+Release:	0.2%{?with_php4:.php4}
+License:	The DBG License Version 3.0
+Group:		Development/Languages/PHP
+Source0:	http://heanet.dl.sourceforge.net/sourceforge/dbg2/%{name}-%{version}-src.tar.gz
+# Source0-md5:	1ac7372bfcb4c5e13cad1248e071d70c
+Source1:	%{name}.ini
+Patch0:		%{name}-php-5.2.patch
+URL:		http://dd.cron.ru/dbg/
+BuildRequires:	automake
+BuildRequires:	libtool
+%if ! %{with php4}
+BuildRequires:	php-devel >= 3:5.2.0
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	/etc/php
+%if %{with php4}
+%define		extensionsdir	%{_libdir}/php4
+%else
+%define		extensionsdir	%{_libdir}/php
+%endif
+
+%description
+DBG is a a full-featured php debugger, an interactive tool that helps
+you debugging php scripts. It works on a production and/or development
+WEB server and allows you debug your scripts locally or remotely, from
+an IDE or console. This package contain dbg extension for PHP.
+
+%prep
+%setup -q
+%if ! %{with php4}
+%patch0 -p1
+%endif
+
+%build
+phpize
+%configure \
+	--with-dbg-profiler \
+	--enable-dbg=shared
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+# don't remove COPYING and INSTALL
+%doc AUTHORS COPYING INSTALL
+%attr(755,root,root) %{extensionsdir}/%{name}.so
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/12/30 12:03:31  twittner
+- added (Q&D but works with PHPeclipse)
+
================================================================


More information about the pld-cvs-commit mailing list