From 8b714fff158e3776b8a08f8637f8ebfdb929e370 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 22 Jun 2016 14:44:41 +0200 Subject: [PATCH] Modernize the SPEC a tiny bit --- usb_modeswitch-data.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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