--- /dev/null
+# TODO
+# - with apr_memcache: http://www.outoforder.cc/projects/libs/apr_memcache
+# - make tries to make cert using /dev/random (slow! and perhaps unneccessary)
+%define mod_name gnutls
+%define apxs /usr/sbin/apxs
+Summary: SSL v3, TLS 1.0 and TLS 1.1 encryption for Apache HTTPD
+Name: apache-mod_%{mod_name}
+Version: 0.2.0
+Release: 0.1
+License: Apache Group License
+Group: Networking/Daemons
+Source0: http://www.outoforder.cc/downloads/mod_gnutls/mod_gnutls-%{version}.tar.bz2
+# Source0-md5: 80ab766a7b9cfbb730e789032ff26d68
+URL: http://www.outoforder.cc/projects/apache/mod_gnutls/
+BuildRequires: apache-devel >= 2.0.42
+BuildRequires: gnutls-devel >= 1.2.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+mod_gnutls uses the GnuTLS library to provide SSL v3, TLS 1.0 and TLS
+1.1 encryption for Apache HTTPD. It is similar to mod_ssl in purpose,
+but does not use OpenSSL.
+
+Features:
+- Support for SSLv3, TLS 1.0 and TLS 1.1.
+- Support for Server Name Indication
+- Distributed SSL Session Cache via Memcached
+- Local SSL Session Cache using DBM
+
+%prep
+%setup -q -n mod_%{mod_name}-%{version}
+
+%build
+%configure \
+ --with-apxs=%{apxs} \
+ --with-libgnutls=%{_prefix} \
+ --without-apr-memcache
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)