2 %define apxs /usr/sbin/apxs
4 Summary: The DotGNU Execution Environment Core
8 Source0: http://www.nfluid.com/download/src/%{name}-%{version}-%{_rel}.tgz
9 # Source0-md5: a2573a076832c4c7212479cabda15eff
10 Patch0: %{name}-DESTDIR.patch
11 Patch1: %{name}-apache.patch
12 Patch2: %{name}-dglib_fix_so.patch
15 Group: Networking/Daemons
16 BuildRequires: apache-devel
17 BuildRequires: expat-devel
18 BuildRequires: goldwater-devel => 0.3.4
19 BuildRequires: phlib-devel => 1.20
20 BuildRequires: pnet-devel => 0.6.0-2
21 BuildRequires: %{apxs}
23 Requires(post,preun): %{apxs}
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The core DotGNU Execution Environment that provides the functionality
28 of accepting, validating and satisfying web service requests.
40 --with-goldwater=%{_prefix} \
41 --with-pnet=%{_prefix} \
42 --with-username=http \
43 --with-usergroup=http \
45 --with-apache=%{_prefix}
48 --with-apache2=%{_prefix}
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
65 DESTDIR=$RPM_BUILD_ROOT \
71 if [ -f /etc/httpd/httpd.conf ] && \
72 ! grep -q "^Include.*/mod_dgee.conf" /etc/httpd/httpd.conf; then
73 echo "Include /etc/httpd/mod_dgee.conf" >> /etc/httpd/httpd.conf
77 %{apxs} -e -a -n dgee %{_pkglibdir}/mod_dgee.so 1>&2
78 if [ -f /var/lock/subsys/httpd ]; then
79 /etc/rc.d/init.d/httpd restart 1>&2
83 if [ "$1" = "0" ]; then
86 grep -E -v "^Include.*/mod_dgee.conf" /etc/httpd/httpd.conf > \
87 /etc/httpd/httpd.conf.tmp
88 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
90 %{apxs} -e -A -n dgee %{_pkglibdir}/mod_dgee.so 1>&2
91 if [ -f /var/lock/subsys/httpd ]; then
92 /etc/rc.d/init.d/httpd restart 1>&2
98 #rm -rf $RPM_BUILD_ROOT
101 %defattr(644,root,root,755)
102 %doc BINARYINSTALL INSTALL QUICKSTART README COPYING
103 %attr(755,root,root) %{_bindir}/*
104 %config %{_sysconfdir}/%{name}*
107 %{_libdir}/libdgxml.*
109 %config %{_sysconfdir}/httpd/mod_%{name}.conf
110 %{_libdir}/apache/mod_%{name}.so
112 #%config %{_sysconfdir}/httpd/mod_%{name}.conf
113 #%{_libdir}/apache/mod_%{name}.so