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}