]> git.pld-linux.org Git - packages/apache1-mod_auth_samba.git/blobdiff - apache1-mod_auth_samba.spec
- some pld.org.pl->pld-linux.org cosmetics
[packages/apache1-mod_auth_samba.git] / apache1-mod_auth_samba.spec
index b384750a94f6b83949fb0f96769d1d64a7a2d37e..e35893285c85658045c9dd97a7b68392673cbde3 100644 (file)
@@ -1,27 +1,26 @@
 %define                mod_name        auth_samba
+%define        apxs    /usr/sbin/apxs
 Summary:       This is the samba authentication module for Apache
 Summary(pl):   Modu³ autentykacji samba dla Apache
 Name:          apache-mod_%{mod_name}
 Version:       1.1
-Release:       2
+Release:       5
 License:       GPL
 Group:         Networking/Daemons
-Group(de):     Netzwerkwesen/Server
-Group(pl):     Sieciowe/Serwery
-Source0:       ftp://download.sourceforge.net/pub/sourceforge/modauthsamba/mod_%{mod_name}-%{version}.tar.gz
+Source0:       ftp://ftp.sourceforge.net/pub/sourceforge/modauthsamba/mod_%{mod_name}-%{version}.tar.gz
 Patch0:                %{name}-symbol_fix.patch
 URL:           http://modauthsamba.sourceforge.net/
-BuildRequires: /usr/sbin/apxs
+BuildRequires: %{apxs}
 BuildRequires: apache(EAPI)-devel
 BuildRequires: gdbm-devel
 BuildRequires: pam-devel
 BuildRequires: pam_smb
-Prereq:                /usr/sbin/apxs
-Prereq:                pam_smb
+Prereq:                %{_sbindir}/apxs
+Requires:      pam_smb
 Requires:      apache(EAPI)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _pkglibdir      %(/usr/sbin/apxs -q LIBEXECDIR)
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
 
 %description
 This is an authentication module for Apache that allows you to
@@ -31,12 +30,12 @@ authenticate HTTP clients using user entries in an samba directory.
 To jest modu³ autentykacji dla Apache pozwalaj±cy na autentykacjê
 klientów HTTP z u¿yciem wpisów w katalogu samby.
 
-%prep 
+%prep
 %setup -q -n mod_%{mod_name}
 %patch0 -p1
 
 %build
-/usr/sbin/apxs -c mod_%{mod_name}.c -o mod_%{mod_name}.so -lgdbm -lcrypt -lpam /lib/security/pam_smb_auth.so
+%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.so -lgdbm -lcrypt -lpam /lib/security/pam_smb_auth.so
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -48,14 +47,14 @@ install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/usr/sbin/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
 %preun
 if [ "$1" = "0" ]; then
-       /usr/sbin/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+       %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
@@ -63,4 +62,5 @@ fi
 
 %files
 %defattr(644,root,root,755)
+%doc *.html
 %attr(755,root,root) %{_pkglibdir}/*
This page took 0.10475 seconds and 4 git commands to generate.