Replaced script in .spec file with %ghost macros.

OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=13
This commit is contained in:
R N 2024-11-05 04:40:21 +00:00 committed by Git OBS Bridge
parent 9fc5cee966
commit d32441b427

View File

@ -79,10 +79,6 @@ fi
%postun
%service_del_postun_with_restart supergfxd.service
if [ -e %{_sysconfdir}/modprobe.d/supergfxd.conf ]
then
rm %{_sysconfdir}/modprobe.d/supergfxd.conf
fi
if [ -e %{_sysconfdir}/modprobe.d/nvidia.conf ]
then
if grep -q "# options nvidia-drm.modeset=1" %{_sysconfdir}/modprobe.d/nvidia.conf
@ -98,6 +94,7 @@ fi
%{_unitdir}/supergfxd.service
%{_presetdir}/99-supergfxd.preset
%{_udevrulesdir}/90-supergfxd-nvidia-pm.rules
%ghost %attr(0644,root,root) %{_sysconfdir}/modprobe.d/supergfxd.conf
%config %{_sysconfdir}/dbus-1/system.d/org.supergfxctl.Daemon.conf
%dir %{_datadir}/doc/%{name}
%{_datadir}/doc/%{name}/*