Author: adamg                        Date: Fri Sep  7 16:07:25 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- builds now (thx qboosh)

---- Files affected:
SPECS:
   apache-mod_gnutls.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/apache-mod_gnutls.spec
diff -u SPECS/apache-mod_gnutls.spec:1.5 SPECS/apache-mod_gnutls.spec:1.6
--- SPECS/apache-mod_gnutls.spec:1.5    Mon Feb 12 22:23:47 2007
+++ SPECS/apache-mod_gnutls.spec        Fri Sep  7 18:07:19 2007
@@ -1,7 +1,7 @@
 # $Revision$, $Date$
 # TODO
 # - with apr_memcache: http://www.outoforder.cc/projects/libs/apr_memcache
-# - make tries to make cert using /dev/random (slow! and perhaps unneccessary)
+# - config file
 %define                mod_name        gnutls
 %define        apxs            /usr/sbin/apxs
 Summary:       SSL v3, TLS 1.0 and TLS 1.1 encryption for Apache HTTPD
@@ -13,12 +13,20 @@
 Group:         Networking/Daemons
 Source0:       
http://www.outoforder.cc/downloads/mod_gnutls/mod_gnutls-%{version}.tar.bz2
 # Source0-md5: 80ab766a7b9cfbb730e789032ff26d68
+Patch0:                %{name}-libtool.patch
+Patch1:                %{name}-no_certtool.patch
 URL:           http://www.outoforder.cc/projects/apache/mod_gnutls/
+BuildRequires: apache-apxs
 BuildRequires: apache-devel >= 2.0.42
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: gnutls-devel >= 1.2.0
+BuildRequires: libtool
 Requires:      apache(modules-api) = %apache_modules_api
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define         _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+
 %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,
@@ -43,8 +51,15 @@
 
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoheader}
+%{__automake}
+%{__autoconf}
 %configure \
        --with-apxs=%{apxs} \
        --with-libgnutls=%{_prefix} \
@@ -53,15 +68,15 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_pkglibdir}
+install src/.libs/libmod_gnutls.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_gnutls.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%{_pkglibdir}/*
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -69,6 +84,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2007/09/07 16:07:19  adamg
+- builds now (thx qboosh)
+
 Revision 1.5  2007/02/12 21:23:47  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/apache-mod_gnutls.spec?r1=1.5&r2=1.6&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to