From 7b969f0988368717b9398663af3c39244d3667f2 Mon Sep 17 00:00:00 2001 From: Peter Oliver Date: Apr 25 2018 11:14:22 +0000 Subject: Make Raspberry Pi support optional. --- diff --git a/squeezelite.spec b/squeezelite.spec index fa98a1d..d917828 100644 --- a/squeezelite.spec +++ b/squeezelite.spec @@ -2,15 +2,22 @@ %global commit 8386ece5d705c695afcd68ace1996b4818c65eb1 %forgemeta +# Raspberry Pi-specific GPIO support depends on the WiringPi library, +# which is not currently packaged for Fedora. +%ifarch aarch64 armhfp +%bcond_with raspberrypi +%endif + # Allow AAC and ALAC, WMA to be played directly in the client rather than # first being transcoded on the server. Requires libraries not included # in Fedora for legal reasons. %bcond_with faad %bcond_with ffmpeg + Name: squeezelite Version: 1.8.7.1083 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Headless music player for streaming from Logitech Media Server License: GPLv3 @@ -55,14 +62,7 @@ used in place of dedicated Squeezebox network music playing hardware. %build %set_build_flags -## GPIO support depends on WiringPi, which is not currently in Fedora. -# %ifarch aarch64 armhfp -# %global squeezelite_opts OPTS="-DDSD -DFFMPEG -DLINKALL -DRESAMPLE -DVISEXPORT -DIR -DGPIO" -# %else -%global squeezelite_opts OPTS="-DDSD -DLINKALL -DRESAMPLE -DVISEXPORT -DIR %{?with_ffmpeg:-DFFMPEG} %{?with_faad:-DFAAD}" -# %endif - -%make_build %{?with_ffmpeg:CPPFLAGS+="-I/usr/include/ffmpeg"} %{squeezelite_opts} +%make_build %{?with_ffmpeg:CPPFLAGS+="-I/usr/include/ffmpeg"} OPTS="-DDSD -DLINKALL -DRESAMPLE -DVISEXPORT -DIR -DGPIO %{?with_raspberrypi:-DRPI} %{?with_ffmpeg:-DFFMPEG} %{?with_faad:-DFAAD}" pandoc --to=man --standalone --output=%{name}.service.7 %{SOURCE3} @@ -96,6 +96,9 @@ exit 0 %changelog +* Wed Apr 25 2018 Peter Oliver - 1.8.7.1083-2 +- Make Raspberry Pi support optional. + * Wed Apr 25 2018 Peter Oliver - 1.8.7.1083-1 - Update to version 1.8.7-1083.