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 Name: librtlsdr
Version: 0.8.0 Version: 0.8.0
Release: 1mamba Release: 2mamba
Summary: Software to turn the RTL2832U into an SDR Summary: Software to turn the RTL2832U into an SDR
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://osmocom.org/projects/rtl-sdr/wiki/Rtl-sdr 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 Source: https://github.com/librtlsdr/librtlsdr.git/v%{version}/librtlsdr-%{version}.tar.bz2
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## 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 sed -i "s|VERSION_INFO_PATCH_VERSION git|VERSION_INFO_PATCH_VERSION 0|" CMakeLists.txt
%build %build
%cmake -d build %cmake -d build \
-DDETACH_KERNEL_DRIVER=ON
%make %make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build %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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -59,6 +63,7 @@ sed -i "s|VERSION_INFO_PATCH_VERSION git|VERSION_INFO_PATCH_VERSION 0|" CMakeLis
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/librtlsdr.so.* %{_libdir}/librtlsdr.so.*
%{_udevrulesdir}/10-rtl-sdr.rules
%doc AUTHORS COPYING %doc AUTHORS COPYING
%files devel %files devel
@ -73,9 +78,13 @@ sed -i "s|VERSION_INFO_PATCH_VERSION git|VERSION_INFO_PATCH_VERSION 0|" CMakeLis
%files tools %files tools
%defattr(-,root,root) %defattr(-,root,root)
%{_modprobedir}/rtlsdr-blacklist.conf
%{_bindir}/rtl_* %{_bindir}/rtl_*
%changelog %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 * Mon Dec 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0-1mamba
- update to 0.8.0 - update to 0.8.0