install udev rules and modprobe dvb blacklist file [release 0.8.0-2mamba;Fri May 06 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 05:43:45 +01:00
parent 4b34dc2286
commit 2c24431df1

View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.8.0-2mamba
- install udev rules and modprobe dvb blacklist file
* Mon Dec 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0-1mamba
- update to 0.8.0