]> git.pld-linux.org Git - packages/apache-mod_ntlm.git/blobdiff - apache-mod_ntlm.spec
- BR s@%{apxs}@apache-apxs@g
[packages/apache-mod_ntlm.git] / apache-mod_ntlm.spec
index e56ae18b4249bc6c32975cfe58269ceca6f3cbdf..d74329b8566e693e6d95aabde5183d8e0f23e31a 100644 (file)
@@ -2,7 +2,7 @@
 %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
@@ -13,8 +13,9 @@ Source0:      http://dl.sourceforge.net/modntlm/mod_%{mod_name}2-%{version}.tgz
 # 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)
 
@@ -26,10 +27,10 @@ This is an authentication module for Apache that allows you to
 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}
@@ -50,15 +51,11 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
 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
This page took 0.088277 seconds and 4 git commands to generate.