SPECS: gubed.spec - finished: added server subpkg. with server sid...
twittner
twittner at pld-linux.org
Sat Dec 30 20:18:21 CET 2006
Author: twittner Date: Sat Dec 30 19:18:21 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- finished: added server subpkg. with server side scripts
- works with php-4.4.4
- with php-5.2.0 doesn't work - msg. from gubed client window:
20:13:57: Welcome to Gubed PHP Debugger
20:14:08: Warning: , line , error :
---- Files affected:
SPECS:
gubed.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/gubed.spec
diff -u SPECS/gubed.spec:1.1 SPECS/gubed.spec:1.2
--- SPECS/gubed.spec:1.1 Sat Dec 30 15:07:59 2006
+++ SPECS/gubed.spec Sat Dec 30 20:18:16 2006
@@ -9,7 +9,7 @@
Summary: Gubed - a PHP debuger
Name: gubed
Version: 0.2.2
-Release: 0.3
+Release: 0.5
License: GPL
Group: Development/Languages/PHP
Source0: http://dl.sourceforge.net/sourceforge/gubed/Gubed%{version}.tar.gz
@@ -17,14 +17,23 @@
Source1: %{name}-gtk.desktop
Source2: %{name}-x11.desktop
Source3: %{name}.png
+Patch0: %{name}-paths.patch
URL: http://gubed.mccabe.nu/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
-BuildRequires: wxGTK2-devel
-BuildRequires: wxX11-devel
+%{?with_gtk2:BuildRequires: wxGTK2-devel}
+%{?with_x11univ:BuildRequires: wxX11-devel}
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires: webapps
+Requires(triggerpostun): sed >= 4.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _webapps /etc/webapps
+%define _webapp %{name}
+%define _sysconfdir %{_webapps}/%{_webapp}
+%define _appdir %{_datadir}/%{_webapp}
+
%description
Gubed PHP debuger.
@@ -49,8 +58,16 @@
%description proxy
Gubed PHP debugger - proxy server.
+%package server
+Summary: Gubed server part
+Group: Development/Languages/PHP
+
+%description server
+Gubed PHP debugger - server part.
+
%prep
%setup -q -n Gubed
+%patch0 -p1
%build
%if %{with gtk2}
@@ -128,6 +145,36 @@
cd ..
%endif
+%if %{with server}
+cat > apache.conf <<'EOF'
+Alias /%{name} %{_appdir}/ServerScripts
+<Directory %{_appdir}>
+ Order Allow,Deny
+ Allow from all
+</Directory>
+EOF
+
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
+
+install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+
+cp -a ServerScripts $RPM_BUILD_ROOT%{_appdir}
+mv -f $RPM_BUILD_ROOT%{_appdir}/ServerScripts/localsettings_dist.php $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.php
+
+%triggerin server -- apache1 < 1.3.37-3, apache1-base
+%webapp_register apache %{_webapp}
+
+%triggerun server -- apache1 < 1.3.37-3, apache1-base
+%webapp_unregister apache %{_webapp}
+
+%triggerin server -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun server -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -150,6 +197,14 @@
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/gbdproxy
+%files server
+%defattr(644,root,root,755)
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
+%{_appdir}
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -157,6 +212,13 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2006/12/30 19:18:16 twittner
+- finished: added server subpkg. with server side scripts
+- works with php-4.4.4
+- with php-5.2.0 doesn't work - msg. from gubed client window:
+ 20:13:57: Welcome to Gubed PHP Debugger
+ 20:14:08: Warning: , line , error :
+
Revision 1.1 2006/12/30 14:07:59 twittner
- added - NFY, builds & runs but I'm not able to get it working
(AFAIR I've managed to run this long time ago, maybe with php4?)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/gubed.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list