%define name autofs %define version 5.0.6 %define release %mkrel 1 Name: %{name} Version: %{version} Release: %{release} License: GPL Summary: A tool for automatically mounting and unmounting filesystems Group: System/Kernel and hardware URL: ftp://ftp.kernel.org/pub/linux/daemons/autofs Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-%{version}.tar.bz2 Source1: %{name}.init Patch0: autofs-5.0.6-fix-ipv6-name-for-lookup-fix.patch Patch102: autofs-5.0.4-separate-config-files.patch Patch103: autofs-5.0.4-rename-configuration-file.patch Requires(post): rpm-helper Requires(preun):rpm-helper BuildRequires: openldap-devel BuildRequires: flex BuildRequires: bison BuildRequires: libsasl-devel BuildRequires: krb-devel BuildRequires: libxml2-devel Conflicts: autosmb Buildroot: %{_tmppath}/%{name}-%{version} %description autofs is a daemon which automatically mounts filesystems when you use them, and unmounts them later when you are not using them. This can include network filesystems, CD-ROMs, floppies, and so forth. %prep %setup -q -n %{name}-%{version} %patch0 -p 1 %patch102 -p 1 %patch103 -p 1 %build autoreconf %serverbuild %configure2_5x --with-mapdir=%{_sysconfdir}/%{name} \ --with-confdir=%{_sysconfdir}/%{name} \ --with-sasl=yes %make DONTSTRIP=1 mkdir examples cp samples/ldap* examples cp samples/autofs.schema examples rm -f README.gentoo %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_sbindir} mkdir -p %{buildroot}%{_libdir}/autofs mkdir -p %{buildroot}%{_mandir}/{man5,man8} mkdir -p %{buildroot}%{_sysconfdir} %make install INSTALLROOT=%{buildroot} install -d -m 755 %{buildroot}%{_initrddir} install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name} rm -f %{buildroot}%{_sysconfdir}/init.d/%{name} rm -f %{buildroot}%{_mandir}/man8/autofs* cat > README.urpmi <