Name: joystick-support Version: 1.0.0 Release: 3%{?dist} Summary: Load joystick / game pad drivers at boot time Group: System Environment/Kernel License: MIT # The package is built just using this specfile. #URL: #Source0: # The joystick and game pad drivers have been moved to kernel-modules-extra Requires: kernel-modules-extra Requires: systemd Requires(post): module-init-tools BuildArch: noarch %description By default the joystick and game pad drivers are not loaded at boot time. Nor are they installed by default. Installing this package will load the main joystick and game pad drivers as part of the install, will bring in kernel-modules-extra if it isn't already, and will set things so that they will be loaded during future boots. %prep %build %install # 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 -e "joydev\nanalog" > $RPM_BUILD_ROOT%{_libdir}/../lib/modules-load.d/joystick.conf %files %{_libdir}/../lib/modules-load.d/joystick.conf %post /sbin/modprobe joydev /sbin/modprobe analog %changelog * Tue Aug 28 2012 Bruno Wolff III 1.0.0-3 - Do another build without the macro in changelog problem * Tue Aug 28 2012 Bruno Wolff III 1.0.0-2 - Require systemd for modules-load.d directory. - Use empty %%build since %%build can do stuff on its own. - Remove deprecated buildroot clean. * Mon Jul 23 2012 Bruno Wolff III 1.0.0-1 - Initial package creation