%{!?_iconsbasedir: %global _iconsbasedir %{_datadir}/icons/hicolor} %{?rhel: %global cmake %cmake3} Name: freedv Version: 1.3.1 Release: 3%{?dist} Summary: FreeDV Digital Voice License: GPLv2+ URL: http://freedv.org Source0: https://hobbes1069.fedorapeople.org/freetel/%{name}/%{name}-%{version}.tar.xz Source100: freedv.appdata.xml Source101: freedv48x48.png Source102: freedv64x64.png Source103: freedv128x128.png Source104: freedv256x256.png BuildRequires: cmake%{?rhel:3} gcc-c++ BuildRequires: wxGTK3-devel BuildRequires: codec2-devel >= 0.8 BuildRequires: portaudio-devel BuildRequires: libsndfile-devel BuildRequires: libsamplerate-devel %if 0%{?fedora} BuildRequires: libappstream-glib BuildRequires: speexdsp-devel %else BuildRequires: speex-devel %endif BuildRequires: hamlib-devel BuildRequires: alsa-lib-devel BuildRequires: libao-devel BuildRequires: gsm-devel BuildRequires: desktop-file-utils %description FreeDV is a GUI application for Windows and Linux that allows any SSB radio to be used for low bit rate digital voice. Speech is compressed down to 1400 bit/s then modulated onto a 1100 Hz wide QPSK signal which is sent to the Mic input of a SSB radio. On receive, the signal is received by the SSB radio, then demodulated and decoded by FreeDV. FreeDV was built by an international team of Radio Amateurs working together on coding, design, user interface and testing. FreeDV is open source software, released under the GNU Public License version 2.1. The FDMDV modem and Codec 2 Speech codec used in FreeDV are also open source. %prep %autosetup -n freedv-%{version} %build rm -rf build_linux && mkdir build_linux && pushd build_linux export CFLAGS="%{optflags} -fPIC -pie -Wl,-z,relro -Wl,-z,now" export CXXFLAGS="%{optflags} -fPIC -pie -Wl,-z,relro -Wl,-z,now" export LDFLAGS="-Wl,--as-needed" %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DWXCONFIG="%{_bindir}/wx-config-3.0" \ -DWXRC="%{_bindir}/wxrc-3.0" \ -DUSE_STATIC_CODEC2=FALSE \ -DUSE_STATIC_SPEEXDSP=FALSE \ ../ %make_build %install pushd build_linux %make_install # Install desktop file desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %if 0%{?fedora} # install appdata file mkdir -p %{buildroot}%{_datadir}/appdata install -pm 0644 %{SOURCE100} %{buildroot}%{_datadir}/appdata/ appstream-util validate-relax --nonet \ %{buildroot}%{_datadir}/appdata/*.appdata.xml %endif %if 0%{?rhel} %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %endif %files %license COPYING %doc README.txt RELEASE_NOTES.txt USER_MANUAL.txt %{_bindir}/%{name} %{?fedora:%{_datadir}/appdata/*.appdata.xml} %{_datadir}/applications/%{name}.desktop %{_iconsbasedir}/*/apps/%{name}.png %changelog * Thu Aug 30 2018 Richard Shaw - 1.3.1-3 - Rebuild for hamlib 3.3. * Fri Jul 13 2018 Fedora Release Engineering - 1.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 4 2018 Richard Shaw - 1.3.1-1 - Update to 1.3.1. * Wed Feb 07 2018 Fedora Release Engineering - 1.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 1.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jul 21 2017 Richard Shaw - 1.2.2-1 - Update to latest upstream release. * Tue Feb 21 2017 Richard Shaw - 1.2-1 - Update to latest upstream release. * Fri Feb 10 2017 Fedora Release Engineering - 1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 28 2016 Richard Shaw - 1.1-5 - Update config.guess and config.sub in bundled sox. * Wed Jan 20 2016 Richard Shaw - 1.1-4 - Create appdata file. * Tue Dec 8 2015 Richard Shaw - 1.1-3 - Add sox to sources so it is not downloaded during the build. - Add necessary build flags for RELO and PIE. * Fri Dec 4 2015 Richard Shaw - 1.1-2 - Move to bundled sox to work around now private function in 14.4.2. * Thu Sep 24 2015 Richard Shaw - 1.1-1 - Update to latest upstream release. * Tue Aug 25 2015 Richard Shaw - 1.0-1 - Update to latest upstream release. * Sat Jul 4 2015 Richard Shaw - 0.98.0-1 - Update to latest upstream release. * Sun May 31 2015 Richard Shaw - 0.97.0-3 - Update to latest svn checkout. * Tue Jun 17 2014 Richard Shaw - 0.97.0-1 - Update to latest upstream release. * Sat May 24 2014 Richard Shaw - 0.96.7-1 - Latest release. * Fri Mar 28 2014 Richard Shaw - 0.96.5-5 - Update to later svn checkout, 1481. * Sun Mar 23 2014 Richard Shaw - 0.96.5-4 - Try test build with patch to remove libctb dependence. * Sun Sep 15 2013 Richard Shaw - 0.96.5-3 - Update to latest checkout. * Fri Apr 12 2013 Richard Shaw - 0.96-1 - Updated to lastest svn checkout (rev 1231). - Updated spec to meet Fedora Packaging Guidelines. - Created new icon and desktop files - Implemented cmake based build configuration. * Sun Dec 23 2012 Mike Heitmann 0.91-3 - Made libctb, wxWidgets, codec2 separate rpm packages * Sat Dec 22 2012 Mike Heitmann 0.91-2 - Updated spec to use %%{_libdir} and %%{_bindir} macros * Sun Dec 16 2012 Mike Heitmann 0.91-1 - Initial SPEC