]> git.pld-linux.org Git - packages/apache-mod_auth_kerb.git/blame - apache-mod_auth_kerb.spec
- updated to 5.3
[packages/apache-mod_auth_kerb.git] / apache-mod_auth_kerb.spec
CommitLineData
ef395627
JR
1#
2# Conditional build:
3%bcond_with krb4 # build with Kerberos V4 support
4#
3a8fe259 5%define mod_name auth_kerb
6%define apxs /usr/sbin/apxs
cb733775 7Summary: This is the Kerberos authentication module for Apache
54902bb8 8Summary(pl.UTF-8): Moduł uwierzytelnienia Kerberos dla Apache
3a8fe259 9Name: apache-mod_%{mod_name}
ef395627
JR
10Version: 5.3
11Release: 1
3a8fe259 12Epoch: 1
13License: GPL
14Group: Networking/Daemons
ef395627
JR
15Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}.tar.gz
16# Source0-md5: a363588578050b3d320a2ceccf3ed666
3a8fe259 17Source1: %{name}.conf
18URL: http://modauthkerb.sourceforge.net/
19BuildRequires: %{apxs}
20BuildRequires: apache-devel
21BuildRequires: gdbm-devel
044bcc0f 22BuildRequires: krb5-devel
993543eb 23BuildRequires: rpmbuild(macros) >= 1.268
f56eec7f
ER
24BuildRequires: sed >= 4.0
25Requires: apache(modules-api) = %apache_modules_api
3a8fe259 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
f56eec7f
ER
28%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
29%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
3a8fe259 30
31%description
32This is an authentication module for Apache that allows you to
cb733775 33authenticate HTTP clients using user entries in an Kerberos directory.
3a8fe259 34
ace66492
JR
35%description -l pl.UTF-8
36To jest moduł uwierzytelnienia dla Apache pozwalający na
37uwierzytelnianie klientów HTTP z użyciem wpisów w katalogu Kerberosa.
3a8fe259 38
39%prep
ef395627 40%setup -q -n mod_%{mod_name}-%{version}
3a8fe259 41
42%build
ef395627
JR
43%configure \
44 %{?with_krb4:--with-krb4} \
45 %{!?with_krb4:--without-krb4} \
46 --with-apache=%{_prefix}
47
f56eec7f 48%{__sed} -i -e 's/-pthread/-lpthread/' Makefile
cb733775 49%{__make}
3a8fe259 50
51%install
52rm -rf $RPM_BUILD_ROOT
f56eec7f 53install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
3a8fe259 54
55install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
f56eec7f 56install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/20_mod_%{mod_name}.conf
3a8fe259 57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%post
993543eb 62%service -q httpd restart
3a8fe259 63
09f415c0 64%postun
3a8fe259 65if [ "$1" = "0" ]; then
993543eb 66 %service -q httpd restart
3a8fe259 67fi
68
69%files
70%defattr(644,root,root,755)
71%doc README
f56eec7f 72%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
c602842c 73%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.265125 seconds and 4 git commands to generate.