#Module-Specific definitions %define mod_name mod_auth_msfix %define mod_conf A24_%{mod_name}.conf %define mod_so %{mod_name}.so Summary: A module that fix MS XP WebDAV client problem Name: apache-%{mod_name} Version: 0.2.1 Release: %mkrel 3 Group: System/Servers License: GPL URL: http://www.luluware.com/mod_auth_msfix.html Source0: %{mod_name}-%{version}.tar.bz2 Source1: %{mod_conf}.bz2 Patch0: mod_auth_msfix-0.2.1-apache220.diff Requires: apache-mod_dav Requires(pre): rpm-helper Requires(postun): rpm-helper Requires(pre): apache-conf >= 2.2.0 Requires(pre): apache >= 2.2.0 Requires: apache-conf >= 2.2.0 Requires: apache >= 2.2.0 BuildRequires: apache-devel >= 2.2.0 BuildRequires: file Provides: apache2-mod_auth_msfix Obsoletes: apache2-mod_auth_msfix Epoch: 1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description When MS XP Clients connect to WebDAV, they may have a problem sending the user's name to Apache. They send domaine\username or username@domaine, which break most of the authentification module of Apache. This mod can fix the user's name by rewriting it. %prep %setup -q -n %{mod_name}-%{version} %patch0 -p0 # strip away annoying ^M find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//' find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//' %build %{_sbindir}/apxs -c %{mod_name}.c %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_libdir}/apache-extramodules install -d %{buildroot}%{_sysconfdir}/httpd/modules.d install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/ bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf} install -d %{buildroot}%{_var}/www/html/addon-modules ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version} %post if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2; fi %postun if [ "$1" = "0" ]; then if [ -f %{_var}/lock/subsys/httpd ]; then %{_initrddir}/httpd restart 1>&2 fi fi %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc CHANGES INSTALL README mod_auth_msfix.html %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf} %attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so} %{_var}/www/html/addon-modules/* %changelog * Sun Aug 06 2006 Oden Eriksson <oeriksson@mandriva.com> 1:0.2.1-3mdv2007.0 - rebuild * Thu Dec 15 2005 Oden Eriksson <oeriksson@mandriva.com> 1:0.2.1-2mdk - rebuilt against apache-2.2.0 - fix the config * Mon Nov 28 2005 Oden Eriksson <oeriksson@mandriva.com> 1:0.2.1-1mdk - fix versioning * Sat Jul 30 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54_0.2.1-2mdk - fix deps * Thu Jun 02 2005 Oden Eriksson <oeriksson@mandriva.com> 2.0.54_0.2.1-1mdk - rename the package - the conf.d directory is renamed to modules.d - use new rpm-4.4.x pre,post magic * Sun Mar 20 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_0.2.1-5mdk - use the %%mkrel 1 * Mon Feb 28 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_0.2.1-4mdk - fix %%post and %%postun to prevent double restarts * Fri Feb 25 2005 Stefan van der Eijk <stefan@eijk.nu> 2.0.53_0.2.1-3mdk - fix bug #6574 * Wed Feb 16 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_0.2.1-2mdk - spec file cleanups, remove the ADVX-build stuff * Tue Feb 8 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.53_0.2.1-1mdk - rebuilt for apache 2.0.53 * Tue Sep 28 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.52_0.2.1-1mdk - built for apache 2.0.52 * Thu Sep 16 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.51_0.2.1-1mdk - built for apache 2.0.51 * Mon Jul 12 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.50_0.2.1-1mdk - built for apache 2.0.50 - remove redundant provides * Mon Jun 14 2004 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.49_0.2.1-1mdk - 0.2.1 - built for apache 2.0.49 * Mon Mar 29 2004 Michael Scherer <misc@mandrake.org> 2.0.48_0.2.0-2mdk - Enhance description * Wed Nov 12 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.48_0.2.0-1mdk - initial cooker contrib