Name: floppy-support Version: 1.0.0 Release: 2%{?dist} Summary: Load floppy driver at boot time Group: System Environment/Kernel License: MIT # The package is built just using this specfile. #URL: #Source0: Requires(post): module-init-tools BuildArch: noarch %description By default the floppy driver is not loaded at boot time. Installing this package will load the floppy driver as part of the install and will set things so that it will be loaded during future boots. %prep #No setup, since no source outside the specfile. %install rm -rf $RPM_BUILD_ROOT # Note that the modules-load.d man page states that packages should install # files in /usr/lib/modules-load.d and that /etc/modules-load.d is # reserved for local administration. mkdir -p $RPM_BUILD_ROOT%{_libdir}/../lib/modules-load.d echo floppy > $RPM_BUILD_ROOT%{_libdir}/../lib/modules-load.d/floppy.conf %files %{_libdir}/../lib/modules-load.d/floppy.conf %post /sbin/modprobe floppy %changelog * Mon Sep 05 2011 Bruno Wolff III 1.0.0-2 - Use %%{_libdir}/../lib/ instead of %%{_libdir} to avoid arch issues. * Tue Aug 30 2011 Bruno Wolff III 1.0.0-1 - Initial package creation