librtlsdr/librtlsdr.spec

93 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

Name: librtlsdr
Version: 0.8.0
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
Source: https://github.com/librtlsdr/librtlsdr.git/v%{version}/librtlsdr-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libusb-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
%description
Software to turn the RTL2832U into an SDR.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package tools
Group: System/Tools
Summary: Utility applications for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains utility applications for %{name}.
%debug_package
%prep
%setup -q
sed -i "s|VERSION_INFO_PATCH_VERSION git|VERSION_INFO_PATCH_VERSION 0|" CMakeLists.txt
%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}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/librtlsdr.so.*
%{_udevrulesdir}/10-rtl-sdr.rules
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/rtl-sdr.h
%{_includedir}/rtl-sdr_export.h
%{_includedir}/rtl_tcp.h
%{_libdir}/librtlsdr.a
%{_libdir}/librtlsdr.so
%{_libdir}/pkgconfig/librtlsdr.pc
%doc README.md README.rtlfm_cmdfile README.rtlsdr_rpc
%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
* Sun Mar 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.0-1mamba
- package created using the webbuild interface