diff --git a/usb_modeswitch-data.spec b/usb_modeswitch-data.spec index 82f5dfe..aa4d204 100644 --- a/usb_modeswitch-data.spec +++ b/usb_modeswitch-data.spec @@ -1,4 +1,4 @@ -%define source_name usb-modeswitch-data +%global source_name usb-modeswitch-data Name: usb_modeswitch-data Version: 20160612 @@ -47,10 +47,10 @@ install -p -m 644 usb_modeswitch.d/* $RPM_BUILD_ROOT%{_sysconfdir}/usb_modeswit install -p -m 644 40-usb_modeswitch.rules $RPM_BUILD_ROOT%{_udevrulesdir} %post -udevadm control --reload-rules || : +%udev_rules_update %postun -udevadm control --reload-rules || : +%udev_rules_update %files %{_udevrulesdir}/40-usb_modeswitch.rules