From 8560fbf7790e54b75578a24b85dd5d507bccea8d9014613826034c28d66dca88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 8 Nov 2018 07:45:11 +0000 Subject: [PATCH] Accepting request 647070 from home:jengelh:branches:hardware - Fix RPM groups. Avoid pointless shelling out to /bin/rm. OBS-URL: https://build.opensuse.org/request/show/647070 OBS-URL: https://build.opensuse.org/package/show/hardware/usbguard?expand=0&rev=10 --- usbguard.changes | 5 +++++ usbguard.spec | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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