diff --git a/dkms-nvidia.spec b/dkms-nvidia.spec index 69b546f..25b3582 100755 --- a/dkms-nvidia.spec +++ b/dkms-nvidia.spec @@ -50,6 +50,7 @@ sed -i -e 's/__VERSION_STRING/%{version}/g' kernel/dkms.conf # Create empty tree mkdir -p %{buildroot}%{_usrsrc}/%{dkms_name}-%{version}/ cp -fr kernel/* %{buildroot}%{_usrsrc}/%{dkms_name}-%{version}/ +rm -v %{buildroot}%{_usrsrc}/%{dkms_name}-%{version}/nvidia/*.h %post dkms add -m %{dkms_name} -v %{version} -q || :