%define mod_name ntlm
%define apxs /usr/sbin/apxs
Summary: This is the NTLM authentication module for Apache
-Summary(pl): Modu³ uwierzytelnienia NTLM dla Apache
+Summary(pl.UTF-8): Moduł uwierzytelnienia NTLM dla Apache
Name: apache-mod_%{mod_name}
Version: 0.1
Release: 0.1
# Source0-md5: 8abe4f235af6825f723412e187cac96b
#Patch0: %{name}-security.patch
URL: http://modntlm.sourceforge.net/
-BuildRequires: %{apxs}
+BuildRequires: apache-apxs >= 2.0
BuildRequires: apache-devel >= 2.0
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: apache(modules-api) = %apache_modules_api
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
authenticate HTTP clients using samba or windows-like server (using
NTLM protocol).
-%description -l pl
-To jest modu³ uwierzytelnienia dla Apache pozwalaj±cy na
-uwierzytelnianie klientów HTTP poprzez sambê lub serwer na Windows (z
-u¿yciem protoko³u NTLM).
+%description -l pl.UTF-8
+To jest moduł uwierzytelnienia dla Apache pozwalający na
+uwierzytelnianie klientów HTTP poprzez sambę lub serwer na Windows (z
+użyciem protokołu NTLM).
%prep
%setup -q -n mod_%{mod_name}2-%{version}
rm -rf $RPM_BUILD_ROOT
%post
-if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
-fi
+%service -q httpd restart
-%preun
+%postun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
- fi
+ %service -q httpd restart
fi
%files