bd04fda
%{!?_iconsbasedir: %global _iconsbasedir %{_datadir}/icons/hicolor}
edc8b05
%{?rhel: %global cmake %cmake3}
bd04fda
bd04fda
Name:           freedv
6b1108a
Version:        1.8.4
13f579e
Release:        4%{?dist}
bd04fda
Summary:        FreeDV Digital Voice
6f9144a
License:        GPL-2.0-or-later
bd04fda
bd04fda
URL:            http://freedv.org
da100a6
Source0:        https://github.com/drowe67/freedv-gui/archive/v%{version}/%{name}-%{version}.tar.gz
d7f5934
bd04fda
Source100:      freedv.appdata.xml
bd04fda
Source101:      freedv48x48.png
bd04fda
Source102:      freedv64x64.png
bd04fda
Source103:      freedv128x128.png
bd04fda
Source104:      freedv256x256.png
bd04fda
f903b4a
BuildRequires:  cmake%{?rhel:3} gcc-c++
ef93af9
BuildRequires:  codec2-devel >= 0.8
a14f7fb
BuildRequires:  desktop-file-utils 
a14f7fb
BuildRequires:  hamlib-devel
a14f7fb
BuildRequires:  alsa-lib-devel
a14f7fb
BuildRequires:  gsm-devel
a14f7fb
BuildRequires:  libao-devel
757e0d1
BuildRequires:  lpcnetfreedv-devel
bd04fda
BuildRequires:  libsndfile-devel
bd04fda
BuildRequires:  libsamplerate-devel
a14f7fb
BuildRequires:  portaudio-devel
d7f5934
%if 0%{?fedora}
d7f5934
BuildRequires:  libappstream-glib
bd04fda
BuildRequires:  speexdsp-devel
bd04fda
%else
bd04fda
BuildRequires:  speex-devel
bd04fda
%endif
00538bd
BuildRequires:  wxGTK-devel
bd04fda
bd04fda
bd04fda
%description
bd04fda
FreeDV is a GUI application for Windows and Linux that allows any SSB radio to
bd04fda
be used for low bit rate digital voice.
bd04fda
bd04fda
Speech is compressed down to 1400 bit/s then modulated onto a 1100 Hz wide QPSK
bd04fda
signal which is sent to the Mic input of a SSB radio. On receive, the signal is
bd04fda
received by the SSB radio, then demodulated and decoded by FreeDV.
bd04fda
bd04fda
FreeDV was built by an international team of Radio Amateurs working together on
bd04fda
coding, design, user interface and testing. FreeDV is open source software,
bd04fda
released under the GNU Public License version 2.1. The FDMDV modem and Codec 2
bd04fda
Speech codec used in FreeDV are also open source.
bd04fda
bd04fda
bd04fda
%prep
17d27b0
%autosetup -p1 -n freedv-gui-%{version}
bd04fda
bd04fda
bd04fda
%build
44fb38f
export CFLAGS="%{optflags} -fPIC -pie -Wl,-z,relro -Wl,-z,now"
bd04fda
export CXXFLAGS="%{optflags} -fPIC -pie -Wl,-z,relro -Wl,-z,now"
bd04fda
export LDFLAGS="-Wl,--as-needed"
bd04fda
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
00538bd
       -DWXCONFIG="%{_bindir}/wx-config-3.2" \
00538bd
       -DWXRC="%{_bindir}/wxrc-3.2" \
bd04fda
       -DUSE_STATIC_SPEEXDSP=FALSE \
bd04fda
       ../
bd04fda
897fe29
%cmake_build
bd04fda
bd04fda
bd04fda
%install
897fe29
%cmake_install
bd04fda
bd04fda
# Install desktop file
bd04fda
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
bd04fda
d7f5934
%if 0%{?fedora}
bd04fda
# install appdata file
bd04fda
mkdir -p %{buildroot}%{_datadir}/appdata
bd04fda
install -pm 0644 %{SOURCE100} %{buildroot}%{_datadir}/appdata/
bd04fda
appstream-util validate-relax --nonet \
bd04fda
    %{buildroot}%{_datadir}/appdata/*.appdata.xml
d7f5934
%endif
bd04fda
6b1108a
# Remove manuals installed by CMake
6b1108a
rm -rf %{buildroot}%{_datadir}/freedv-gui/USER_MANUAL.*
6b1108a
bd04fda
897fe29
%if 0%{?rhel} && 0%{?rhel} < 8
bd04fda
%post
bd04fda
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
bd04fda
bd04fda
%postun
bd04fda
if [ $1 -eq 0 ] ; then
bd04fda
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
bd04fda
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
bd04fda
fi
a9851e4
%endif
bd04fda
bd04fda
bd04fda
%files
bd04fda
%license COPYING
9a3453a
%doc README.md USER_MANUAL.md
bd04fda
%{_bindir}/%{name}
d7f5934
%{?fedora:%{_datadir}/appdata/*.appdata.xml}
bd04fda
%{_datadir}/applications/%{name}.desktop
6b1108a
%{_datadir}/freedv-gui/wav/
bd04fda
%{_iconsbasedir}/*/apps/%{name}.png
bd04fda
bd04fda
bd04fda
%changelog
13f579e
* Sat Aug 05 2023 Richard Shaw <hobbes1069@gmail.com> - 1.8.4-4
13f579e
- Rebuild for codec2.
13f579e
55ef092
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-3
55ef092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
55ef092
aab994d
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.4-2
aab994d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
aab994d
6b1108a
* Mon Nov 07 2022 Richard Shaw <hobbes1069@gmail.com> - 1.8.4-1
6b1108a
- Update to 1.8.4.
6b1108a
00538bd
* Thu Aug 04 2022 Scott Talbert <swt@techie.net> - 1.6.1-7
00538bd
- Rebuild with wxWidgets 3.2
00538bd
4152c9a
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-6
4152c9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
4152c9a
d978e37
* Sat Jul 09 2022 Richard Shaw <hobbes1069@gmail.com> - 1.6.1-5
d978e37
- Rebuild for codec2 1.0.4.
d978e37
5576d1c
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-4
5576d1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
5576d1c
8e6eedc
* Thu Dec 23 2021 Richard Shaw <hobbes1069@gmail.com> - 1.6.1-3
8e6eedc
- Rebuild for hamlib 4.4.
8e6eedc
bd8ce66
* Thu Dec 23 2021 Richard Shaw <hobbes1069@gmail.com> - 1.6.1-2
bd8ce66
- 36-build-side-49086
bd8ce66
6ff8b8b
* Sun Dec 05 2021 Richard Shaw <hobbes1069@gmail.com> - 1.6.1-1
6ff8b8b
- Update to 1.6.1.
6ff8b8b
84dbaa6
* Tue Oct 12 2021 Richard Shaw <hobbes1069@gmail.com> - 1.6.0-2
84dbaa6
- Rebuild for hamlib 4.3.1.
84dbaa6
a14f7fb
* Sun Aug 08 2021 Richard Shaw <hobbes1069@gmail.com> - 1.6.0-1
a14f7fb
- Update to 1.6.0.
a14f7fb
38bf570
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-8
38bf570
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
38bf570
111d1c3
* Sun May 30 2021 Richard Shaw <hobbes1069@gmail.com> - 1.4-7
111d1c3
- Rebuild for hamlib 4.2.
111d1c3
429de5f
* Tue Feb 02 2021 Richard Shaw <hobbes1069@gmail.com> - 1.4-6
429de5f
- Rebuild for hamlib 4.1.
429de5f
cf939ef
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-5
cf939ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cf939ef
7955534
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-4
7955534
- Second attempt - Rebuilt for
7955534
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7955534
e6f88f7
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
e6f88f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e6f88f7
757e0d1
* Sat May 23 2020 Richard Shaw <hobbes1069@gmail.com> - 1.4-2
757e0d1
- Rebuild with lpcnetfreedv.
757e0d1
da100a6
* Thu Apr 16 2020 Richard Shaw <hobbes1069@gmail.com> - 1.4-1
da100a6
- Update to 1.4.
da100a6
182640f
* Tue Mar 31 2020 Richard Shaw <hobbes1069@gmail.com> - 1.3.1-7
182640f
- Rebuild for hamlib 4.
182640f
e29b766
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-6
e29b766
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e29b766
9e1d527
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
9e1d527
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9e1d527
836cb26
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
836cb26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
836cb26
b13e877
* Thu Aug 30 2018 Richard Shaw <hobbes1069@gmail.com> - 1.3.1-3
b13e877
- Rebuild for hamlib 3.3.
b13e877
1adb0ca
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
1adb0ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1adb0ca
ef93af9
* Mon Jun  4 2018 Richard Shaw <hobbes1069@gmail.com> - 1.3.1-1
ef93af9
- Update to 1.3.1.
ef93af9
2e989d7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-4
2e989d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2e989d7
23aca7a
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-3
23aca7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
23aca7a
e178535
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-2
e178535
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e178535
e1edea4
* Fri Jul 21 2017 Richard Shaw <hobbes1069@gmail.com> - 1.2.2-1
e1edea4
- Update to latest upstream release.
e1edea4
d7f5934
* Tue Feb 21 2017 Richard Shaw <hobbes1069@gmail.com> - 1.2-1
d7f5934
- Update to latest upstream release.
d7f5934
565efd7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-7
565efd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
565efd7
9392a74
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-6
9392a74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9392a74
e5b5560
* Thu Jan 28 2016 Richard Shaw <hobbes1069@gmail.com> - 1.1-5
e5b5560
- Update config.guess and config.sub in bundled sox.
e5b5560
bd04fda
* Wed Jan 20 2016 Richard Shaw <hobbes1069@gmail.com> - 1.1-4
bd04fda
- Create appdata file.
bd04fda
bd04fda
* Tue Dec  8 2015 Richard Shaw <hobbes1069@gmail.com> - 1.1-3
bd04fda
- Add sox to sources so it is not downloaded during the build.
bd04fda
- Add necessary build flags for RELO and PIE.
bd04fda
bd04fda
* Fri Dec  4 2015 Richard Shaw <hobbes1069@gmail.com> - 1.1-2
bd04fda
- Move to bundled sox to work around now private function in 14.4.2.
bd04fda
bd04fda
* Thu Sep 24 2015 Richard Shaw <hobbes1069@gmail.com> - 1.1-1
bd04fda
- Update to latest upstream release.
bd04fda
bd04fda
* Tue Aug 25 2015 Richard Shaw <hobbes1069@gmail.com> - 1.0-1
bd04fda
- Update to latest upstream release.
bd04fda
bd04fda
* Sat Jul  4 2015 Richard Shaw <hobbes1069@gmail.com> - 0.98.0-1
bd04fda
- Update to latest upstream release.
bd04fda
bd04fda
* Sun May 31 2015 Richard Shaw <hobbes1069@gmail.com> - 0.97.0-3
bd04fda
- Update to latest svn checkout.
bd04fda
bd04fda
* Tue Jun 17 2014 Richard Shaw <hobbes1069@gmail.com> - 0.97.0-1
bd04fda
- Update to latest upstream release.
bd04fda
bd04fda
* Sat May 24 2014 Richard Shaw <hobbes1069@gmail.com> - 0.96.7-1
bd04fda
- Latest release.
bd04fda
bd04fda
* Fri Mar 28 2014 Richard Shaw <hobbes1069@gmail.com> - 0.96.5-5
bd04fda
- Update to later svn checkout, 1481.
bd04fda
bd04fda
* Sun Mar 23 2014 Richard Shaw <hobbes1069@gmail.com> - 0.96.5-4
bd04fda
- Try test build with patch to remove libctb dependence.
bd04fda
bd04fda
* Sun Sep 15 2013 Richard Shaw <hobbes1069@gmail.com> - 0.96.5-3
bd04fda
- Update to latest checkout.
bd04fda
bd04fda
* Fri Apr 12 2013 Richard Shaw <hobbes1069@gmail.com> - 0.96-1
bd04fda
- Updated to lastest svn checkout (rev 1231).
bd04fda
- Updated spec to meet Fedora Packaging Guidelines.
bd04fda
- Created new icon and desktop files
bd04fda
- Implemented cmake based build configuration.
bd04fda
bd04fda
* Sun Dec 23 2012 Mike Heitmann <mheitmann@n0so.net> 0.91-3
bd04fda
- Made libctb, wxWidgets, codec2 separate rpm packages
bd04fda
bd04fda
* Sat Dec 22 2012 Mike Heitmann <mheitmann@n0so.net> 0.91-2
bd04fda
- Updated spec to use %%{_libdir} and %%{_bindir} macros
bd04fda
bd04fda
* Sun Dec 16 2012 Mike Heitmann <mheitmann@n0so.net> 0.91-1
bd04fda
- Initial SPEC
bd04fda