7220d1
%global _hardened_build 1
297ed8
d3aef4
Name:           fldigi
5f1301
Version:        3.23.08
5f1301
Release:        1%{?prerel:.%{prerel}}%{?dist}
d3aef4
Summary:        Digital modem program for Linux
d3aef4
License:        GPLv3+  
e30c9d
d3aef4
URL:            http://www.w1hkj.com/Fldigi.html
d3aef4
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}%{?prerel}.tar.gz
d3aef4
Source1:        http://downloads.sourceforge.net/%{name}/%{name}-help.pdf
c73222
Source100:      fldigi.appdata.xml
f67f69
d3aef4
BuildRequires:  hamlib-devel
d3aef4
BuildRequires:  fltk-devel >= 1.3
b69a58
%if 0%{?rhel}
b69a58
BuildRequires:  fltk-static libXcursor-devel
b69a58
%endif
d3aef4
BuildRequires:  libjpeg-devel
d3aef4
BuildRequires:  libpng-devel
d3aef4
BuildRequires:  portaudio-devel >= 19-4
d3aef4
BuildRequires:  libsndfile-devel
d3aef4
BuildRequires:  desktop-file-utils
d3aef4
BuildRequires:  libsamplerate-devel
d3aef4
BuildRequires:  pulseaudio-libs-devel
d3aef4
BuildRequires:  gettext
d3aef4
BuildRequires:  libXinerama-devel
b518aa
b518aa
#BuildRequires:  flxmlrpc-devel >= 0.1.0
5f5a74
2b2fb1
%if 0%{?fedora}
5afeb2
# For appstream-util
5afeb2
BuildRequires:  libappstream-glib
2b2fb1
%endif
5afeb2
d3aef4
Provides:       flarq = %{version}-%{release}
00b1bd
00b1bd
%description
4b7b37
Fldigi is a modem program which supports most of the digital modes used by 
5f5a74
ham radio operators today. You can also use the program for calibrating your 
5f5a74
sound card to WWV or doing a frequency measurement test. The program also comes 
00b1bd
with a CW decoder. fldigi is written with the help of the Fast Light Toolkit X 
4b7b37
GUI. Fldigi is a fast moving project many added features with each update.
00b1bd
4b7b37
Flarq (Fast Light Automatic Repeat Request) is a file transfer application
ccc4d1
that is based on the ARQ specification developed by Paul Schmidt, K9PS.
ccc4d1
It is capable of transmitting and receiving frames of ARQ data via fldigi.
886409
e30c9d
e30c9d
%package doc
e30c9d
Summary:      PDF User Manual for %{name}
e30c9d
Requires:     %{name} = %{version}-%{release}
e30c9d
BuildArch:    noarch
e30c9d
e30c9d
%description doc
e30c9d
PDF User Manual for %{name}.
e30c9d
e30c9d
00b1bd
%prep
297ed8
%setup -q -n %{name}-%{version}%{?prerel}
00b1bd
2a6d57
# Remove bundled xmlrpc library
b518aa
#rm -rf src/xmlrpcpp
2a6d57
2a6d57
# Fix header references to xmlrpcpp
b518aa
#find ./ -type f -exec sed -i "s/xmlrpcpp\//flxmlrpc\//g" {} \;
bd473d
594ad9
00b1bd
%build
b69a58
%configure %{?rhel:--enable-static}
d72fc8
make %{?_smp_mflags} CFLAGS="%{optflags}" LIBS="-lm -lX11 -lpthread" V=1
00b1bd
e30c9d
00b1bd
%install
ea1219
%make_install
ea1219
b518aa
# Add keywords to desktop file for gnome-shell and software center.
b518aa
echo "Keywords=modem;psk;rtty;cw;fsq;fsk;" >> %{buildroot}%{_datadir}/applications/%{name}.desktop
b518aa
ea1219
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
ea1219
desktop-file-validate %{buildroot}%{_datadir}/applications/flarq.desktop
886409
c73222
# Add fldigi-psk.png as it's in PNG format and higher resolution than the XPM.
c73222
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/
c73222
install -pm 0644 data/fldigi-psk.png \
c73222
    %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
cbf28a
389494
%find_lang %{name}
00b1bd
d3871a
# Install user manual.
d3871a
mkdir -p %{buildroot}%{_docdir}/%{name}
d3871a
install -pm 0644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}/
f32fd2
c73222
%if 0%{?fedora}
c73222
# Install and validate appdata file
c73222
mkdir -p %{buildroot}%{_datadir}/appdata
c73222
install %{SOURCE100} -pm 0644 %{buildroot}%{_datadir}/appdata/
c73222
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml
c73222
%endif
c73222
c73222
%post
c73222
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
c73222
c73222
%postun
c73222
if [ $1 -eq 0 ] ; then
c73222
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
c73222
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c73222
fi
c73222
c73222
%posttrans
c73222
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
c73222
c73222
389494
%files -f %{name}.lang
2b2fb1
%{!?_licensedir:%global license %doc}
9f8ba7
%license COPYING
9f8ba7
%doc AUTHORS ChangeLog README NEWS
00b1bd
%{_bindir}/*
c73222
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
c73222
%{_datadir}/pixmaps/%{name}.xpm 
886409
%{_datadir}/pixmaps/flarq.xpm 
f32fd2
%{_mandir}/man1/%{name}.1.gz
5f5a74
%{_mandir}/man1/flarq.1.gz
c73222
%{?fedora:%{_datadir}/appdata/fldigi.appdata.xml}
d3f248
%{_datadir}/applications/%{name}.desktop
d3f248
%{_datadir}/applications/flarq.desktop
cbf28a
%{_datadir}/%{name}/
d3aef4
%exclude %{_docdir}/%{name}/fldigi-help.pdf
5f5a74
e30c9d
%files doc
d3aef4
%{_docdir}/%{name}/fldigi-help.pdf
e30c9d
2a6fde
7d6412
%changelog
5f1301
* Wed Feb 24 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.08-1
5f1301
- Update to latest upstream release.
5f1301
d98d77
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.23.07-3
d98d77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d98d77
1e8257
* Tue Feb 02 2016 Jonathan Wakely <jwakely@redhat.com> - 3.23.07-2
1e8257
- Patched for C++11 compatibility.
1e8257
b518aa
* Fri Jan 22 2016 Richard Shaw <hobbes1069@gmail.com> - 3.23.07-1
b518aa
- Update to latest upstream release.
b518aa
d3aef4
* Wed Dec  2 2015 Richard Shaw <hobbes1069@gmail.com> - 3.23.06-1
d3aef4
- Update to latest upstream release.
d3aef4
2b2fb1
* Thu Nov 19 2015 Richard Shaw <hobbes1069@gmail.com> - 3.23.05-1
2b2fb1
- Update to latest upstream release.
2b2fb1
588d60
* Fri Oct 16 2015 Richard Shaw <hobbes1069@gmail.com> - 3.23.04-1
588d60
- Update to latest upstream release.
588d60
1be62b
* Wed Sep 30 2015 Richard Shaw <hobbes1069@gmail.com> - 3.23.03-1
c73222
- Update to latest upstream release.
c73222
Richard Hughes bdee92
* Fri Sep 18 2015 Richard Hughes <rhughes@redhat.com> - 3.22.13-2
Richard Hughes bdee92
- Remove now-unused AppData file
Richard Hughes bdee92
9afd67
* Tue Jul 21 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.13-1
9afd67
- Update to latest upstream release.
9afd67
301240
* Sat Jul 18 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.12-1
301240
- Update to latest upstream release.
301240
7220d1
* Wed Jul 15 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.11-1
7220d1
- Update to latest upstream release.
7220d1
f78ed0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.22.10-2
f78ed0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f78ed0
2a6d57
* Mon Jun  1 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.10-1
2a6d57
- Update to latest upstream release.
2a6d57
cbf28a
* Tue May  5 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.08-1
cbf28a
- Update to latest upstream release.
cbf28a
- Update build requirements to use separate xmlrpc library.
cbf28a
8813c4
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.22.07-2
8813c4
- Rebuilt for GCC 5 C++11 ABI change
8813c4
9f8ba7
* Thu Apr  2 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.07-1
9f8ba7
- Update to latest upstream release.
9f8ba7
Richard Hughes 7b3ee9
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 3.22.06-2
Richard Hughes 7b3ee9
- Add an AppData file for the software center
Richard Hughes 7b3ee9
cbf28a
* Sun Mar 22 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.06-1
0b04af
- Update to latest upstream release.
0b04af
d72fc8
* Tue Jan 13 2015 Richard Shaw <hobbes1069@gmail.com> - 3.22.05-1
d72fc8
- Update to latest upstream release.
d72fc8
17ef82
* Fri Dec 26 2014 Richard Shaw <hobbes1069@gmail.com> - 3.22.04-1
17ef82
- Update to latest upstream release.
17ef82
d3871a
* Thu Dec 25 2014 Richard Shaw <hobbes1069@gmail.com> - 3.22.03-1
d3871a
- Update to latest upstream release.
d3871a
d3871a
* Mon Dec  1 2014 Richard Shaw <hobbes1069@gmail.com> - 3.22.02-1
d3871a
- Update to latest upstream release.
d3871a
af6064
* Mon Oct 20 2014 Richard Shaw <hobbes1069@gmail.com> - 3.22.01-1
af6064
- Update to latest upstream release.
af6064
eb6747
* Thu Oct 16 2014 Richard Shaw <hobbes1069@gmail.com> - 3.22.00-1
eb6747
- Update to latest upstream release.
eb6747
eb6747
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
c84673
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c84673
Rex Dieter c4d0bd
* Thu Jul 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 3.21.83-2
Rex Dieter c4d0bd
- rebuild (for pulseaudio, bug #1117683)
Rex Dieter c4d0bd
b69a58
* Sun Jun 29 2014 Richard Shaw <hobbes1069@gmail.com> - 3.21.83-1
b69a58
- Update to latest upstream release.
b69a58
0deee9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21.82-2
0deee9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0deee9
83ceff
* Wed Apr 30 2014 Richard Shaw <hobbes1069@gmail.com> - 3.21.82-1
83ceff
- Update to latest upstream release.
83ceff
297ed8
* Sun Mar 30 2014 Richard Shaw <hobbes1069@gmail.com> - 3.21.81-1
297ed8
- Update to latest upstream release.
297ed8
297ed8
* Tue Mar 11 2014 Richard Shaw <hobbes1069@gmail.com> - 3.21-79-1
297ed8
- Update to latest upstream release.
297ed8
297ed8
* Tue Mar  4 2014 Richard Shaw <hobbes1069@gmail.com> - 3.21.78-1
297ed8
- Update to latest upstream release.
297ed8
297ed8
* Wed Oct 30 2013 Richard Shaw <hobbes1069@gmail.com> - 3.21.77-1
24f773
- Update to latest bugfix release.
24f773
b9caf0
* Thu Sep 12 2013 Richard Shaw <hobbes1069@gmail.com> - 3.21.76-1
b9caf0
- Update to latest bugfix release.
b9caf0
ea1219
* Mon Sep  2 2013 Richard Shaw <hobbes1069@gmail.com> - 3.21.75-1
ea1219
- Update to latest bugfix release.
ea1219
d3f248
* Tue Aug 27 2013 Richard Shaw <hobbes1069@gmail.com> - 3.21.74-1
d3f248
- Update to latest bugfix release.
d3f248
84c0db
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21.68-3
84c0db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
84c0db
520c78
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 3.21.68-2
520c78
- Perl 5.18 rebuild
520c78
b9caf0
* Sat Mar 16 2013 Richard Shaw <hobbes1069@gmail.com> - 3.21.68-1
e30c9d
- Update to latest bugfix release.
e30c9d
dc17f7
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21.49-2
dc17f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
dc17f7
7d6412
* Fri Aug 3 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.49-1
7d6412
- Upstream upddate to 3.21.49
e30c9d
Randall Berry 2995f2
* Mon May 14 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.41-1
Randall Berry 2995f2
- Upstream upddate to 3.21.41
Randall Berry 2995f2
- Fix deps for F18/Rawhide
e30c9d
Randall Berry 2995f2
* Sat Jan 28 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.37-2
Randall Berry 2995f2
- Upstream upddate to 3.21.37
Randall Berry 2995f2
- Remove patches fixed upstream
Randall Berry 2995f2
- Correct source URL
e30c9d
Randall Berry 422acc
* Sat Jan 28 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.37-1
Randall Berry 422acc
- Upstream upddate to 3.21.37
e30c9d
db151c
* Sun Jan 15 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.35-2
db151c
- Add patches for testing error correction
db151c
- Update rawhide builds
e30c9d
db151c
* Sun Jan 15 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.35-1
db151c
- Upstream upddate to 3.21.35
db151c
- Rebuild against gcc 4.7
e30c9d
b2f10c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.21.34-3
b2f10c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e30c9d
594ad9
* Mon Jan 2 2012 Randall J. Berry, N3LRX <dp67@fedoraproject.org> - 3.21.34-2
594ad9
- Test Build Against FLTK 1.3