%define mod_name auth_samba
%define apxs /usr/sbin/apxs1
Summary: This is the samba authentication module for Apache
-Summary(pl): Modu³ uwierzytelnienia samba dla Apache
+Summary(pl.UTF-8): Moduł uwierzytelnienia samba dla Apache
Name: apache1-mod_%{mod_name}
Version: 1.1
-Release: 3
+Release: 4
Epoch: 1
License: GPL
Group: Networking/Daemons
# Source0-md5: 9478a055e5cedd8c00beaed83d324240
Patch0: %{name}-symbol_fix.patch
URL: http://modauthsamba.sourceforge.net/
-BuildRequires: %{apxs}
+BuildRequires: apache1-apxs
BuildRequires: apache1-devel >= 1.3.33-2
BuildRequires: gdbm-devel
BuildRequires: pam-devel
BuildRequires: pam-pam_smb
+BuildRequires: rpmbuild(macros) >= 1.268
Requires(triggerpostun): %{apxs}
-Requires: apache1 >= 1.3.33-2
+Requires: apache1(EAPI)
Requires: pam-pam_smb
-Obsoletes: apache-mod_%{mod_name} <= %{epoch}:%{version}
+Obsoletes: apache-mod_auth_samba <= 1:1.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
This is an authentication module for Apache that allows you to
authenticate HTTP clients using user entries in an samba directory.
-%description -l pl
-To jest modu³ uwierzytelnienia dla Apache pozwalaj±cy na
-uwierzytelnianie klientów HTTP z u¿yciem wpisów w katalogu samby.
+%description -l pl.UTF-8
+To jest moduł uwierzytelnienia dla Apache pozwalający na
+uwierzytelnianie klientów HTTP z użyciem wpisów w katalogu samby.
%prep
%setup -q -n mod_%{mod_name}
rm -rf $RPM_BUILD_ROOT
%post
-if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
-fi
+%service -q apache restart
-%preun
+%postun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
- fi
+ %service -q apache restart
fi
%triggerpostun -- apache1-mod_%{mod_name} < 1:1.1-2.1
%files
%defattr(644,root,root,755)
%doc *.html
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
%attr(755,root,root) %{_pkglibdir}/*