package created using the webbuild interface [release 0.7.0-1mamba;Sun Mar 29 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 05:43:44 +01:00
parent 5b824d798c
commit 813f282562
2 changed files with 84 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# librtlsdr
Software to turn the RTL2832U into an SDR.

82
librtlsdr.spec Normal file
View File

@ -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 <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
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 <silvan.calarco@mambasoft.it> 0.7.0-1mamba
- package created using the webbuild interface