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