From 8a786cf0118a88a152a9520984ac09fa0bb6e22e060dcf18ee2f9c565c62623f Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Sun, 23 Apr 2017 20:14:01 +0000 Subject: [PATCH] Accepting request 490051 from home:mnhauke:sdr-devel - Update group handling OBS-URL: https://build.opensuse.org/request/show/490051 OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/bladeRF?expand=0&rev=12 --- bladeRF.changes | 5 +++++ bladeRF.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/bladeRF.changes b/bladeRF.changes index 3a5a747..6b84337 100644 --- a/bladeRF.changes +++ b/bladeRF.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Apr 23 19:27:32 UTC 2017 - mardnh@gmx.de + +- Update group handling + ------------------------------------------------------------------- Thu Apr 20 11:46:42 UTC 2017 - mpluskal@suse.com diff --git a/bladeRF.spec b/bladeRF.spec index 79d5e85..03f660e 100644 --- a/bladeRF.spec +++ b/bladeRF.spec @@ -57,6 +57,7 @@ Library for bladeRF, SDR transceiver. %package udev Summary: Udev rules for bladeRF Group: Hardware/Other +Requires(pre): shadow %description udev Udev rules for bladeRF @@ -91,11 +92,12 @@ make %{?_smp_mflags} cd host %cmake_install -%pre -getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group} - %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig + +%pre udev +getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group} + %post udev %udev_rules_update