From f4393a3727586b33ac0cda1954adcc00c3370d35582f562a447295bddc622196 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 20 Feb 2024 10:19:01 +0000 Subject: [PATCH] Accepting request 1147739 from home:dimstar:rpm4.20:a Prepare for RPM 4.20 OBS-URL: https://build.opensuse.org/request/show/1147739 OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/airspyhf?expand=0&rev=15 --- airspyhf.changes | 6 ++++++ airspyhf.spec | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/airspyhf.changes b/airspyhf.changes index e0d2c37..a07c0b1 100644 --- a/airspyhf.changes +++ b/airspyhf.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 20 10:05:09 UTC 2024 - Dominique Leuenberger + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN. + ------------------------------------------------------------------- Thu Apr 9 18:11:02 UTC 2020 - Martin Hauke diff --git a/airspyhf.spec b/airspyhf.spec index be4b1ef..184682d 100644 --- a/airspyhf.spec +++ b/airspyhf.spec @@ -1,7 +1,7 @@ # # spec file for package airspyhf # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2024 SUSE LLC # Copyright (c) 2017, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -61,8 +61,7 @@ Requires: %{libname} = %{version} Library headers for Airspy HF+ driver. %prep -%setup -q -%patch0 -p1 +%autosetup -p1 # HACK: set udev group to airspyhf sed -i "s/plugdev/airspyhf/g" tools/52-airspyhf.rules @@ -84,6 +83,7 @@ mv %{buildroot}%{_sysconfdir}/udev/rules.d/52-airspyhf.rules %{buildroot}%{_udev %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig + %pre udev getent group %{airspyhf_group} >/dev/null || groupadd -r %{airspyhf_group}