%define module new-lg4ff Name: new-lg4ff Version: 0.3.1 Release: 1%{?dist} Summary: Improved module driver for Logitech driving wheels. License: GPLv3 URL: https://github.com/berarma/new-lg4ff Source: https://github.com/berarma/new-lg4ff/archive/%{version}.tar.gz Requires: dkms Requires: kernel-devel %description Improved module driver for Logitech driving wheels. %prep %setup -n %{name}-%{version} %install mkdir -p %{buildroot}/usr/src/%{module}-%{version}/ cp -r . %{buildroot}/usr/src/%{module}-%{version} %clean rm -rf %{buildroot} %files %defattr(0644,root,root) %attr(0755,root,root) /usr/src/%{module}-%{version}/ %post if ! /usr/sbin/dkms status %{module}/%{version} | grep -q added then /usr/sbin/dkms add -m %{module} -v %{version} fi /usr/sbin/dkms build -m %{module} -v %{version} /usr/sbin/dkms install -m %{module} -v %{version} exit 0 %preun /usr/sbin/dkms remove -m %{module} -v %{version} --all exit 0 %changelog * Mon Oct 19 Evie Viau - 0.3.1-1 - Inital spec file using 0.3.1