# SERVER is not completed yet %global features \\\ GPIO_INCLUDE=GPIO \\\ LOCALCW_INCLUDE=LOCALCW \\\ SOAPYSDR_INCLUDE=SOAPYSDR \\\ MIDI_INCLUDE=MIDI \\\ PTT_INCLUDE=PTT \\\ # SERVER_INCLUDE=SERVER Name: pihpsdr Version: 2.0.8~rc1 Release: 1%{?dist} Summary: Raspberry Pi standalone code for HPSDR License: GPLv2+ URL: https://github.com/g0orx/%{name} Source0: %{url}/archive/v%{version_no_tilde}/%{name}-%{version_no_tilde}.tar.gz # upstream desktop file needs a lot of patching, use own Source1: pihpsdr.desktop BuildRequires: make BuildRequires: gcc BuildRequires: gtk3-devel BuildRequires: alsa-lib-devel BuildRequires: SoapySDR-devel BuildRequires: wdsp-devel BuildRequires: pulseaudio-libs-devel BuildRequires: libgpiod-devel BuildRequires: libi2c-devel BuildRequires: desktop-file-utils Requires: hicolor-icon-theme # https://github.com/g0orx/pihpsdr/pull/143 Patch0: pihpsdr-2.0.8-distro-makefile.patch # https://github.com/g0orx/pihpsdr/issues/154 Patch1: pihpsdr-2.0.8-compile-fix.patch %description Raspberry Pi standalone code for HPSDR (Protocol 1 and Protocol 2). %package doc Summary: Documentation files for linhpsdr Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation files for linhpsdr. %prep %autosetup -n %{name}-%{version_no_tilde} -T -b0 -p1 # drop binaries, save useful files mv release/documentation . pushd release/pihpsdr mv -t ../.. hpsdr.png hpsdr_icon.png README.MIDI popd rm -rf release %build %make_build CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" %{features} %install %make_install BINDIR="%{buildroot}%{_bindir}" DATADIR="%{buildroot}%{_datadir}" %{features} install -Dpm 0644 hpsdr.png %{buildroot}%{_datadir}/%{name}/hpsdr.png install -Dpm 0644 hpsdr_icon.png %{buildroot}%{_datadir}/icons/hicolor/512x512/hpsdr_icon.png # desktop file mkdir -p %{buildroot}%{_datadir}/applications desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} %files %doc README.md README.MIDI %license COPYING %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/* %files doc %doc documentation/{MIDI-manual,piHPSDR-Controller-Users-Guide}.pdf %changelog * Tue Aug 2 2022 Jaroslav Škarvada - 2.0.8~rc1-1 - New version - Updated according to the review Resolves: rhbz#1981103 * Sat Jul 10 2021 Jaroslav Škarvada - 0-0.1.20210710git742658a9 - Initial release