]> git.pld-linux.org Git - packages/apache-mod_auth_kerb.git/blame - apache-mod_auth_kerb.spec
- converted to UTF-8
[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
ace66492 4Summary(pl.UTF-8): Moduł uwierzytelnienia Kerberos dla Apache
3a8fe259 5Name: apache-mod_%{mod_name}
6Version: 5.0
8dbb5915 7%define pre rc6
3a8fe259 8Release: 0.%{pre}.1
9Epoch: 1
10License: GPL
11Group: Networking/Daemons
12Source0: http://dl.sourceforge.net/modauthkerb/mod_%{mod_name}-%{version}-%{pre}.tar.gz
8dbb5915 13# Source0-md5: 274edfb950af20ce6ef0ddcb7c20263a
3a8fe259 14Source1: %{name}.conf
f56eec7f 15Patch1: %{name}-aprfix.patch
3a8fe259 16URL: http://modauthkerb.sourceforge.net/
17BuildRequires: %{apxs}
18BuildRequires: apache-devel
19BuildRequires: gdbm-devel
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
f56eec7f
ER
26%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
27%define _sysconfdir %(%{apxs} -q SYSCONFDIR 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
38%setup -q -n mod_%{mod_name}-%{version}-%{pre}
8dbb5915 39%patch1 -p1
3a8fe259 40
41%build
42%configure
f56eec7f 43%{__sed} -i -e 's/-pthread/-lpthread/' Makefile
cb733775 44%{__make}
3a8fe259 45
46%install
47rm -rf $RPM_BUILD_ROOT
f56eec7f 48install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
3a8fe259 49
50install src/.libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
f56eec7f 51install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/20_mod_%{mod_name}.conf
3a8fe259 52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%post
993543eb 57%service -q httpd restart
3a8fe259 58
09f415c0 59%postun
3a8fe259 60if [ "$1" = "0" ]; then
993543eb 61 %service -q httpd restart
3a8fe259 62fi
63
64%files
65%defattr(644,root,root,755)
66%doc README
f56eec7f 67%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
c602842c 68%attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.073377 seconds and 4 git commands to generate.