Blob Blame Raw
%global rctag rc3

Name:		wsjtx
Version:	1.9.0
Release:	0.2%{?rctag:.%{rctag}}%{?dist}
Summary:	Weak Signal communication by K1JT
License:	GPLv3+
Patch0:		wsjtx-1.9.0.rc2-compile-fix.patch
# Patch sent upstream
Patch1:		wsjtx-1.9.0.rc3-gcc-8.0.1-compile-fix.patch
BuildRequires:	dos2unix, tar, cmake, gcc-c++, gcc-gfortran, qt5-devel
BuildRequires:	desktop-file-utils, hamlib-devel, fftw-devel, libusbx-devel
BuildRequires:	boost-devel, portaudio-devel, asciidoc, rubygem-asciidoctor
BuildRequires:	execstack

WSJT-X is a computer program designed to facilitate basic amateur radio
communication using very weak signals. It implements communication protocols
or "modes" called JT4, JT9, JT65, QRA64, ISCAT, MSK144, and WSPR, as well as
one called Echo for detecting and measuring your own radio signals reflected
from the Moon.

%setup -q -n %{name}-%{version}%{?rctag:-%{rctag}}

# remove bundled hamlib
rm -f src/hamlib.tgz*
tar -xzf src/%{name}.tgz

# remove archive
rm -f src/wsjtx.tgz*

%patch0 -p1 -b .compile-fix
%patch1 -p1 -b .gcc-8.0.1-compile-fix.patch

cd %{name}

# remove bundled boost
rm -rf boost

# convert CR + LF to LF
dos2unix *.ui *.iss *.rc *.txt

export CFLAGS="%{optflags}"
export LDFLAGS="%{?__global_ldflags}"
# workaround for hamlib check, i.e. for hamlib_LIBRARY_DIRS not to be empty
mkdir %{name}/build
cd %{name}/build

cd %{name}/build

# desktop files
desktop-file-validate %{buildroot}%{_datadir}/applications/wsjtx.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/message_aggregator.desktop

# fix docs
rm -f %{buildroot}%{_datadir}/doc/WSJT-X/{INSTALL,COPYING,copyright,changelog.Debian.gz}
cd ..
mv %{buildroot}%{_datadir}/doc/WSJT-X %{buildroot}%{_datadir}/doc/%{name}
install -p -m 0644 -t %{buildroot}%{_datadir}/doc/%{name} GUIcontrols.txt jt9.txt \
  mouse_commands.txt prefixes.txt shortcuts.txt v1.7_Features.txt \

%license COPYING
%doc %{_datadir}/doc/%{name}

* Wed Mar 21 2018 Jaroslav Škarvada <> - 1.9.0-0.2.rc3
- New version
- Updated gcc-8.0.1-compile-fix patch

* Fri Mar 16 2018 Jaroslav Škarvada <> - 1.9.0-0.1.rc2
- New version
- Fixed compilation with gcc-8.0.1
  Resolves: rhbz#1556544
- De-fuzzified compile-fix patch

* Fri Feb 09 2018 Fedora Release Engineering <> - 1.8.0-3.1
- Rebuilt for

* Wed Jan 31 2018 Jaroslav Škarvada <> - 1.8.0-3
- Rebuilt for new fortran

* Fri Jan 19 2018 Jaroslav Škarvada <> - 1.8.0-2
- Do not force non-executable stack
  Resolves: rhbz#1535987
  Resolves: rhbz#1523446

* Mon Jan 15 2018 Jaroslav Škarvada <> - 1.8.0-1
- New version
  Resolves: rhbz#1534099
- De-fuzzified compile-fix patch

* Fri Sep  8 2017 Jaroslav Škarvada <> - 1.8.0-0.3.rc2
- Dropped rigctl*-wsjtx (hamlib copy)

* Sun Sep  3 2017 Jaroslav Škarvada <> - 1.8.0-0.2.rc2
- New version

* Fri Sep  1 2017 Jaroslav Škarvada <> - 1.8.0-0.1.rc1
- Initial version