/[packages]/cauldron/chirp/current/SPECS/chirp.spec
ViewVC logotype

Diff of /cauldron/chirp/current/SPECS/chirp.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1912316 by barjac, Mon Nov 28 23:03:05 2022 UTC revision 1928630 by barjac, Sun Jan 1 16:21:23 2023 UTC
# Line 1  Line 1 
1  %define dte     20221128  %define dte     20230101
2  %define rel     1  %define rel     1
3  Name:           chirp  Name:           chirp
4  Version:        0.4.0~dev  Version:        0.4.0
5  Epoch:          1  Epoch:          1
6  Release:        %mkrel -c %{dte} %{rel}  Release:        %mkrel -c %{dte} %{rel}
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://%{name}.danplanet.com/  URL:            https://github.com/kk7ds/chirp
 Source0:        %{name}-%{version}-%{dte}.tar.gz  
 Patch1:         chirp-0.4.0~dev-20221128-mga-2to3.patch  
11    
12  %global __requires_exclude ^typelib  Source0:        %{name}-%{version}~%{dte}.tar.gz
13    Source1:        mk-tar
14    
15  BuildArch:      noarch  BuildArch:      noarch
16    
# Line 26  Requires:       python3-future Line 25  Requires:       python3-future
25  Requires:       python3-serial  Requires:       python3-serial
26  Requires:       python3-suds  Requires:       python3-suds
27  Requires:       python3-wxpython4  Requires:       python3-wxpython4
28    Requires:       python3-yattag
29    
30  %description  %description
31  CHIRP is an open-source tool for programming radio tranceivers.  CHIRP is an open-source tool for programming radio tranceivers.
# Line 37  date as the daily builds which use Pytho Line 37  date as the daily builds which use Pytho
37  Mageia.  Mageia.
38    
39  %prep  %prep
40  %autosetup -p1 -n %{name}-%{version}-%{dte}  %autosetup -p1 -n %{name}-%{version}~%{dte}
41    
42  %build  %build
43  %py3_build  %py3_build
# Line 45  Mageia. Line 45  Mageia.
45  %install  %install
46  %py3_install  %py3_install
47    
48  rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop  # Desktop file
49    mkdir -p %{buildroot}%{_datadir}/applications
50    
51  cat>%{buildroot}%{_datadir}/applications/%{name}.desktop<<EOF  cat>%{buildroot}%{_datadir}/applications/%{name}.desktop<<EOF
52  [Desktop Entry]  [Desktop Entry]
# Line 53  Name=Chirp Line 54  Name=Chirp
54  GenericName=chirp  GenericName=chirp
55  Exec=chirp  Exec=chirp
56  Icon=chirp  Icon=chirp
57  Terminal=true  Terminal=false
58  Type=Application  Type=Application
59  Categories=AudioVideo;Audio;HamRadio;  Categories=AudioVideo;Audio;HamRadio;
60  Comment=CHIRP Radio Programming Tool  Comment=CHIRP Radio Programming Tool
# Line 62  EOF Line 63  EOF
63  desktop-file-install \  desktop-file-install \
64          --dir=%{buildroot}%{_datadir}/applications \          --dir=%{buildroot}%{_datadir}/applications \
65          %{buildroot}%{_datadir}/applications/%{name}.desktop          %{buildroot}%{_datadir}/applications/%{name}.desktop
66    # Icon
67    mkdir -p %{buildroot}/%{_iconsdir}/hicolor/scalable/apps
68    cp -f chirp/share/chirp.svg %{buildroot}/%{_iconsdir}/hicolor/scalable/apps/chirp.svg
69    
70  %files  %files
71  %doc COPYING  %doc COPYING
72  %{_bindir}/*  %{_bindir}/*
73  %{python3_sitelib}/%{name}/  %{python3_sitelib}/%{name}/
74  %{python3_sitelib}/%{name}-*  %{python3_sitelib}/%{name}-*
 %{python3_sitelib}/tests/*  
75  %{_datadir}/applications/%{name}.desktop  %{_datadir}/applications/%{name}.desktop
76  %{_datadir}/%{name}/  %{_iconsdir}/hicolor/scalable/apps/chirp.svg
 %{_mandir}/man1/*  
 %{_datadir}/pixmaps/%{name}.png  

Legend:
Removed from v.1912316  
changed lines
  Added in v.1928630

  ViewVC Help
Powered by ViewVC 1.1.30