Name: shairport-sync Version: 4.1 Release: 532%{?dist} Summary: AirTunes emulator. Multi-Room with Audio Synchronisation # MIT licensed except for tinysvcmdns under BSD, # FFTConvolver/ under GPLv3+ and audio_sndio.c # under ISC License: MIT and BSD and GPLv3+ and ISC URL: https://github.com/mikebrady/shairport-sync Source: shairport-sync-aeb47ca8.tar.gz Patch0: copr.patch %{?systemd_requires} BuildRequires: make BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: kernel-devel BuildRequires: alsa-lib-devel BuildRequires: pulseaudio-libs-devel BuildRequires: avahi-devel BuildRequires: libconfig-devel BuildRequires: libdaemon-devel BuildRequires: mbedtls-devel BuildRequires: mbedtls-pkgconfig BuildRequires: popt-devel BuildRequires: soxr-devel BuildRequires: systemd BuildRequires: pkgconfig(libconfig) BuildRequires: pkgconfig(libavutil) BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavformat) BuildRequires: pkgconfig(popt) BuildRequires: pkgconfig(avahi-core) BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(soxr) BuildRequires: autoconf BuildRequires: automake BuildRequires: libalac-devel BuildRequires: xmltoman BuildRequires: libsodium-devel BuildRequires: libgcrypt-devel BuildRequires: libuuid-devel BuildRequires: libplist-devel BuildRequires: vim-common Requires: avahi Requires: nqptp %description Shairport Sync emulates an AirPort Express for the purpose of streaming audio from iTunes, iPods, iPhones, iPads and AppleTVs. Audio played by a Shairport Sync-powered device stays synchronised with the source and hence with similar devices playing the same source. Thus, for example, synchronised multi-room audio is possible without difficulty. (Hence the name Shairport Sync, BTW.) Shairport Sync does not support AirPlay video or photo streaming. %prep %setup -T -b 0 -q -n shairport-sync %patch0 -p1 %build autoreconf -i -f %configure --with-avahi --with-systemd --with-alsa --with-pa --with-ssl=mbedtls --with-soxr --with-apple-alac --with-airplay-2 %make_build %install %make_install rm %{buildroot}/etc/shairport-sync.conf.sample %pre getent group %{name} &>/dev/null || groupadd --system %{name} >/dev/null getent passwd %{name} &> /dev/null || useradd --system -c "%{name} User" \ -d %{_sharedstatedir}/%{name} -m -g %{name} -s /sbin/nologin \ -G audio %{name} >/dev/null %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %config(noreplace) /etc/shairport-sync.conf /usr/bin/shairport-sync /usr/share/man/man7/shairport-sync.7.gz %{_unitdir}/%{name}.service %doc README.md RELEASENOTES.md TROUBLESHOOTING.md %license LICENSES %changelog