# # spec file for package urh # # Copyright (c) 2025 SUSE LLC and contributors # Copyright (c) 2017-2025, Martin Hauke # # 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