From 813f2825623c52f3088ed60856a65d1c19e20073 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:43:44 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.7.0-1mamba;Sun Mar 29 2020] --- README.md | 2 ++ librtlsdr.spec | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 librtlsdr.spec diff --git a/README.md b/README.md index 73cd23d..989668d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # librtlsdr +Software to turn the RTL2832U into an SDR. + diff --git a/librtlsdr.spec b/librtlsdr.spec new file mode 100644 index 0000000..524ffc9 --- /dev/null +++ b/librtlsdr.spec @@ -0,0 +1,82 @@ +Name: librtlsdr +Version: 0.7.0 +Release: 1mamba +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 +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libusb-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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: Applications/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 +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/librtlsdr.so.* +%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) +%{_bindir}/rtl_* + +%changelog +* Sun Mar 29 2020 Silvan Calarco 0.7.0-1mamba +- package created using the webbuild interface