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