From 2c24431df102fa761d7e581f9d9da8e3298a6913 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:43:45 +0100 Subject: [PATCH] install udev rules and modprobe dvb blacklist file [release 0.8.0-2mamba;Fri May 06 2022] --- librtlsdr.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/librtlsdr.spec b/librtlsdr.spec index a83b84c..90d0253 100644 --- a/librtlsdr.spec +++ b/librtlsdr.spec @@ -1,13 +1,12 @@ Name: librtlsdr Version: 0.8.0 -Release: 1mamba +Release: 2mamba Summary: Software to turn the RTL2832U into an SDR Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://osmocom.org/projects/rtl-sdr/wiki/Rtl-sdr -## GITSOURCE https://github.com/librtlsdr/librtlsdr.git v0.7.0 Source: https://github.com/librtlsdr/librtlsdr.git/v%{version}/librtlsdr-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN @@ -43,13 +42,18 @@ This package contains utility applications for %{name}. sed -i "s|VERSION_INFO_PATCH_VERSION git|VERSION_INFO_PATCH_VERSION 0|" CMakeLists.txt %build -%cmake -d build +%cmake -d build \ + -DDETACH_KERNEL_DRIVER=ON + %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build +install -D -m0644 rtl-sdr.rules %{buildroot}%{_udevrulesdir}/10-rtl-sdr.rules +install -D -m0644 rtlsdr-blacklist.conf %{buildroot}%{_modprobedir}/rtlsdr-blacklist.conf + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -59,6 +63,7 @@ sed -i "s|VERSION_INFO_PATCH_VERSION git|VERSION_INFO_PATCH_VERSION 0|" CMakeLis %files %defattr(-,root,root) %{_libdir}/librtlsdr.so.* +%{_udevrulesdir}/10-rtl-sdr.rules %doc AUTHORS COPYING %files devel @@ -73,9 +78,13 @@ sed -i "s|VERSION_INFO_PATCH_VERSION git|VERSION_INFO_PATCH_VERSION 0|" CMakeLis %files tools %defattr(-,root,root) +%{_modprobedir}/rtlsdr-blacklist.conf %{_bindir}/rtl_* %changelog +* Fri May 06 2022 Silvan Calarco 0.8.0-2mamba +- install udev rules and modprobe dvb blacklist file + * Mon Dec 27 2021 Silvan Calarco 0.8.0-1mamba - update to 0.8.0