--- /dev/null
+Summary: mod_ngobjweb apache module
+Name: mod_ngobjweb
+Version: %{mod_ngobjweb_version}
+Release: %{mod_ngobjweb_release}.%{mod_ngobjweb_buildcount}
+Vendor: OpenGroupware.org
+Packager: Frank Reppin <frank@opengroupware.org>
+License: LGPL
+URL: http://www.softwarestudio.org/libical
+Group: Development/Libraries
+AutoReqProv: off
+Source: sope-mod_ngobjweb-trunk-latest.tar.gz
+Prefix: /usr/lib
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+%description
+apache13/apache2 mod_ngobjweb adaptor.
+
+%prep
+rm -fr ${RPM_BUILD_ROOT}
+%setup -n sope-mod_ngobjweb
+
+# ****************************** build ********************************
+%build
+# on fedora core
+export PATH=$PATH:/usr/sbin
+make APXS_INCLUDE_DIRS="-I/usr/include/httpd -I/usr/include/apr-0"
+# for suse
+#make APXS="/usr/sbin/apxs2" APXS_INCLUDE_DIRS="-I/usr/include/apache2"
+
+# ****************************** install ******************************
+%install
+mkdir -p "${RPM_BUILD_ROOT}/usr/lib/httpd/modules"
+export PATH=$PATH:/usr/sbin
+cp mod_ngobjweb.so ${RPM_BUILD_ROOT}/usr/lib/httpd/modules/
+
+# ****************************** post *********************************
+%post
+
+# ****************************** clean ********************************
+%clean
+rm -fr ${RPM_BUILD_ROOT}
+
+# ****************************** files ********************************
+%files
+%defattr(-,root,root,-)
+%{_libdir}/httpd/modules/mod_ngobjweb.so
+
+# ********************************* changelog *************************
+%changelog