Blame CubicSDR.spec

67c33a0
%global commit 4f1db5544d3075681d736a12e522fed030ece110
47a85c7
%global shortcommit %(c=%{commit}; echo ${c:0:7})
67c33a0
%global snapshotdate 20200824
47a85c7
Name:           CubicSDR
6662670
Version:        0.2.5
67c33a0
Release:        10.%{snapshotdate}git%{shortcommit}%{?dist}
47a85c7
Summary:        Cross-Platform Software-Defined Radio Panadapter
47a85c7
47a85c7
# The primary license of CubicSDR is GPLv2+.
47a85c7
# There are multiple third party libraries bundled in the source of CubicSDR.
47a85c7
# external/loadpng/ and external/tinyxml/ use the zlib/libpng license
47a85c7
# external/rs232/, external/liquid-dsp/, src/util/DataTree* use the MIT/X11 (BSD like) license
47a85c7
# Note: external/hamlib/ and external/rtaudio/ are provided by the source, but at
47a85c7
#  build and run time we use system-provided copies of these libraries
47a85c7
License:        GPLv2+ and MIT and zlib
47a85c7
URL:            https://cubicsdr.com
6662670
Source0:        https://github.com/cjcliffe/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz
47a85c7
Source1:        CubicSDR
6662670
Patch0:         gdk-backend-desktop.patch
47a85c7
# Upstream includes local copies of librs232 and tinyxml unfortunately.
47a85c7
#    https://github.com/cjcliffe/CubicSDR/issues/670
47a85c7
Provides: bundled(librs232) = 0.21
47a85c7
Provides: bundled(tinyxml) = 2.6.2
47a85c7
# Upstream includes local copy of lodepng not present in Fedora already
47a85c7
Provides: bundled(lodepng) = 20180809
6662670
BuildRequires:  cmake gcc-c++ desktop-file-utils
6662670
# Library dependencies
6662670
BuildRequires: SoapySDR-devel
6662670
BuildRequires: wxGTK-devel
6662670
BuildRequires: hamlib-devel
6662670
BuildRequires: fftw-devel
6662670
BuildRequires: rtaudio-devel
6662670
BuildRequires: liquid-dsp-devel >= 1.3.2
47a85c7
47a85c7
%description
6662670
CubicSDR is a cross-platform Software-Defined Radio application which
6662670
allows you to navigate the radio spectrum and demodulate any signals
6662670
you might discover.  It currently includes several common analog
6662670
demodulation schemes such as AM and FM and will support digital modes
6662670
in the future.
6662670
47a85c7
47a85c7
%prep
47a85c7
%autosetup -n %{name}-%{commit} -p1
47a85c7
6662670
47a85c7
%build
5ac2901
%cmake -Wno-dev -DCMAKE_BUILD_TYPE=Release -DUSE_HAMLIB=1 -DUSE_SYSTEM_RTAUDIO=1
5ac2901
%cmake_build
47a85c7
47a85c7
47a85c7
%install
5ac2901
%cmake_install
47a85c7
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
6662670
# Move executable to libexecdir, leave CLI start script in bindir
6662670
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
6662670
mv %{buildroot}/%{_bindir}/CubicSDR %{buildroot}/%{_libexecdir}/%{name}/%{name}
6662670
install -m 0755 %{SOURCE1} %{buildroot}/%{_bindir}/%{name}
6662670
47a85c7
47a85c7
%files
47a85c7
%license LICENSE
6662670
%{_libexecdir}/*
47a85c7
%{_bindir}/*
47a85c7
# Upstream includes local copies of Bitstream Vera fonts
47a85c7
#    https://github.com/cjcliffe/CubicSDR/issues/669
6662670
%{_datadir}/cubicsdr/
47a85c7
%{_datadir}/applications/%{name}.desktop
47a85c7
6662670
47a85c7
%changelog
67c33a0
* Tue Nov 10 2020 Matt Domsch <matt@domsch.com> - 0.2.5-10.20200824git4f1db55
67c33a0
- upstream snapshot. Zero-to-right by SHIFT+Right Click on the frequency digits.
67c33a0
e8c2cf6
* Sun Aug 09 2020 Scott Talbert <swt@techie.net> - 0.2.5-9.20200226gitd2f9333
e8c2cf6
- Rebuild for wxWidgets 3.1.4 (for real)
e8c2cf6
beb7718
* Sat Aug 08 2020 Scott Talbert <swt@techie.net> - 0.2.5-8.20200226gitd2f9333
beb7718
- Rebuild for wxWidgets 3.1.4
beb7718
5ac2901
* Sun Aug  2 2020 Matt Domsch <matt@domsch.com> - 0.2.5-7.20200226gitd2f9333
5ac2901
- F33 cmakes fixes
5ac2901
7ffdcab
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-6.20200226gitd2f9333
7ffdcab
- Second attempt - Rebuilt for
7ffdcab
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7ffdcab
52c630c
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-5.20200226gitd2f9333
52c630c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
52c630c
42038f1
* Mon Apr 20 2020 Matt Domsch <matt@domsch.com> 0.2.5-4.20200407gitd2f9333
42038f1
- rebuild for hamlib-devel 4.0.0
42038f1
6662670
* Thu Apr  9 2020 Matt Domsch <matt@domsch.com> 0.2.5-3.20200407gitd2f9333
6662670
- move executable to libexecdir
6662670
- delete unused external libraries source tarball
6662670
- address review comments, spec file cleanups
6662670
6662670
* Wed Apr  8 2020 Matt Domsch <matt@domsch.com> 0.2.5-2.20200407gitd2f9333
6662670
- move env GDK_BACKEND=x11 into the desktop start file
6662670
6662670
* Tue Apr  7 2020 Matt Domsch <matt@domsch.com> 0.2.5-1.20200407gitd2f9333
6662670
- Latest upstream plus newer liquid-dsp library
6662670
47a85c7
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-4.20180806gita7e4d91
47a85c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
47a85c7
47a85c7
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-3.20180806gita7e4d91
47a85c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
47a85c7
47a85c7
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-2.20180806gita7e4d91
47a85c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
47a85c7
47a85c7
* Tue Aug  7 2018 Matt Domsch <matt@domsch.com> 0.2.4-1.20180806gita7e4d91
47a85c7
- Initial Fedora packaging