1 |
%define dte 20221128 |
2 |
%define rel 1 |
3 |
Name: chirp |
4 |
Version: 0.4.0~dev |
5 |
Epoch: 1 |
6 |
Release: %mkrel -c %{dte} %{rel} |
7 |
Summary: A tool for programming radio equipment |
8 |
Group: Communications/Radio |
9 |
License: GPLv3+ |
10 |
URL: http://%{name}.danplanet.com/ |
11 |
Source0: %{name}-%{version}-%{dte}.tar.gz |
12 |
Patch1: chirp-0.4.0~dev-20221128-mga-2to3.patch |
13 |
|
14 |
%global __requires_exclude ^typelib |
15 |
|
16 |
BuildArch: noarch |
17 |
|
18 |
BuildRequires: desktop-file-utils |
19 |
BuildRequires: libxml2-python3 |
20 |
BuildRequires: python3-serial |
21 |
BuildRequires: python3-six |
22 |
BuildRequires: python3-future |
23 |
|
24 |
Requires: libxml2-python3 |
25 |
Requires: python3-future |
26 |
Requires: python3-serial |
27 |
Requires: python3-suds |
28 |
Requires: python3-wxpython4 |
29 |
|
30 |
%description |
31 |
CHIRP is an open-source tool for programming radio tranceivers. |
32 |
It supports a large number of manufacturers and models, as well as providing |
33 |
a way to interface with multiple data sources and formats. |
34 |
|
35 |
This version is built from the chirp Python 3 branch which may not be as up to |
36 |
date as the daily builds which still use Python 2, no longer supported in |
37 |
Mageia. |
38 |
|
39 |
%prep |
40 |
%autosetup -p1 -n %{name}-%{version}-%{dte} |
41 |
|
42 |
%build |
43 |
%py3_build |
44 |
|
45 |
%install |
46 |
%py3_install |
47 |
|
48 |
rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop |
49 |
|
50 |
cat>%{buildroot}%{_datadir}/applications/%{name}.desktop<<EOF |
51 |
[Desktop Entry] |
52 |
Name=Chirp |
53 |
GenericName=chirp |
54 |
Exec=chirp |
55 |
Icon=chirp |
56 |
Terminal=true |
57 |
Type=Application |
58 |
Categories=AudioVideo;Audio;HamRadio; |
59 |
Comment=CHIRP Radio Programming Tool |
60 |
EOF |
61 |
|
62 |
desktop-file-install \ |
63 |
--dir=%{buildroot}%{_datadir}/applications \ |
64 |
%{buildroot}%{_datadir}/applications/%{name}.desktop |
65 |
|
66 |
%files |
67 |
%doc COPYING |
68 |
%{_bindir}/* |
69 |
%{python3_sitelib}/%{name}/ |
70 |
%{python3_sitelib}/%{name}-* |
71 |
%{python3_sitelib}/tests/* |
72 |
%{_datadir}/applications/%{name}.desktop |
73 |
%{_datadir}/%{name}/ |
74 |
%{_mandir}/man1/* |
75 |
%{_datadir}/pixmaps/%{name}.png |