1 |
Name: chirp |
2 |
Version: 0.3.1 |
3 |
Release: 1%{?dist} |
4 |
Summary: A tool for programming two-way radio equipment |
5 |
|
6 |
Group: Applications/Communications |
7 |
License: GPLv3+ |
8 |
URL: http://chirp.danplanet.com/ |
9 |
Source0: http://chirp.danplanet.com/download/%{version}/%{name}-%{version}.tar.gz |
10 |
# Installing correct .desktop file |
11 |
# Source:http://dp67.fedorapeople.org/pkgs/DESKTOP/chirp.desktop |
12 |
Source1: %{name}.desktop |
13 |
|
14 |
Patch0: chirp-0.2.2-install.patch |
15 |
|
16 |
BuildArch: noarch |
17 |
BuildRequires: python-devel |
18 |
BuildRequires: desktop-file-utils |
19 |
BuildRequires: libxml2-python |
20 |
BuildRequires: pyserial |
21 |
Requires: libxml2-python |
22 |
Requires: pyserial |
23 |
Requires: python-suds |
24 |
|
25 |
%description |
26 |
Chirp is a tool for programming two-way radio equipment |
27 |
It provides a generic user interface to the programming |
28 |
data and process that can drive many radio models under |
29 |
the hood. |
30 |
|
31 |
|
32 |
%prep |
33 |
%setup -q |
34 |
%patch0 -p1 -b .inst |
35 |
|
36 |
|
37 |
%build |
38 |
%{__python} setup.py build |
39 |
|
40 |
|
41 |
%install |
42 |
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" |
43 |
|
44 |
# Wrong .desktop config lets install the correct .desktop |
45 |
desktop-file-install \ |
46 |
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1} |
47 |
|
48 |
|
49 |
%files |
50 |
%doc COPYING |
51 |
%{_bindir}/chirpw |
52 |
%{python_sitelib}/%{name}-%{version}-py2.7.egg-info |
53 |
%{python_sitelib}/%{name}/ |
54 |
%{python_sitelib}/chirpui/ |
55 |
%{_datadir}/applications/%{name}.desktop |
56 |
%{_datadir}/%{name}/ |
57 |
%{_mandir}/man1/chirpw.1.gz |
58 |
%{_datadir}/pixmaps/%{name}.png |
59 |
|
60 |
|