3507fc8
#global prerel 06
297ed87
d3aef49
Name:           fldigi
9c4ba30
Version:        3.23.20
17d3f07
%if 0%{?prerel}
9c4ba30
Release:        1%{?dist}
17d3f07
%else
9c4ba30
Release:        1%{?dist}
17d3f07
%endif
d3aef49
Summary:        Digital modem program for Linux
d3aef49
License:        GPLv3+  
e30c9dd
d3aef49
URL:            http://www.w1hkj.com/Fldigi.html
17d3f07
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}%{?prerel:.%{prerel}}.tar.gz
d3aef49
Source1:        http://downloads.sourceforge.net/%{name}/%{name}-help.pdf
c732223
Source100:      fldigi.appdata.xml
f67f699
d3aef49
BuildRequires:  hamlib-devel
d3aef49
BuildRequires:  fltk-devel >= 1.3
b69a58f
%if 0%{?rhel}
b69a58f
BuildRequires:  fltk-static libXcursor-devel
b69a58f
%endif
d3aef49
BuildRequires:  libjpeg-devel
d3aef49
BuildRequires:  libpng-devel
d3aef49
BuildRequires:  portaudio-devel >= 19-4
d3aef49
BuildRequires:  libsndfile-devel
d3aef49
BuildRequires:  desktop-file-utils
d3aef49
BuildRequires:  libsamplerate-devel
d3aef49
BuildRequires:  pulseaudio-libs-devel
d3aef49
BuildRequires:  gettext
d3aef49
BuildRequires:  libXinerama-devel
b518aa8
b518aa8
#BuildRequires:  flxmlrpc-devel >= 0.1.0
5f5a749
2b2fb13
%if 0%{?fedora}
5afeb29
# For appstream-util
5afeb29
BuildRequires:  libappstream-glib
2b2fb13
%endif
5afeb29
dbac46b
%{?fedora:Recommends:     trustedqsl}
d04d129
d3aef49
Provides:       flarq = %{version}-%{release}
00b1bd4
00b1bd4
%description
4b7b37d
Fldigi is a modem program which supports most of the digital modes used by 
5f5a749
ham radio operators today. You can also use the program for calibrating your 
5f5a749
sound card to WWV or doing a frequency measurement test. The program also comes 
00b1bd4
with a CW decoder. fldigi is written with the help of the Fast Light Toolkit X 
4b7b37d
GUI. Fldigi is a fast moving project many added features with each update.
00b1bd4
4b7b37d
Flarq (Fast Light Automatic Repeat Request) is a file transfer application
ccc4d14
that is based on the ARQ specification developed by Paul Schmidt, K9PS.
ccc4d14
It is capable of transmitting and receiving frames of ARQ data via fldigi.
886409e
e30c9dd
e30c9dd
%package doc
e30c9dd
Summary:      PDF User Manual for %{name}
e30c9dd
Requires:     %{name} = %{version}-%{release}
e30c9dd
BuildArch:    noarch
e30c9dd
e30c9dd
%description doc
e30c9dd
PDF User Manual for %{name}.
e30c9dd
e30c9dd
00b1bd4
%prep
17d3f07
%setup -q -n %{name}-%{version}%{?prerel:.%{prerel}}
00b1bd4
2a6d578
# Remove bundled xmlrpc library
b518aa8
#rm -rf src/xmlrpcpp
2a6d578
2a6d578
# Fix header references to xmlrpcpp
b518aa8
#find ./ -type f -exec sed -i "s/xmlrpcpp\//flxmlrpc\//g" {} \;
bd473df
594ad9b
00b1bd4
%build
b69a58f
%configure %{?rhel:--enable-static}
d72fc8a
make %{?_smp_mflags} CFLAGS="%{optflags}" LIBS="-lm -lX11 -lpthread" V=1
00b1bd4
e30c9dd
00b1bd4
%install
ea1219a
%make_install
ea1219a
b518aa8
# Add keywords to desktop file for gnome-shell and software center.
b518aa8
echo "Keywords=modem;psk;rtty;cw;fsq;fsk;" >> %{buildroot}%{_datadir}/applications/%{name}.desktop
b518aa8
ea1219a
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
ea1219a
desktop-file-validate %{buildroot}%{_datadir}/applications/flarq.desktop
886409e
c732223
# Add fldigi-psk.png as it's in PNG format and higher resolution than the XPM.
c732223
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/
c732223
install -pm 0644 data/fldigi-psk.png \
c732223
    %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
cbf28a1
3894944
%find_lang %{name}
00b1bd4
d3871a5
# Install user manual.
d3871a5
mkdir -p %{buildroot}%{_docdir}/%{name}
d3871a5
install -pm 0644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}/
f32fd24
c732223
%if 0%{?fedora}
c732223
# Install and validate appdata file
c732223
mkdir -p %{buildroot}%{_datadir}/appdata
c732223
install %{SOURCE100} -pm 0644 %{buildroot}%{_datadir}/appdata/
c732223
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml
c732223
%endif
c732223
c732223
%post
c732223
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
c732223
c732223
%postun
c732223
if [ $1 -eq 0 ] ; then
c732223
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
c732223
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c732223
fi
c732223
c732223
%posttrans
c732223
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c732223
c732223
3894944
%files -f %{name}.lang
9f8ba79
%license COPYING
9f8ba79
%doc AUTHORS ChangeLog README NEWS
00b1bd4
%{_bindir}/*
c732223
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
c732223
%{_datadir}/pixmaps/%{name}.xpm 
886409e
%{_datadir}/pixmaps/flarq.xpm 
f32fd24
%{_mandir}/man1/%{name}.1.gz
5f5a749
%{_mandir}/man1/flarq.1.gz
c732223
%{?fedora:%{_datadir}/appdata/fldigi.appdata.xml}
d3f248b
%{_datadir}/applications/%{name}.desktop
d3f248b
%{_datadir}/applications/flarq.desktop
cbf28a1
%{_datadir}/%{name}/
d3aef49
%exclude %{_docdir}/%{name}/fldigi-help.pdf
5f5a749
e30c9dd
%files doc
d3aef49
%{_docdir}/%{name}/fldigi-help.pdf
e30c9dd
2a6fde1
7d64121
%changelog
9c4ba30
* Fri Jan  6 2017 Richard Shaw <hobbes1069@gmail.com> - 3.23.20-1
9c4ba30
- Update to latest upstream release.
8663c89
8448cd2
* Fri Dec 23 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.19-1
8448cd2
- Update to latest upstream release.
8448cd2
2d83545
* Mon Dec 12 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.18-1
2d83545
- Update to latest upstream release.
2d83545
2408d42
* Tue Dec 06 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.17-1
2408d42
- Update to latest upstream release.
2408d42
d04d129
* Fri Nov 11 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.16-1
d04d129
- Update to latest upstream release.
d04d129
- Fldigi can now automatically upload contacts to LoTW through trustedqsl.
d04d129
c3468c7
* Sun Oct 16 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.15-1
c3468c7
- Update to latest upstream release.
c3468c7
cf2cf80
* Sun Sep 18 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.14-1
cf2cf80
- Update to latest upstream release.
cf2cf80
cf2cf80
* Sat Aug  6 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.13-1
cf2cf80
- Update to latest upstream release.
cf2cf80
c3468c7
* Mon Jun 29 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.12-1
816640d
- Update to latest upstream release.
816640d
816640d
* Sun Jun 12 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.11-1
816640d
- Update to latest upstream release.
816640d
17d3f07
* Sun Apr  3 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.09-1
17d3f07
- Update to latest upstream release.
17d3f07
5f1301b
* Wed Feb 24 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.08-1
5f1301b
- Update to latest upstream release.
5f1301b
d98d773
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.23.07-3
d98d773
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d98d773
1e8257e
* Tue Feb 02 2016 Jonathan Wakely <jwakely@redhat.com> - 3.23.07-2
1e8257e
- Patched for C++11 compatibility.
1e8257e
b518aa8
* Fri Jan 22 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.07-1
b518aa8
- Update to latest upstream release.
b518aa8
d3aef49
* Wed Dec  2 2015 Richard Shaw <hobbes1069@gmail.com> - 3.23.06-1
d3aef49
- Update to latest upstream release.
d3aef49
2b2fb13
* Thu Nov 19 2015 Richard Shaw <hobbes1069@gmail.com> - 3.23.05-1
2b2fb13
- Update to latest upstream release.
2b2fb13
588d609
* Fri Oct 16 2015 Richard Shaw <hobbes1069@gmail.com> - 3.23.04-1
588d609
- Update to latest upstream release.
588d609
1be62bf
* Wed Sep 30 2015 Richard Shaw <hobbes1069@gmail.com> - 3.23.03-1
c732223
- Update to latest upstream release.
c732223
Richard Hughes bdee92a
* Fri Sep 18 2015 Richard Hughes <rhughes@redhat.com> - 3.22.13-2
Richard Hughes bdee92a
- Remove now-unused AppData file
Richard Hughes bdee92a
9afd672
* Tue Jul 21 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.13-1
9afd672
- Update to latest upstream release.
9afd672
301240d
* Sat Jul 18 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.12-1
301240d
- Update to latest upstream release.
301240d
7220d1e
* Wed Jul 15 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.11-1
7220d1e
- Update to latest upstream release.
7220d1e
f78ed02
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.22.10-2
f78ed02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f78ed02
2a6d578
* Mon Jun  1 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.10-1
2a6d578
- Update to latest upstream release.
2a6d578
cbf28a1
* Tue May  5 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.08-1
cbf28a1
- Update to latest upstream release.
cbf28a1
- Update build requirements to use separate xmlrpc library.
cbf28a1
8813c4f
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.22.07-2
8813c4f
- Rebuilt for GCC 5 C++11 ABI change
8813c4f
9f8ba79
* Thu Apr  2 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.07-1
9f8ba79
- Update to latest upstream release.
9f8ba79
Richard Hughes 7b3ee95
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 3.22.06-2
Richard Hughes 7b3ee95
- Add an AppData file for the software center
Richard Hughes 7b3ee95
cbf28a1
* Sun Mar 22 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.06-1
0b04af6
- Update to latest upstream release.
0b04af6
d72fc8a
* Tue Jan 13 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.05-1
d72fc8a
- Update to latest upstream release.
d72fc8a
17ef824
* Fri Dec 26 2014 Richard Shaw <hobbes1069@gmail.com> - 3.22.04-1
17ef824
- Update to latest upstream release.
17ef824
d3871a5
* Thu Dec 25 2014 Richard Shaw <hobbes1069@gmail.com> - 3.22.03-1
d3871a5
- Update to latest upstream release.
d3871a5
d3871a5
* Mon Dec  1 2014 Richard Shaw <hobbes1069@gmail.com> - 3.22.02-1
d3871a5
- Update to latest upstream release.
d3871a5
af60642
* Mon Oct 20 2014 Richard Shaw <hobbes1069@gmail.com> - 3.22.01-1
af60642
- Update to latest upstream release.
af60642
eb67477
* Thu Oct 16 2014 Richard Shaw <hobbes1069@gmail.com> - 3.22.00-1
eb67477
- Update to latest upstream release.
eb67477
eb67477
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
c84673d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c84673d
Rex Dieter c4d0bd7
* Thu Jul 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 3.21.83-2
Rex Dieter c4d0bd7
- rebuild (for pulseaudio, bug #1117683)
Rex Dieter c4d0bd7
b69a58f
* Sun Jun 29 2014 Richard Shaw <hobbes1069@gmail.com> - 3.21.83-1
b69a58f
- Update to latest upstream release.
b69a58f
0deee90
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21.82-2
0deee90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0deee90
83ceffd
* Wed Apr 30 2014 Richard Shaw <hobbes1069@gmail.com> - 3.21.82-1
83ceffd
- Update to latest upstream release.
83ceffd
297ed87
* Sun Mar 30 2014 Richard Shaw <hobbes1069@gmail.com> - 3.21.81-1
297ed87
- Update to latest upstream release.
297ed87
297ed87
* Tue Mar 11 2014 Richard Shaw <hobbes1069@gmail.com> - 3.21-79-1
297ed87
- Update to latest upstream release.
297ed87
297ed87
* Tue Mar  4 2014 Richard Shaw <hobbes1069@gmail.com> - 3.21.78-1
297ed87
- Update to latest upstream release.
297ed87
297ed87
* Wed Oct 30 2013 Richard Shaw <hobbes1069@gmail.com> - 3.21.77-1
24f7739
- Update to latest bugfix release.
24f7739
b9caf04
* Thu Sep 12 2013 Richard Shaw <hobbes1069@gmail.com> - 3.21.76-1
b9caf04
- Update to latest bugfix release.
b9caf04
ea1219a
* Mon Sep  2 2013 Richard Shaw <hobbes1069@gmail.com> - 3.21.75-1
ea1219a
- Update to latest bugfix release.
ea1219a
d3f248b
* Tue Aug 27 2013 Richard Shaw <hobbes1069@gmail.com> - 3.21.74-1
d3f248b
- Update to latest bugfix release.
d3f248b
84c0db7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21.68-3
84c0db7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
84c0db7
520c78d
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 3.21.68-2
520c78d
- Perl 5.18 rebuild
520c78d
b9caf04
* Sat Mar 16 2013 Richard Shaw <hobbes1069@gmail.com> - 3.21.68-1
e30c9dd
- Update to latest bugfix release.
e30c9dd
dc17f7c
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21.49-2
dc17f7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dc17f7c
7d64121
* Fri Aug 3 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.49-1
7d64121
- Upstream upddate to 3.21.49
e30c9dd
Randall Berry 2995f2b
* Mon May 14 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.41-1
Randall Berry 2995f2b
- Upstream upddate to 3.21.41
Randall Berry 2995f2b
- Fix deps for F18/Rawhide
e30c9dd
Randall Berry 2995f2b
* Sat Jan 28 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.37-2
Randall Berry 2995f2b
- Upstream upddate to 3.21.37
Randall Berry 2995f2b
- Remove patches fixed upstream
Randall Berry 2995f2b
- Correct source URL
e30c9dd
Randall Berry 422acc4
* Sat Jan 28 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.37-1
Randall Berry 422acc4
- Upstream upddate to 3.21.37
e30c9dd
db151ce
* Sun Jan 15 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.35-2
db151ce
- Add patches for testing error correction
db151ce
- Update rawhide builds
e30c9dd
db151ce
* Sun Jan 15 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.35-1
db151ce
- Upstream upddate to 3.21.35
db151ce
- Rebuild against gcc 4.7
e30c9dd
b2f10ce
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21.34-3
b2f10ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e30c9dd
594ad9b
* Mon Jan 2 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.34-2
594ad9b
- Test Build Against FLTK 1.3