Summary: mod_ngobjweb apache module Name: mod_ngobjweb Version: %{mod_ngobjweb_version} Release: %{mod_ngobjweb_release}.%{mod_ngobjweb_buildcount}%{dist_suffix} Vendor: OpenGroupware.org Packager: Frank Reppin License: LGPL URL: http://sope.opengroupware.org/ Group: Development/Libraries AutoReqProv: off Requires: apache ogo-environment Source: %{mod_ngobjweb_source} Prefix: %{mod_ngobjweb_prefix} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description apache mod_ngobjweb adaptor. %prep rm -fr ${RPM_BUILD_ROOT} %setup -n sope-mod_ngobjweb # ****************************** build ******************************** %build export PATH=$PATH:/usr/sbin make %{mod_ngobjweb_makeflags} APXS="/usr/sbin/apxs" APXS_INCLUDE_DIRS="-I/usr/include/apache" # ****************************** install ****************************** %install export PATH=$PATH:/usr/sbin mkdir -p ${RPM_BUILD_ROOT}%{_usr}/lib/apache cp mod_ngobjweb.so ${RPM_BUILD_ROOT}%{_usr}/lib/apache/mod_ngobjweb.so mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd echo "#this file contains the apache/httpd configuration for OpenGroupware.org #it should be included from within your default httpd.conf ala: #\`include OGo.conf\` #(or copy it into the dir where additonal configs end up) # LoadModule ngobjweb_module %{_usr}/lib/apache/mod_ngobjweb.so # Alias /OpenGroupware10a.woa/WebServerResources/ %{prefix}/share/opengroupware.org-1.0a/www/ Alias /ArticleImages %{_var}/lib/opengroupware.org/news # SetAppPort 20000 SetHandler ngobjweb-adaptor # SetHandler ngobjweb-adaptor SetAppPort 21000 # SetHandler ngobjweb-adaptor SetAppPort 22000 " > ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/OGo.conf # ****************************** post ********************************* %post # ****************************** clean ******************************** %clean rm -fr ${RPM_BUILD_ROOT} # ****************************** files ******************************** %files %defattr(-,root,root,-) %{_usr}/lib/apache/mod_ngobjweb.so %config %{_sysconfdir}/httpd/OGo.conf # ********************************* changelog ************************* %changelog * Thu Dec 23 2004 Frank Reppin - requires apache -obviously- - mod_ngobjweb.so lives in /usr/lib/apache/modules now - OGo.conf lives in /etc/httpd/conf.d now... - which fixes -> http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1020 * Wed Sep 09 2004 Frank Reppin - initial build