1 Summary: mod_ngobjweb apache module
3 Version: %{mod_ngobjweb_version}
4 Release: %{mod_ngobjweb_release}.%{mod_ngobjweb_buildcount}%{dist_suffix}
5 Vendor: OpenGroupware.org
6 Packager: Frank Reppin <frank@opengroupware.org>
8 URL: http://sope.opengroupware.org/
9 Group: Development/Libraries
11 Requires: apache ogo-environment
12 Source: %{mod_ngobjweb_source}
13 Prefix: %{mod_ngobjweb_prefix}
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
17 Enables apache to handle HTTP requests for the
18 OpenGroupware.org application server
21 rm -fr ${RPM_BUILD_ROOT}
22 %setup -n sope-mod_ngobjweb
24 # ****************************** build ********************************
26 export PATH=$PATH:/usr/sbin
27 make %{mod_ngobjweb_makeflags} APXS="/usr/sbin/apxs" APXS_INCLUDE_DIRS="-I/usr/include/apache"
29 # ****************************** install ******************************
31 export PATH=$PATH:/usr/sbin
32 mkdir -p ${RPM_BUILD_ROOT}%{_usr}/lib/apache
33 cp mod_ngobjweb.so ${RPM_BUILD_ROOT}%{_usr}/lib/apache/mod_ngobjweb.so
35 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd
36 echo "#this file contains the apache/httpd configuration for OpenGroupware.org
37 #it should be included from within your default httpd.conf ala:
39 #(or copy it into the dir where additonal configs end up)
41 LoadModule ngobjweb_module %{_usr}/lib/apache/mod_ngobjweb.so
43 Alias /OpenGroupware10a.woa/WebServerResources/ %{prefix}/share/opengroupware.org-1.0a/www/
44 Alias /ArticleImages %{_var}/lib/opengroupware.org/news
46 <LocationMatch "^/OpenGroupware*">
48 SetHandler ngobjweb-adaptor
51 <LocationMatch "^/zidestore/*">
52 SetHandler ngobjweb-adaptor
56 <LocationMatch "^/RPC2*">
57 SetHandler ngobjweb-adaptor
60 " > ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/OGo.conf
62 # ****************************** post *********************************
65 # ****************************** clean ********************************
67 rm -fr ${RPM_BUILD_ROOT}
69 # ****************************** files ********************************
71 %defattr(-,root,root,-)
72 %{_usr}/lib/apache/mod_ngobjweb.so
73 %config %{_sysconfdir}/httpd/OGo.conf
75 # ********************************* changelog *************************
77 * Thu Dec 23 2004 Frank Reppin <frank@opengroupware.org>
78 - requires apache -obviously-
79 - mod_ngobjweb.so lives in /usr/lib/apache/modules now
80 - OGo.conf lives in /etc/httpd/conf.d now...
81 - which fixes -> http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1020
82 * Wed Sep 09 2004 Frank Reppin <frank@opengroupware.org>