3 # --without apache1 (default) should build mod_dgee.so for
9 %define apxs /usr/sbin/apxs
11 Summary: The DotGNU Execution Environment Core
12 Summary(pl): Podstawa ¶rodowiska wykonawczego DotGNU
17 Group: Networking/Daemons
18 Source0: http://www.nfluid.com/download/src/%{name}-%{version}-%{_rel}.tgz
19 # Source0-md5: a2573a076832c4c7212479cabda15eff
21 Source2: %{name}.logrotate
22 Patch0: %{name}-DESTDIR.patch
23 Patch1: %{name}-apache.patch
24 Patch2: %{name}-dglib_fix_so.patch
25 Patch3: %{name}-pythonvm.patch
26 Patch4: %{name}-pic.patch
27 Patch5: %{name}-nolibnsl.patch
28 URL: http://www.dotgnu.org/dgee.html
29 BuildRequires: apache-devel
30 BuildRequires: autoconf >= 2.13
31 BuildRequires: automake
32 BuildRequires: expat-devel
33 BuildRequires: libffi-devel
34 BuildRequires: goldwater-devel => 0.3.4
35 BuildRequires: phlib-devel => 1.20
36 BuildRequires: pnet-devel => 0.6.0-2
37 BuildRequires: %{apxs}
38 Requires(post): /sbin/ldconfig
39 Requires(post,preun): %{apxs}
40 Requires(post,preun): /sbin/chkconfig
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 The core DotGNU Execution Environment that provides the functionality
47 of accepting, validating and satisfying web service requests.
50 Ten pakiet zawiera podstawê ¶rodowiska wykonawczego DotGNU (DotGNU
51 Execution Environment) dostarczaj±c± funkcjonalno¶æ przyjmowania,
52 sprawdzania poprawno¶ci i wykonywania ¿±dañ us³ug WWW.
70 --with-goldwater=%{_prefix} \
71 --with-pnet=%{_prefix} \
72 --with-repository=/var/lib/%{name} \
73 --with-username=http \
74 --with-usergroup=http \
77 --with-apache=%{_prefix}
80 --with-apache2=%{_prefix}
91 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT \
102 # Thise files should be installed by Makefile (I can't fix it):
103 install cslib/DotGNU/DGEE/DotGNU.DGEE.dll \
104 $RPM_BUILD_ROOT%{_libdir}/%{name}
105 install cslib/System/Web/Services/System.Web.Services.dll \
106 $RPM_BUILD_ROOT%{_libdir}/%{name}
107 install cslib/DotGNU/DGEE/Protocols/XmlRpc/XmlRpcService.exe \
108 $RPM_BUILD_ROOT%{_libdir}/%{name}
110 install -d $RPM_BUILD_ROOT/var/lib/%{name}/{index,data}
111 install -d $RPM_BUILD_ROOT/var/log/%{name}
112 touch $RPM_BUILD_ROOT/var/log/%{name}/{%{name}.log,stdout,stderr}
113 install -d $RPM_BUILD_ROOT/var/log/archiv/%{name}
114 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
115 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
116 install -d $RPM_BUILD_ROOT/etc/logrotate.d
117 install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
120 rm -rf $RPM_BUILD_ROOT
125 if [ -f /etc/httpd/httpd.conf ] && \
126 ! grep -q "^Include.*/mod_dgee.conf" /etc/httpd/httpd.conf; then
127 echo "Include /etc/httpd/mod_dgee.conf" >> /etc/httpd/httpd.conf
131 %{apxs} -e -a -n dgee %{_pkglibdir}/mod_dgee.so 1>&2
132 if [ -f /var/lock/subsys/httpd ]; then
133 /etc/rc.d/init.d/httpd restart 1>&2
136 if [ -f /var/lock/subsys/dgee ]; then
137 /etc/rc.d/init.d/dgee restart 1>&2
139 echo "Run \"/etc/rc.d/init.d/dgee start\" to start goltwater and dgee services."
141 /sbin/chkconfig --add dgee
144 if [ "$1" = "0" ]; then
147 grep -E -v "^Include.*/mod_dgee.conf" /etc/httpd/httpd.conf > \
148 /etc/httpd/httpd.conf.tmp
149 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
151 %{apxs} -e -A -n dgee %{_pkglibdir}/mod_dgee.so 1>&2
152 if [ -f /var/lock/subsys/httpd ]; then
153 /etc/rc.d/init.d/httpd restart 1>&2
155 if [ -f /var/lock/subsys/dgee ]; then
156 /etc/rc.d/init.d/dgee stop 1>&2
158 /sbin/chkconfig --del dgee
161 %postun -p /sbin/ldconfig
164 %defattr(644,root,root,755)
165 %doc BINARYINSTALL INSTALL QUICKSTART README
166 %attr(755,root,root) %{_bindir}/*
167 %attr(755,root,root) %{_libdir}/libdgee.so.*.*
168 %attr(755,root,root) %{_libdir}/libdgxml.so.*.*
169 %dir %{_libdir}/%{name}
170 %attr(755,root,root) %{_libdir}/%{name}/*
171 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}*
173 %config %verify(not size mtime md5) %{_sysconfdir}/httpd/mod_%{name}.conf
174 %{_libdir}/apache/mod_%{name}.so
176 #%config %{_sysconfdir}/httpd/mod_%{name}.conf
177 #%{_libdir}/apache/mod_%{name}.so
181 %attr(754,root,root) /etc/rc.d/init.d/%{name}
182 %attr(730,root,http) %dir /var/log/%{name}
183 %attr(660,root,http) /var/log/%{name}/*
184 %attr(750,root,root) %dir /var/log/archiv/%{name}
185 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/*