Release: 3
License: GPL
Group: Networking/Daemons
-Source0: http://prdownloads.sourceforge.net/modntlm/mod_%{mod_name}-%{version}.tar.gz
+Source0: http://dl.sourceforge.net/modntlm/mod_%{mod_name}-%{version}.tar.gz
+URL: http://modntlm.sourceforge.net/
BuildRequires: %{apxs}
BuildRequires: apache(EAPI)-devel
-Prereq: %{_sbindir}/apxs
+Requires(post,preun): %{apxs}
Requires: apache(EAPI)
-URL: http://modntlm.sourceforge.net/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _pkglibdir %(%{apxs} -q LIBEXECDIR)
install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+%clean
+rm -rf $RPM_BUILD_ROOT
+
%post
%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
if [ -f /var/lock/subsys/httpd ]; then
fi
fi
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_pkglibdir}/*