File soapy-rtlsdr.spec of Package failed_soapy-rtlsdr

Name:           soapysdr0.8-module-rtlsdr
Version:        0.3.3
Release:        1.1
Summary:        SoapySDR RTL-SDR module

License:        GPL-2.0
URL:            https://github.com/pothosware/SoapyRTLSDR
Source0:        soapy-rtl-sdr-0.3.3.tar.gz

BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  soapy-sdr-devel
BuildRequires:  librtlsdr-devel
BuildRequires:  pkg-config
BuildRequires:  make

%description
SoapyRTLSDR is a module for SoapySDR that provides support for RTL-SDR devices.

%prep
%setup -q -n SoapyRTLSDR-soapy-rtl-sdr-0.3.3

%build
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON
make -j%{_smp_mflags}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
cd build
make DESTDIR=%{buildroot} install

%check
# upstream has no tests
:

%files
%defattr(-,root,root,-)
%doc Changelog.txt README.md LICENSE.txt
%{_libdir}/SoapySDR/modules0.8*/librtlsdrSupport.so

%changelog
* Sun Aug 10 2025 packager <packager@example.com> - 0.3.3-1.1
- Adjusted packaging to handle versioned SoapySDR module directory (modules0.8-*)
openSUSE Build Service is sponsored by