7bbfcf2
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
e160af1
Name:      mod_gnutls
08c768e
Version:   0.5.10
7bbfcf2
Release:   3%{?dist}
e160af1
Summary:   GnuTLS module for the Apache HTTP server
e160af1
Group:     System Environment/Daemons
e160af1
License:   ASL 2.0
08c768e
URL:       http://modgnutls.sourceforge.net/
08c768e
Source0:   http://modgnutls.sourceforge.net/downloads/%{name}-%{version}.tar.bz2
e160af1
Source1:   mod_gnutls.conf
08c768e
Patch0:    mod_gnutls_apr_memcache_m4_dirty.patch
e160af1
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
08c768e
BuildRequires: gnutls-devel, gnutls-utils, httpd-devel, apr-util-devel >= 1.3, libtool, autoconf, automake
7bbfcf2
Requires:  httpd, apr-util >= 1.3, gnutls-utils, httpd-mmn = %{_httpd_mmn}
e160af1
e160af1
%description
e160af1
mod_gnutls uses the GnuTLS library to provide SSL 3.0, TLS 1.0 and TLS 1.1
e160af1
encryption for Apache HTTPD.  It is similar to mod_ssl in purpose, but does
e160af1
not use OpenSSL.  A primary benefit of using this module is the ability to
e160af1
configure multiple SSL certificates for a single IP-address/port combination
e160af1
(useful for securing virtual hosts).
e160af1
    
e160af1
Features
e160af1
    * Support for SSL 3.0, TLS 1.0 and TLS 1.1.
e160af1
    * Support for client certificates.
e160af1
    * Support for RFC 5081 OpenPGP certificate authentication.
e160af1
    * Support for Server Name Indication.
e160af1
    * Distributed SSL Session Cache via Memcached
e160af1
    * Local SSL Session Cache using DBM
e160af1
    * Sets enviromental vars for scripts (compatible with mod_ssl vars)
e160af1
    * Small and focused code base:
e160af1
         Lines of code in mod_gnutls: 3,593
e160af1
         Lines of code in mod_ssl: 15,324
e160af1
e160af1
%prep
e160af1
%setup -q
08c768e
%patch0 -p1
e160af1
cp %{SOURCE1} .
e160af1
e160af1
%build
08c768e
rm -f configure
08c768e
export APR_MEMCACHE_LIBS="`apu-1-config --link-ld`"
08c768e
export APR_MEMCACHE_CFLAGS="`apu-1-config --includes`"
08c768e
autoreconf -f -i
08c768e
08c768e
rm -rf autom4te.cache
08c768e
e160af1
%configure --disable-srp
e160af1
%{__make} %{?_smp_mflags}
e160af1
e160af1
%check
e160af1
%{__make} check
e160af1
e160af1
%install
e160af1
rm -rf %{buildroot}
e160af1
%{__install} -m 755 -D src/.libs/libmod_gnutls.so %{buildroot}%{_libdir}/httpd/modules/mod_gnutls.so
e160af1
%{__install} -m 644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/mod_gnutls.conf
e160af1
e160af1
%clean
e160af1
rm -rf %{buildroot}
e160af1
08c768e
%pre
08c768e
rm -fr %{_localstatedir}/cache/mod_gnutls
08c768e
e160af1
%files
e160af1
%defattr(-,root,root,-)
e160af1
%doc README NEWS NOTICE LICENSE README.ENV
e160af1
%{_libdir}/httpd/modules/*.so
e160af1
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_gnutls.conf
e160af1
e160af1
%changelog
7bbfcf2
* Wed Mar 14 2012 Jiri Kastner <jkastner@redhat.com> - 0.5.10-3
7bbfcf2
- added dependency for httpd-mmn
7bbfcf2
05c59fd
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.10-2
05c59fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
05c59fd
08c768e
* Wed Oct 27 2011 Jiri Kastner <jkastner@redhat.com> - 0.5.10-1
08c768e
- apr_memcache.m4 modified for correct cheking of apr_memcache in apr-util
08c768e
- removed /var/cache/mod_gnutls from 'files' and 'install' stanzas
08c768e
- added 'pre' stanza for removal of old cache
08c768e
- update to 0.5.10
08c768e
c5511fb
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.5-6
c5511fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c5511fb
e160af1
* Thu Sep 17 2009 Erick Calder <rpm@arix.com> - 0.5.5-5
e160af1
- removed use of define {ooo}
e160af1
e160af1
* Thu Sep 17 2009 Erick Calder <rpm@arix.com> - 0.5.5-4
e160af1
- dependency generator missed need for httpd.  added by hand.
e160af1
- abstracted Source0:
e160af1
e160af1
* Tue Sep 15 2009 Erick Calder <rpm@arix.com> - 0.5.5-3
e160af1
- mention of SRP removed from description of package
e160af1
- added httpd-devel to build requires
e160af1
- fixed license (harmonized with httpd)
e160af1
e160af1
* Tue Sep 15 2009 Erick Calder <rpm@arix.com> - 0.5.5-2
e160af1
- Added BuildRequires
e160af1
- removed comments stating the specfile was generated by cpan2rpm
e160af1
- added BuildRoot
e160af1
- added install clean
e160af1
e160af1
* Fri Sep 11 2009 Erick Calder <rpm@arix.com> - 0.5.5-2
e160af1
- Initial build
e160af1