1 |
|
%define bdate 20200305py3 |
2 |
|
%define basever 0.3.0dev |
3 |
|
|
4 |
Name: chirp |
Name: chirp |
5 |
Version: 20190412 |
Version: %{bdate} |
6 |
Release: %mkrel 2 |
Release: %mkrel 1 |
7 |
Summary: A tool for programming radio equipment |
Summary: A tool for programming radio equipment |
8 |
Group: Communications/Radio |
Group: Communications/Radio |
9 |
License: GPLv3+ |
License: GPLv3+ |
10 |
URL: http://chirp.danplanet.com/ |
URL: http://%{name}.danplanet.com/ |
11 |
Source0: https://trac.chirp.danplanet.com/chirp_daily/LATEST/chirp-daily-%{version}.tar.gz |
Source0: %{name}-%{basever}.tar.gz |
12 |
|
# Source0: https://trac.chirp.danplanet.com/chirp_daily/LATEST/chirp-%%{basever}.tar.gz |
13 |
|
# VCS https://chirp.danplanet.com/projects/chirp/wiki/DevelopersProcess |
14 |
|
Source1: mk-tar-and-patch |
15 |
Patch0: chirp-0.2.2-install.patch |
Patch0: chirp-0.2.2-install.patch |
16 |
Patch1: chirp-20190201-mga-dont_nag_so_much_about_updates.patch |
Patch1: chirp-20190201-mga-dont_nag_so_much_about_updates.patch |
17 |
|
Patch2: chirp-0.3.0dev-mga-2to3.patch |
18 |
|
Patch3: chirp-20191016-mga-rem-osx.patch |
19 |
|
|
20 |
BuildArch: noarch |
BuildArch: noarch |
21 |
|
|
|
BuildRequires: pkgconfig(python) |
|
22 |
BuildRequires: desktop-file-utils |
BuildRequires: desktop-file-utils |
23 |
BuildRequires: libxml2-python |
BuildRequires: libxml2-python3 |
24 |
BuildRequires: python-serial |
BuildRequires: python3-serial |
25 |
|
BuildRequires: python3-six |
26 |
Requires: libxml2-python |
BuildRequires: python3-future |
27 |
Requires: python-serial |
|
28 |
Requires: python-suds |
Requires: libxml2-python3 |
29 |
Requires: pygtk2.0 |
Requires: python3-future |
30 |
|
Requires: python3-serial |
31 |
|
Requires: python3-suds |
32 |
|
|
33 |
%description |
%description |
34 |
CHIRP is an open-source tool for programming radio tranceivers. |
CHIRP is an open-source tool for programming radio tranceivers. |
36 |
a way to interface with multiple data sources and formats. |
a way to interface with multiple data sources and formats. |
37 |
|
|
38 |
%prep |
%prep |
39 |
%autosetup -p1 -n %{name}-daily-%{version} |
%autosetup -p1 -n %{name}-%{basever} |
40 |
|
|
41 |
%build |
%build |
42 |
%py2_build |
%py3_build |
43 |
|
|
44 |
%install |
%install |
45 |
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" |
%{__python3} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" |
46 |
|
|
47 |
|
rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop |
48 |
|
|
49 |
cat>%{buildroot}%{_datadir}/applications/%{name}.desktop<<EOF |
cat>%{buildroot}%{_datadir}/applications/%{name}.desktop<<EOF |
50 |
[Desktop Entry] |
[Desktop Entry] |
52 |
GenericName=chirp |
GenericName=chirp |
53 |
Exec=chirpw |
Exec=chirpw |
54 |
Icon=chirp |
Icon=chirp |
55 |
Terminal=false |
Terminal=true |
56 |
Type=Application |
Type=Application |
57 |
Categories=Network;HamRadio; |
Categories=HamRadio; |
58 |
Version=1.0 |
Version=1.0 |
59 |
Comment=CHIRP Radio Programming Tool |
Comment=CHIRP Radio Programming Tool |
60 |
EOF |
EOF |
66 |
%files |
%files |
67 |
%doc COPYING |
%doc COPYING |
68 |
%{_bindir}/* |
%{_bindir}/* |
69 |
%{python2_sitelib}/%{name}-daily_%{version}-py2.7.egg-info |
%{python3_sitelib}/%{name}-%{basever}-py3.8.egg-info |
70 |
%{python2_sitelib}/%{name}/ |
%{python3_sitelib}/%{name}/* |
71 |
|
%{python3_sitelib}/tests/* |
72 |
%{_datadir}/applications/%{name}.desktop |
%{_datadir}/applications/%{name}.desktop |
73 |
%{_datadir}/%{name}/ |
%{_datadir}/%{name}/ |
74 |
%{_mandir}/man1/* |
%{_mandir}/man1/* |