wsjtx/wsjtx.spec

343 lines
10 KiB
RPMSpec
Raw Permalink Normal View History

2021-02-03 13:25:50 +00:00
#global rctag rc4
2021-10-25 17:40:14 +00:00
Name: wsjtx
2023-01-19 23:04:59 +00:00
Version: 2.6.1
Release: 2.rvre0%{?dist}
2021-10-25 17:40:14 +00:00
Summary: Weak Signal communication by K1JT
License: GPLv3+
2019-02-25 16:21:29 +00:00
2021-10-25 17:40:14 +00:00
URL: http://physics.princeton.edu/pulsar/k1jt/wsjtx.html
2023-01-19 23:04:59 +00:00
Source0: https://sourceforge.net/projects/wsjt/files/%{name}-%{version}%{?rctag:-%{rctag}}/%{name}-%{version}%{?rctag:-%{rctag}}.tgz
2021-10-25 17:40:14 +00:00
Source100: wsjtx.appdata.xml
2018-11-20 17:53:30 +00:00
2021-02-03 13:25:50 +00:00
BuildRequires: cmake
BuildRequires: dos2unix
BuildRequires: tar
BuildRequires: gcc-c++
BuildRequires: gcc-gfortran
2020-08-05 09:15:35 +00:00
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-linguist
BuildRequires: qt5-qtserialport-devel
BuildRequires: qt5-qtmultimedia-devel
2021-02-03 13:25:50 +00:00
BuildRequires: desktop-file-utils
BuildRequires: hamlib-devel
BuildRequires: fftw-devel
BuildRequires: libusbx-devel
2021-10-18 16:49:44 +00:00
BuildRequires: systemd-devel
2021-02-03 13:25:50 +00:00
%if 0%{?rhel}
BuildRequires: boost169-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: portaudio-devel
2020-06-22 17:18:16 +00:00
%if 0%{?fedora}
2021-02-03 13:25:50 +00:00
BuildRequires: asciidoc
BuildRequires: rubygem-asciidoctor
2020-08-05 09:15:35 +00:00
BuildRequires: libappstream-glib
2020-06-22 17:18:16 +00:00
%endif
%description
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.
%prep
2018-12-10 15:14:01 +00:00
%setup -n %{name}-%{version}%{?rctag:-%{rctag}}
# remove bundled hamlib
2020-08-05 09:15:35 +00:00
rm -f src/hamlib*.tgz* src/hamlib*.tar.gz*
tar -xzf src/%{name}.tgz
# remove archive
rm -f src/wsjtx.tgz*
2020-08-05 09:15:35 +00:00
cd %{name}
2021-02-03 13:25:50 +00:00
%if ! 0%{?rhel} < 8
2018-12-10 15:14:01 +00:00
# remove bundled boost. EL 7 is not required version.
rm -rf boost
2018-12-10 15:14:01 +00:00
%endif
# convert CR + LF to LF
2021-02-03 13:25:50 +00:00
dos2unix *.ui *.iss *.txt
%build
2020-06-30 19:33:19 +00:00
# The fortran code in this package is not type safe and will thus not work
# with LTO. Additionally there are numerous bogus strncat calls that also
# need to be fixed for this package to work with LTO
%define _lto_cflags %{nil}
# Workaround for build with gcc-10, problem reported upstream
export CFLAGS="%{optflags} -fcommon"
export LDFLAGS="%{?__global_ldflags}"
# workaround for hamlib check, i.e. for hamlib_LIBRARY_DIRS not to be empty
export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
2020-08-05 09:15:35 +00:00
cd %{name}
2018-12-10 15:14:01 +00:00
%cmake -Dhamlib_STATIC=FALSE \
-DBoost_NO_SYSTEM_PATHS=FALSE \
2021-02-03 13:25:50 +00:00
%if 0%{?rhel}
-DBOOST_INCLUDEDIR=%{_includedir}/boost169 \
2021-10-18 16:49:44 +00:00
-DBOOST_LIBRARYDIR=%{_libdir}/boost169 \
2020-06-22 17:18:16 +00:00
-DWSJT_GENERATE_DOCS=FALSE \
2020-08-05 09:15:35 +00:00
-DWSJT_SKIP_MANPAGES=TRUE
2018-12-10 15:14:01 +00:00
%endif
2021-02-03 13:25:50 +00:00
2020-08-05 09:15:35 +00:00
%cmake_build
%install
2020-08-05 09:15:35 +00:00
cd %{name}
%cmake_install
2023-01-19 23:04:59 +00:00
dos2unix %{buildroot}%{_datadir}/applications/message_aggregator.desktop
2018-05-16 16:31:25 +00:00
# Make sure the right style is used.
desktop-file-edit --set-key=Exec --set-value="wsjtx --style=fusion" \
%{buildroot}/%{_datadir}/applications/%{name}.desktop
# desktop files
desktop-file-validate %{buildroot}%{_datadir}/applications/wsjtx.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/message_aggregator.desktop
2021-02-03 13:25:50 +00:00
%if 0%{?fedora}
2020-06-28 20:14:43 +00:00
# appdata file
mkdir -p %{buildroot}%{_metainfodir}
install -pm 0644 %{SOURCE100} %{buildroot}%{_metainfodir}/
2021-02-03 13:25:50 +00:00
%endif
2020-06-28 20:14:43 +00:00
# fix docs
install -p -m 0644 -t %{buildroot}%{_datadir}/doc/%{name} GUIcontrols.txt jt9.txt \
2021-02-03 13:25:50 +00:00
v1.7_Features.txt wsjtx_changelog.txt
2023-01-19 23:04:59 +00:00
# drop wsjtx hamlib bins
rm -f %{buildroot}%{_bindir}/rigctl*-wsjtx
%if 0%{?fedora}
2020-06-28 20:14:43 +00:00
%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
%endif
2020-06-28 20:14:43 +00:00
%files
%license COPYING
%doc %{_datadir}/doc/%{name}
2023-01-19 23:04:59 +00:00
%{_bindir}/echosim
%{_bindir}/fcal
%{_bindir}/fmeasure
%{_bindir}/fmtave
2021-02-03 13:25:50 +00:00
%{_bindir}/fst4sim
%{_bindir}/jt4code
%{_bindir}/jt65code
%{_bindir}/jt9
%{_bindir}/jt9code
%{_bindir}/ft8code
%{_bindir}/message_aggregator
%{_bindir}/msk144code
2021-05-24 23:15:19 +00:00
%{_bindir}/q65sim
2021-10-18 16:49:44 +00:00
%{_bindir}/q65code
%{_bindir}/udp_daemon
%{_bindir}/wsjtx
2021-02-03 13:25:50 +00:00
%{_bindir}/wsjtx_app_version
%{_bindir}/wsprd
2020-06-22 17:18:16 +00:00
%{?fedora:%{_mandir}/man1/*.1.gz}
2020-06-28 20:14:43 +00:00
%{?fedora:%{_metainfodir}/*.xml}
%{_datadir}/applications/wsjtx.desktop
%{_datadir}/applications/message_aggregator.desktop
%{_datadir}/pixmaps/wsjtx_icon.png
%{_datadir}/%{name}
%changelog
* Wed Jan 10 2024 David Abdurachmanov <davidlt@rivosinc.com> - 2.6.1-2.rvre0
- Rebuilt for Fedora/RISCV (riscv64)
2023-02-20 22:20:07 +00:00
* Mon Feb 20 2023 Jonathan Wakely <jwakely@redhat.com> - 2.6.1-2
- Rebuilt for Boost 1.81
2023-01-19 23:04:59 +00:00
* Thu Jan 19 2023 Richard Shaw <hobbes1069@gmail.com> - 2.6.1-1
- Update to 2.6.0.
2022-11-07 23:08:52 +00:00
* Mon Nov 07 2022 Richard Shaw <hobbes1069@gmail.com> - 2.5.4-5
- Rebuild for updated hamlib 4.5.
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-05-04 09:42:41 +00:00
* Wed May 04 2022 Thomas Rodgers <trodgers@redhat.com> - 2.5.4-3
- Rebuilt for Boost 1.78
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2022-01-03 18:37:01 +00:00
* Mon Jan 03 2022 Richard Shaw <hobbes1069@gmail.com> - 2.5.4-1
- Update to 2.5.4.
2021-12-23 22:45:53 +00:00
* Thu Dec 23 2021 Richard Shaw <hobbes1069@gmail.com> - 2.5.3-2
- Rebuild for hamlib 4.4.
2021-12-23 21:28:28 +00:00
* Thu Dec 23 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.5.3-1
- New version
Resolves: rhbz#2034707
2021-12-23 18:41:30 +00:00
* Thu Dec 23 2021 Richard Shaw <hobbes1069@gmail.com> - 2.5.2-2
- 36-build-side-49086
2021-11-29 20:12:14 +00:00
* Mon Nov 29 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.5.2-1
- New version
Resolves: rhbz#2020399
2021-10-25 17:40:14 +00:00
* Mon Oct 25 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.5.1-1
- New version
Resolves: rhbz#2016506
2021-10-18 16:49:44 +00:00
* Wed Oct 13 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2.5.0-1
- New version
Resolves: rhbz#2008230
2021-10-12 01:30:07 +00:00
* Tue Oct 12 2021 Richard Shaw <hobbes1069@gmail.com> - 2.4.0-5
- Rebuild for hamlib 4.3.1.
2021-08-07 03:21:06 +00:00
* Sat Aug 07 2021 Jonathan Wakely <jwakely@redhat.com> - 2.4.0-4
- Rebuilt for Boost 1.76
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-05-30 13:48:18 +00:00
* Sun May 30 2021 Richard Shaw <hobbes1069@gmail.com> - 2.4.0-2
- Rebuild for hamlib 4.2.
2021-05-24 23:15:19 +00:00
* Mon May 24 2021 Richard Shaw <hobbes1069@gmail.com> - 2.4.0-1
- Update to 2.4.0.
* Tue Mar 30 2021 Jonathan Wakely <jwakely@redhat.com> - 2.3.1-2
- Rebuilt for removed libstdc++ symbol (#1937698)
2021-03-26 16:33:13 +00:00
* Fri Mar 26 2021 Richard Shaw <hobbes1069@gmail.com> - 2.3.1-1
- Update to 2.3.1.
2021-02-03 13:25:50 +00:00
* Wed Feb 03 2021 Richard Shaw <hobbes1069@gmail.com> - 2.3.0-1
- Update to 2.3.0 final.
2021-02-02 13:48:18 +00:00
* Tue Feb 02 2021 Richard Shaw <hobbes1069@gmail.com> - 2.2.2-8
- Rebuild for hamlib 4.1.
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2021-02-03 13:25:50 +00:00
2021-01-01 18:45:04 +00:00
* Fri Jan 01 2021 Richard Shaw <hobbes1069@gmail.com> - 2.2.2-6
- Rebuilt for hamlib 4.0 release.
2020-08-05 09:15:35 +00:00
* Wed Aug 5 2020 Jaroslav Škarvada <jskarvad@redhat.com> - 2.2.2-5
- Fixed FTBFS
Resolves: rhbz#1865629
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-06-30 19:33:19 +00:00
* Tue Jun 30 2020 Jeff Law <law@redhat.com> - 2.2.2-2
- Disable LTO
2020-06-22 16:11:32 +00:00
* Mon Jun 22 2020 Richard Shaw <hobbes1069@gmail.com> - 2.2.2-1
- Update to 2.2.2.
2020-06-06 22:56:53 +00:00
* Sat Jun 06 2020 Richard Shaw <hobbes1069@gmail.com> - 2.2.1-1
- Update to 2.2.1.
2020-06-02 21:16:29 +00:00
* Tue Jun 02 2020 Richard Shaw <hobbes1069@gmail.com> - 2.2.0-1
- Update to 2.2.0.
2020-03-31 15:49:20 +00:00
* Tue Mar 31 2020 Richard Shaw <hobbes1069@gmail.com> - 2.1.2-4
- Rebuilt with hamlib 4.0.
* Mon Feb 10 2020 Jaroslav Škarvada <jskarvad@redhat.com> - 2.1.2-3
- Fixed FTBFS with gcc-10
Resolves: rhbz#1800262
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-11-26 18:52:17 +00:00
* Tue Nov 26 2019 Richard Shaw <hobbes1069@gmail.com> - 2.1.2-1
- Update to 2.1.2.
2019-11-26 03:03:04 +00:00
* Tue Nov 26 2019 Richard Shaw <hobbes1069@gmail.com> - 2.1.1-1
- Upate to 2.2.1.
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-07-15 16:22:59 +00:00
* Mon Jul 15 2019 Richard Shaw <hobbes1069@gmail.com> - 2.1.0-1
- Update to 2.1.0.
2019-02-25 16:21:29 +00:00
* Mon Feb 25 2019 Richard Shaw <hobbes1069@gmail.com> - 2.0.1-1
- Update to 2.0.1.
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-8.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2018-12-10 15:14:01 +00:00
* Mon Dec 10 2018 Richard Shaw <hobbes1069@gmail.com> - 2.0.0-8
- Update to 2.0.0 GA.
2018-09-28 15:12:30 +00:00
* Fri Sep 28 2018 Richard Shaw <hobbes1069@gmail.com> - 1.9.1-2
- Rebuild for hamlib 3.3.
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-05-31 14:06:29 +00:00
* Thu May 31 2018 Richard Shaw <hobbes1069@gmail.com> - 1.9.1-1
- Update to 1.9.1.
- Update compile patch to deal with qt5_use_modules no longer being available in
rawhide/f29.
2018-05-31 14:06:29 +00:00
* Tue May 29 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 1.9.0-1
- New version
- Dropped gcc-8.0.1-compile-fix patch (not needed)
2018-05-02 09:18:09 +00:00
* Wed May 2 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 1.9.0-0.3.rc4
- New version
- De-fuzzified patches
* Wed Mar 21 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 1.9.0-0.2.rc3
- New version
- Updated gcc-8.0.1-compile-fix patch
* Fri Mar 16 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 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 <releng@fedoraproject.org> - 1.8.0-3.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-31 09:37:50 +00:00
* Wed Jan 31 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-3
- Rebuilt for new fortran
* Fri Jan 19 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-2
- Do not force non-executable stack
Resolves: rhbz#1535987
Resolves: rhbz#1523446
* Mon Jan 15 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-1
- New version
Resolves: rhbz#1534099
- De-fuzzified compile-fix patch
* Fri Sep 8 2017 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-0.3.rc2
- Dropped rigctl*-wsjtx (hamlib copy)
* Sun Sep 3 2017 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-0.2.rc2
- New version
* Fri Sep 1 2017 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-0.1.rc1
- Initial version