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