File squeezelite.spec of Package squeezelite
Name: squeezelite
Version: 1.8.0
Release: 1
Summary: Lightweight headless squeezebox emulator
License: LGPL+
Source0: %name-%version.tar.bz2
Source1: squeezelite.service
Source2: squeezeliteserver.pl
BuildRequires: libfaad-devel flac-devel libmad-devel
BuildRequires: mpg123-devel libvorbis-devel
BuildRequires: libasound2 soxr-devel
BuildRequires: lirc-devel
#BuildRequires: portaudio-devel opusfile-devel libjack-devel libopenssl-devel
Requires(post): systemd
BuildRequires: systemd-rpm-macros
%{?systemd_requires}
%description
Squeezelite is a small headless squeezebox emulator for linux using alsa audio output
and other platforms using portaudio. It is aimed at supporting high quality audio
including usb dac based output at multiple sample rates including
44.1/48/88.2/96/176.4/192k/352.8/384kHz.
The current version supports:
built in pcm (wav/aiff) decode plus flac, mp3, ogg and aac via libFLAC, libmad/libmpg123,
libvorbisfile, libfaad respectively if they are present on your machine.
includes support for wma and alac decode via the ffmpeg library if it is built with
the -DFFMPEG build option. (This is not included in binaries by default)
upsampling using the libsoxr resampling library if present on the machine. This allows
squeezelite to upsample the output to the highest sample rate supported by the output
device. It is optionally included in the build process. (Resampling is not included
in armv5te, armv6 and mips binaries in the download directory.) Resampling support is
enabled at compile time with the -DRESAMPLE build option.
export of audio data to jivelite on linux to support visualizations. This is enabled
with the -DVISEXPORT build option. (This is not included in the binaries by default.)
DSD playback via DOP capable DACs or via conversion to pcm. This is enabled with the
-DDSD build option and requires additional LMS server patches.
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system
mkdir -p %{buildroot}%{_var}/lib/%{name}
cp -avf %{name} %{buildroot}%{_bindir}/%{name}
cp -avf %{SOURCE1} %{buildroot}%{_sysconfdir}/systemd/system
cp -avf %{SOURCE2} %{buildroot}%{_sbindir}
%pre
%service_add_pre squeezelite.service
%post
%service_add_post squeezelite.service
/usr/bin/systemctl enable squeezelite.service
%preun
%service_del_preun squeezelite.service
%postun
%service_del_postun squeezelite.service
%files
%doc LICENSE.txt
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_sbindir}/*
%attr(0644,root,root) %{_sysconfdir}/systemd/system/squeezelite.service
%attr(0644,root,root) %{_var}/lib/%{name}
%changelog