Files
urh/urh.spec
Martin Hauke 4747207b56 Accepting request 1323412 from home:mnhauke:sdr-devel
- Update to version 2.10.0
  * Fixed gauss_fir to work with numpy-2.
  * fix #1153 (index error).
  * Fix receiving data with rtl_tcp.
  * Fix setting of bias tee with rtl_tcp.
  * fix(numpy): replace deprecated tostring with tobytes.
  * Fix deprecation warning xml.etree.ElementTree.Element.
  * Drop python 3.8; Require python 3.9.
  * Replace deprecated ast.* constants.
  * Feat!: use numpy2.
  * Fix compilation with Cython3.1.
  * Fix buffer overflow in USRP recv_stream function.
  * fix: handle EOFError when control connection is closed.
  * Migrate to PyQt6.
  * Fix error when saving compressed files.
- Drop patch:
  * numpy-version.patch

OBS-URL: https://build.opensuse.org/request/show/1323412
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/urh?expand=0&rev=101
2025-12-21 09:39:24 +00:00

100 lines
2.9 KiB
RPMSpec

#
# spec file for package urh
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2017-2025, 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/
#
Name: urh
Version: 2.10.0
Release: 0
Summary: Tool for investigating unknown wireless protocols
License: GPL-3.0-only
Group: Productivity/Hamradio/Other
URL: https://github.com/jopohl/urh
Source: https://github.com/jopohl/urh/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libiio-devel
BuildRequires: limesuite-devel
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: python3-PyAudio
BuildRequires: python3-PyQt6
BuildRequires: python3-devel >= 3.8
BuildRequires: python3-numpy
BuildRequires: python3-numpy-devel
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(libairspy)
BuildRequires: pkgconfig(libbladeRF)
BuildRequires: pkgconfig(libhackrf)
BuildRequires: pkgconfig(librtlsdr)
BuildRequires: pkgconfig(uhd)
Requires: python3-PyAudio
Requires: python3-PyQt6
Requires: python3-numpy
Requires: python3-psutil
Requires: python3-pyzmq
Recommends: inspectrum
Recommends: rfcat
%if 0%{?suse_version} <= 1500
BuildRequires: python3-Cython
Requires: python3-Cython
%else
BuildRequires: python3-Cython0
Requires: python3-Cython0
%endif
%description
The Universal Radio Hacker is a software for investigating unknown wireless
protocols.
%prep
%autosetup -p1
sed -i -e '/^#!\//, 1d' \
src/urh/cli/urh_cli.py \
src/urh/main.py
%build
%python3_build \
--with-airspy \
--with-bladerf \
--with-hackrf \
--with-limesdr \
--with-rtlsdr \
--with-usrp \
--with-plutosdr
%install
%python3_install
%fdupes %{buildroot}%{python3_sitearch}
install -Dpm 0644 data/icons/appicon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/urh.svg
%suse_update_desktop_file -i -r urh "Network;HamRadio"
%files
%license LICENSE
%doc README.md
%{_bindir}/urh
%{_bindir}/urh_cli
%{_datadir}/icons/hicolor/scalable/apps/urh.svg
%{_datadir}/applications/urh.desktop
%{python3_sitearch}/urh
%{python3_sitearch}/urh-%{version}-py%{py3_ver}.egg-info
%changelog