%define dte 20221115 %define rel 0.1 Name: chirp Version: 0.4.0~dev Release: %mkrel -c %{dte} %{rel} Summary: A tool for programming radio equipment Group: Communications/Radio License: GPLv3+ URL: http://%{name}.danplanet.com/ Source0: %{name}-%{version}-%{dte}.tar.gz Patch1: chirp-0.4.0~dev-20221115-mga-2to3.patch %global __requires_exclude ^typelib BuildArch: noarch BuildRequires: desktop-file-utils BuildRequires: libxml2-python3 BuildRequires: python3-serial BuildRequires: python3-six BuildRequires: python3-future Requires: libxml2-python3 Requires: python3-future Requires: python3-serial Requires: python3-suds Requires: python3-wxpython4 %description CHIRP is an open-source tool for programming radio tranceivers. It supports a large number of manufacturers and models, as well as providing a way to interface with multiple data sources and formats. This version is built from the chirp Python 3 branch which may not be as up to date as the daily builds which use obsolete Python 2, no longer supported in Mageia. %prep %autosetup -p1 -n %{name}-%{version}-%{dte} %build %py3_build %install %py3_install rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop cat>%{buildroot}%{_datadir}/applications/%{name}.desktop<