]> git.pld-linux.org Git - packages/apache-mod_auth_kerb.git/blobdiff - apache-mod_auth_kerb.spec
- rel 4
[packages/apache-mod_auth_kerb.git] / apache-mod_auth_kerb.spec
index c2a300950c9b551e6a6bb5e680a76c1b497dea1d..5fb34c6802b70675a0dec19dcd7342c5c177daa4 100644 (file)
@@ -3,28 +3,27 @@
 Summary:       This is the Kerberos authentication module for Apache
 Summary(pl.UTF-8):     Moduł uwierzytelnienia Kerberos dla Apache
 Name:          apache-mod_%{mod_name}
-Version:       5.0
-%define pre rc6
-Release:       0.%{pre}.2
+Version:       5.4
+Release:       4
 Epoch:         1
 License:       GPL
-Group:         Networking/Daemons
-Source0:       http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}-%{pre}.tar.gz
-# Source0-md5: 274edfb950af20ce6ef0ddcb7c20263a
+Group:         Networking/Daemons/HTTP
+Source0:       http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}.tar.gz
+# Source0-md5: 642b81763ad3ca81dba359cb952da5e3
 Source1:       %{name}.conf
-Patch1:                %{name}-aprfix.patch
+Patch0:                %{name}-heimdal.patch
 URL:           http://modauthkerb.sourceforge.net/
 BuildRequires: %{apxs}
-BuildRequires: apache-devel
+BuildRequires: apache-devel >= 2.0
 BuildRequires: gdbm-devel
-BuildRequires: krb5-devel
+BuildRequires: heimdal-devel
 BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: sed >= 4.0
 Requires:      apache(modules-api) = %apache_modules_api
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
-%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
+%define                apacheconfdir   %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
+%define                apachelibdir    %(%{apxs} -q LIBEXECDIR 2>/dev/null)
 
 %description
 This is an authentication module for Apache that allows you to
@@ -35,20 +34,23 @@ To jest moduł uwierzytelnienia dla Apache pozwalający na
 uwierzytelnianie klientów HTTP z użyciem wpisów w katalogu Kerberosa.
 
 %prep
-%setup -q -n mod_%{mod_name}-%{version}-%{pre}
-%patch1 -p1
+%setup -q -n mod_%{mod_name}-%{version}
+%patch0 -p1
 
 %build
-%configure
+%configure \
+       --without-krb4 \
+       --with-apache=%{_prefix}
+
 %{__sed} -i -e 's/-pthread/-lpthread/' Makefile
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
+install -d $RPM_BUILD_ROOT{%{apachelibdir},%{apacheconfdir}}
 
-install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/20_mod_%{mod_name}.conf
+install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{apachelibdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{apacheconfdir}/20_mod_%{mod_name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -64,5 +66,5 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
-%attr(755,root,root) %{_pkglibdir}/*.so
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{apacheconfdir}/*_mod_%{mod_name}.conf
+%attr(755,root,root) %{apachelibdir}/*.so
This page took 0.225702 seconds and 4 git commands to generate.