diff --git a/usbguard.changes b/usbguard.changes index b75e9c3..d8ed716 100644 --- a/usbguard.changes +++ b/usbguard.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 7 17:38:38 UTC 2018 - Jan Engelhardt + +- Fix RPM groups. Avoid pointless shelling out to /bin/rm. + ------------------------------------------------------------------- Tue Oct 9 09:48:44 UTC 2018 - Robert Frohl diff --git a/usbguard.spec b/usbguard.spec index 3513e32..c83fc0a 100644 --- a/usbguard.spec +++ b/usbguard.spec @@ -70,7 +70,7 @@ USB device attributes. %package -n %lname Summary: Library for implementing USB device usage policy -Group: System/Daemons +Group: System/Libraries %description -n %lname The USBGuard software framework helps to protect your computer against rogue USB @@ -134,8 +134,7 @@ make %{?_smp_mflags} # make check %install -make install INSTALL='install -p' DESTDIR=%{buildroot} - +%make_install INSTALL="install -p" ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rcusbguard # Install configuration @@ -151,7 +150,7 @@ mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/ install -p -m 644 scripts/usbguard-zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_usbguard # Cleanup -find %{buildroot} \( -name '*.la' -o -name '*.a' \) -exec rm -f {} ';' +find %{buildroot} \( -name '*.la' -o -name '*.a' \) -delete %preun %service_del_preun usbguard.service