%define bdate 20200305py3 %define basever 0.3.0dev Name: chirp Version: %{bdate} Release: %mkrel 1 Summary: A tool for programming radio equipment Group: Communications/Radio License: GPLv3+ URL: http://%{name}.danplanet.com/ Source0: %{name}-%{basever}.tar.gz # Source0: https://trac.chirp.danplanet.com/chirp_daily/LATEST/chirp-%%{basever}.tar.gz # VCS https://chirp.danplanet.com/projects/chirp/wiki/DevelopersProcess Source1: mk-tar-and-patch Patch0: chirp-0.2.2-install.patch Patch1: chirp-20190201-mga-dont_nag_so_much_about_updates.patch Patch2: chirp-0.3.0dev-mga-2to3.patch Patch3: chirp-20191016-mga-rem-osx.patch 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 %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. %prep %autosetup -p1 -n %{name}-%{basever} %build %py3_build %install %{__python3} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop cat>%{buildroot}%{_datadir}/applications/%{name}.desktop<