File python-pyrtlsdr.spec of Package python-pyrtlsdr
#
# spec file for package python-pyrtlsdr
#
# Copyright (c) 2019-2021 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017-2023, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
%define skip_python36 1
Name: python-pyrtlsdr
Version: 0.3.0
Release: 0
Summary: A Python wrapper for librtlsdr
License: GPL-3.0-only
Group: Development/Languages/Python
URL: https://github.com/roger-/pyrtlsdr
Source: https://github.com/roger-/pyrtlsdr/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(librtlsdr)
BuildArch: noarch
%python_subpackages
%description
pyrtlsdr is a simple Python interface to devices supported by the
RTL-SDR project, which turns certain USB DVB-T dongles employing
the Realtek RTL2832U chipset into low-cost, general purpose
software-defined radio receivers. It wraps all the functions in the
librtlsdr library (including asynchronous read support),
and also provides a more Pythonic API.
%prep
%setup -q -n pyrtlsdr-%{version}
sed -i -e '/^#!\ \//, 1d' rtlsdr/rtlsdrtcp/server.py
%build
%python_build
%install
%python_install
%fdupes %{buildroot}
# Tests won't work without a connected hardware rtlsdr device
#%%check
#%%pytest
%files %{python_files}
%doc README.md demo_waterfall.py
%{python_sitelib}/pyrtlsdr*
%{python_sitelib}/rtlsdr/
%changelog