%define major 4 %define libname %mklibname amu %{major} %define develname %mklibname amu -d %define oversion 6.2 Name: am-utils Version: 6.2.0 Release: %mkrel 2 Epoch: 2 Summary: Automount utilities including an updated version of Amd License: BSD Group: System/Servers URL: http://www.am-utils.org/ Source0: ftp://ftp.am-utils.org/pub/%{name}/%{name}-%{oversion}.tar.gz Source1: amd.service Source2: am-utils.conf Source3: am-utils.sysconf Source4: am-utils.net.map Patch0: am-utils-6.2.0-dont-include-auto-generated-macros-in-aclinlude_m4.patch BuildRequires: bison BuildRequires: byacc BuildRequires: flex BuildRequires: gdbm-devel BuildRequires: libtool BuildRequires: openldap-devel >= 2.0.0 BuildRequires: texinfo BuildRequires: systemd-units BuildConflicts: db2-devel BuildConflicts: db1-devel Requires(pre): grep Requires(post): rpm-helper Requires(post): info-install Requires(preun):rpm-helper Requires(preun):info-install Requires: rpcbind Obsoletes: amd Provides: amd %description Am-utils includes an updated version of Amd, the popular BSD automounter. An automounter is a program which maintains a cache of mounted filesystems. Filesystems are mounted when they are first referenced by the user and unmounted after a certain period of inactivity. Amd supports a variety of filesystems, including NFS, UFS, CD-ROMS and local drives. You should install am-utils if you need a program for automatically mounting and unmounting filesystems. %package -n %{libname} Group: System/Servers Summary: Shared library files for am-utils # wrongly named lib pkg (wally 01/2013) Obsoletes: %{_lib}amu2 < 2:6.1.5-10 %description -n %{libname} Shared library files from the am-utils package. %package -n %{develname} Group: Development/C Summary: Development files for am-utils Requires: %{libname} = %{epoch}:%{version}-%{release} Obsoletes: %mklibname amu -d 2 %description -n %{develname} Development headers, and files for development from the am-utils package. %prep %setup -q -n %{name}-%{oversion} %autopatch -p1 %build # generate build scripts with our autotools mkdir -p m4 %serverbuild ./bootstrap %configure2_5x \ --enable-shared \ --disable-static \ --sysconfdir=%{_sysconfdir} \ --enable-am-cflags="-DHAVE_LINUX_NFS_MOUNT_H" \ --enable-libs="-lnsl -lresolv" \ --without-ldap %make %install %makeinstall_std mkdir -p %{buildroot}%{_sysconfdir}/sysconfig mkdir -p %{buildroot}%{_unitdir} install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/amd install -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/ mkdir -p %{buildroot}/.automount rm -f %{buildroot}%{_sbindir}/ctl-amd # install the default config and map files install -m 600 %{SOURCE2} %{buildroot}%{_sysconfdir}/amd.conf install -m 640 %{SOURCE4} %{buildroot}%{_sysconfdir}/amd.net rm -f %{buildroot}/amd.conf rm -f %{buildroot}/%{_sysconfdir}/*-sample rm -f %{buildroot}/amd #we don't want these find %{buildroot} -name "*.la" -delete %pre # Check if we have an old fashioned amd.conf and rename if to amd.net if [ "$1" = "0" ] ; then if grep -q "auto_dir" %{_sysconfdir}/amd.conf 2>/dev/null > /dev/null ; then # this is okay exit 0 else # this needs to be renamed. Still, if %{_sysconfdir}/amd.net exists, then # don't bother renamig it. RPM will handle it better than us here. if [ -e %{_sysconfdir}/amd.net ] ; then exit 0 else mv -f %{_sysconfdir}/amd.conf /etc/amd.net fi fi fi exit 0 %post %_post_service amd %_install_info %{name} %preun %_preun_service amd %_remove_install_info %{name} %triggerun -- am-utils < 2:6.1.5-16 # Run these because the SysV package being removed won't do them /sbin/chkconfig --del amd >/dev/null 2>&1 || : /bin/systemctl try-restart amd >/dev/null 2>&1 || : %files %doc doc/*.ps AUTHORS BUGS ChangeLog NEWS %doc README* scripts/*-sample COPYING %dir /.automount %{_bindir}/pawd %{_sbindir}/* %{_mandir}/man[58]/* %{_mandir}/man1/pawd.1* %config(noreplace) %verify(not md5) %{_sysconfdir}/amd.conf %config(noreplace) %verify(not md5) %{_sysconfdir}/amd.net %config(noreplace) %{_sysconfdir}/sysconfig/amd %{_unitdir}/amd.service %{_infodir}/*.info* %files -n %{libname} %{_libdir}/*.so.%{major} %{_libdir}/*.so.%{major}.* %files -n %{develname} %{_libdir}/*.so %changelog * Wed Feb 10 2016 umeabot <umeabot> 2:6.2.0-2.mga6 + Revision: 953055 - Mageia 6 Mass Rebuild * Mon Jul 27 2015 daviddavid <daviddavid> 2:6.2.0-1.mga6 + Revision: 858209 - new version: 6.2.0 - remove all unneeded patches - update Source URL - convert to systemd (from Fedora) - add more BuildRequires - add Patch0 from Fedora to fix libtool build failure - use autopach macro - update file list * Wed Oct 15 2014 umeabot <umeabot> 2:6.1.5-15.mga5 + Revision: 750689 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 2:6.1.5-14.mga5 + Revision: 686498 - Rebuild to fix library dependencies * Tue Sep 16 2014 umeabot <umeabot> 2:6.1.5-13.mga5 + Revision: 677747 - Mageia 5 Mass Rebuild * Sat Oct 19 2013 umeabot <umeabot> 2:6.1.5-12.mga4 + Revision: 532374 - Mageia 4 Mass Rebuild * Tue Aug 20 2013 fwang <fwang> 2:6.1.5-11.mga4 + Revision: 468213 - fix build with rencent texinfo * Fri Jan 11 2013 umeabot <umeabot> 2:6.1.5-11.mga3 + Revision: 345524 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Jan 08 2013 wally <wally> 2:6.1.5-10.mga3 + Revision: 343017 - fix major - obsolete old wrongly named lib pkg with wrong major - disable static build and drop .la files - clean .spec a bit * Tue Jan 08 2013 sander85 <sander85> 2:6.1.5-9.mga3 + Revision: 342832 - Fix buildrequires + dmorgan <dmorgan> - Fix build with new autotools * Sun May 08 2011 nanardon <nanardon> 2:6.1.5-8.mga1 + Revision: 96049 - Mdv cleanup - imported package am-utils * Sun Dec 05 2010 Oden Eriksson <oeriksson@mandriva.com> 2:6.1.5-8mdv2011.0 + Revision: 609973 - rebuild * Mon Mar 08 2010 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 2:6.1.5-7mdv2010.1 + Revision: 515618 - Include fixes from am-utils Fedora package, also handling Mandriva bug #45007: * RH/Fedora #203193, MDV #45007 - tmpfile usage * RH/Fedora #202180, MDV #45007 - amd service doesn't work * MDV #45007, from RH: UTS_RELEASE macro has been removed from the latest kernel (replaces am-utils-6.1.5-fix-configure.patch) * MDV #45007, Fedora build system bugfixes * RH/Fedora #435420, MDV #45007 - CVE-2008-1078 am-utils: insecure usage of temporary files * RH/Fedora #450754, MDV #45007 - Amd does not work with 2.6.25 * RH/Fedora #566711 - am-utils: incorrect use of tcp_wrapper - Add LSB header to amd initscript. * Sun Jul 26 2009 Guillaume Rousse <guillomovitch@mandriva.org> 2:6.1.5-6mdv2010.0 + Revision: 400423 - new devel policy - uncompress additional sources - patch1: fix configure script - fix dependencies + Thierry Vignaud <tv@mandriva.org> - rebuild - use std info-install macros - kill re-definition of %%buildroot on Pixel's request + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Thu Aug 23 2007 Thierry Vignaud <tv@mandriva.org> 2:6.1.5-3mdv2008.0 + Revision: 69949 - kill file require on chkconfig - kill file require on info-install * Sun Jan 07 2007 Crispin Boylan <crisb@mandriva.org> 6.1.5-2mdv2007.0 + Revision: 105188 - Kill db1 dep * Sat Aug 05 2006 Olivier Thauvin <nanardon@mandriva.org> 2:6.1.5-1mdv2007.0 + Revision: 51689 - 6.1.5 - Import am-utils * Sun Dec 11 2005 Olivier Thauvin <nanardon@mandriva.org> 6.1.3-1mdk - 6.1.3 * Wed Sep 28 2005 Olivier Thauvin <nanardon@mandriva.org> 6.1.2.1-1mdk - 6.1.2.1 * Thu May 05 2005 Olivier Thauvin <nanardon@mandriva.org> 6.0.9-9mdk - fix build on amd64 (autotools) * Thu Nov 18 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 6.0.9-8mdk - clean dep, update for 64bits * Tue Mar 02 2004 Pascal Terjan <pterjan@mandrake.org> 6.0.9-7mdk - Fix one more DEP * Sun Feb 29 2004 Pascal Terjan <pterjan@mandrake.org> 6.0.9-6mdk - Fix DEP due to Epoch * Thu Feb 26 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 6.0.9-5mdk - Fix DEP - disabling ldap (won't build on klama)