Name: shairport-sync Version: 5.0.1 Release: %autorelease 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: https://github.com/mikebrady/%{name}/archive/%{version}/%{name}-%{version}.tar.gz Patch: shairport-sync-makefile-fix.patch BuildRequires: make BuildRequires: automake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: git BuildRequires: autoconf BuildRequires: automake BuildRequires: avahi-devel BuildRequires: libconfig-devel BuildRequires: openssl-devel BuildRequires: popt-devel BuildRequires: soxr-devel BuildRequires: libplist-devel BuildRequires: libsodium-devel BuildRequires: libgcrypt-devel BuildRequires: libuuid-devel BuildRequires: vim-common BuildRequires: alsa-lib-devel BuildRequires: systemd-rpm-macros # Allow build with both free and non-free versions BuildRequires: (libavformat-devel or libavformat-free-devel) BuildRequires: (libavutil-devel or libavutil-free-devel) BuildRequires: (libavcodec-devel or libavcodec-free-devel) 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 %autosetup -p1 %build autoreconf -i -f %configure \ --with-airplay-2 \ --with-avahi \ --with-systemd-startup \ --with-systemdsystemunitdir=%{_unitdir} \ --with-alsa \ --with-ssl=openssl \ --with-soxr \ --sysconfdir=%{_sysconfdir} \ --with-create-user-group=no %make_build %install %make_install rm %{buildroot}/etc/shairport-sync.conf.sample %pre getent group %{name} &>/dev/null || groupadd -r %{name} &>/dev/null getent passwd %{name} &>/dev/null || useradd -r -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) %{_sysconfdir}/shairport-sync.conf %{_bindir}/shairport-sync %{_mandir}/man1/shairport-sync.* %{_unitdir}/%{name}.service %doc README.md RELEASENOTES.md TROUBLESHOOTING.md %license LICENSES %changelog %autochangelog