Modernize the SPEC a tiny bit

This commit is contained in:
Lubomir Rintel 2016-06-22 14:44:41 +02:00
parent 63bd8bf900
commit 8b714fff15

View File

@ -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