2018-07-31 08:47:12 +02:00
|
|
|
|
#
|
2018-06-12 14:52:43 +02:00
|
|
|
|
# spec file for package shairport-sync
|
|
|
|
|
#
|
2022-02-07 14:55:00 +01:00
|
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-06-12 14:52:43 +02:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2019-02-10 11:14:20 +01:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-31 08:47:12 +02:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2018-06-12 14:52:43 +02:00
|
|
|
|
Name: shairport-sync
|
2022-12-27 14:27:41 +01:00
|
|
|
|
Version: 4.1
|
2018-06-12 14:52:43 +02:00
|
|
|
|
Release: 0
|
2018-07-31 08:47:12 +02:00
|
|
|
|
Summary: An AirPlay audio player
|
|
|
|
|
License: GPL-3.0-only
|
|
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
2018-06-12 14:52:43 +02:00
|
|
|
|
URL: https://github.com/mikebrady/shairport-sync
|
Accepting request 711702 from home:hillwood:branches:multimedia:apps
- Update version to 3.3.1
* Fix a bug in the MQTT documentation and add sanity checking for the port
chosen -- thanks to David Crook.
* Fix a bug that caused manual format and rate settings to be ignored --
thanks to Jörg Krause.
* Add missing support for format settings S24_LE, S24_BE, S32_LE and S32_BE.
* Fix a bug that caused dither to be too loud.
* Fix error message for invalid
* Automatic Format and Speed Selection for alsa devices. Using the alsa back
end, when you specify the output device, Shairport Sync will now, by
default, select the best output format and speed. For instance, if your
output device is capable of 32-bit operation, it will be selected. In some
situations, this will give a noticeable improvement in sound quality – see
the discussion of audio improvements below. The greatest bit depth will
always be selected, and the lowest speed that is a multiple of 44,100.
* Audio Transient Reduction: A Disable Standby feature to eliminate certain
faint-but-annoying audible pops and clicks has been added for alsa devices.
The setting prevents an output device entering standby mode and thus
minimises standby/busy transitions, which can sometimes be heard. It is
pretty impressive, especially combined with fixes to the dithering code
described below. If you can enable 24- or 32-bit audio output to your output
device, you can get even better results. This feature is available in the
ALSA back end (standard in Linux) when it is driving output devices that can
provide precision delay information, i.e. most hardware output devices and
possibly some virtual devices.
* New active/inactive program hooks. Basically, these are "deglitched"
replacements for play start/play end program hooks. When a play session
starts, the system goes active. When the play session ends, the system
remains active for a period determined by the active_state_timeout setting,
10 seconds by default. If another play session starts before the period
OBS-URL: https://build.opensuse.org/request/show/711702
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/shairport-sync?expand=0&rev=11
2019-06-24 16:30:57 +02:00
|
|
|
|
Source0: https://github.com/mikebrady/shairport-sync/archive/%{version}/%{name}-%{version}.tar.gz
|
2018-06-12 14:52:43 +02:00
|
|
|
|
Source1: airplay-server.xml
|
|
|
|
|
Source2: README.SUSE
|
|
|
|
|
# PATCH-FIX-OPENSUSE drop-user-config.patch hillwood@opensuse.org -- Move configuring user account to rpm spec.
|
|
|
|
|
# Move configuring user account to rpm spec.
|
|
|
|
|
Patch0: drop-user-config.patch
|
2022-02-07 14:55:00 +01:00
|
|
|
|
Patch1: harden_shairport-sync.service.patch
|
2018-07-31 08:47:12 +02:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: firewall-macros
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: gnome-common
|
2019-02-25 14:57:26 +01:00
|
|
|
|
BuildRequires: pkgconfig
|
2019-03-19 03:48:44 +01:00
|
|
|
|
BuildRequires: systemd-rpm-macros
|
2018-07-31 08:47:12 +02:00
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
|
BuildRequires: pkgconfig(avahi-client)
|
|
|
|
|
BuildRequires: pkgconfig(libconfig)
|
|
|
|
|
BuildRequires: pkgconfig(libdaemon)
|
2018-06-12 14:52:43 +02:00
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
|
BuildRequires: pkgconfig(popt)
|
|
|
|
|
BuildRequires: pkgconfig(sndfile)
|
2018-07-31 08:47:12 +02:00
|
|
|
|
BuildRequires: pkgconfig(soxr)
|
2019-03-19 03:48:44 +01:00
|
|
|
|
BuildRequires: pkgconfig(systemd)
|
2018-06-12 14:52:43 +02:00
|
|
|
|
Requires: firewalld
|
2019-02-25 14:57:26 +01:00
|
|
|
|
Requires(pre): shadow
|
2019-03-19 03:48:44 +01:00
|
|
|
|
%{?systemd_ordering}
|
2018-06-12 14:52:43 +02:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Shairport Sync is an AirPlay audio player – it plays audio streamed from iTunes,
|
|
|
|
|
iOS, Apple TV and macOS devices and AirPlay sources such as Quicktime Player and
|
|
|
|
|
ForkedDaapd, among others.
|
|
|
|
|
|
|
|
|
|
Audio played by a Shairport Sync-powered device stays synchronised with the
|
|
|
|
|
source and hence with similar devices playing the same source. In this way,
|
|
|
|
|
synchronised multi-room audio is possible for players that support it, such as
|
|
|
|
|
iTunes.
|
|
|
|
|
|
|
|
|
|
Shairport Sync runs on Linux, FreeBSD and OpenBSD. It does not support AirPlay
|
|
|
|
|
video or photo streaming.
|
|
|
|
|
|
|
|
|
|
%prep
|
2019-02-10 11:14:20 +01:00
|
|
|
|
%setup -q
|
2018-06-12 14:52:43 +02:00
|
|
|
|
%patch0 -p1
|
|
|
|
|
cp %{SOURCE2} .
|
2021-11-21 09:27:33 +01:00
|
|
|
|
%patch1 -p1
|
2018-06-12 14:52:43 +02:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf -i -f
|
|
|
|
|
%configure --with-systemd \
|
|
|
|
|
--with-ssl=openssl \
|
|
|
|
|
--with-pa \
|
|
|
|
|
--with-pipe \
|
|
|
|
|
--with-avahi \
|
|
|
|
|
--with-soxr \
|
|
|
|
|
--with-metadata \
|
|
|
|
|
--with-configfiles \
|
|
|
|
|
--with-convolution
|
2020-03-23 14:39:23 +01:00
|
|
|
|
%make_build
|
2018-06-12 14:52:43 +02:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
2020-08-19 12:03:23 +02:00
|
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/firewalld/services
|
|
|
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{_prefix}/lib/firewalld/services/
|
2018-06-12 14:52:43 +02:00
|
|
|
|
rm %{buildroot}%{_sysconfdir}/shairport-sync.conf.sample
|
|
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|
|
|
|
|
|
|
|
|
%pre
|
2019-03-19 03:48:44 +01:00
|
|
|
|
getent group %{name} >/dev/null || %{_sbindir}/groupadd --system %{name}
|
|
|
|
|
getent passwd %{name} >/dev/null || %{_sbindir}/useradd --system -c "%{name} User" \
|
2019-02-25 14:57:26 +01:00
|
|
|
|
-d %{_localstatedir}/%{name} -m -g %{name} -s %{_sbindir}/nologin \
|
2019-03-19 03:48:44 +01:00
|
|
|
|
-G audio %{name}
|
2018-06-12 14:52:43 +02:00
|
|
|
|
%service_add_pre %{name}.service
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%service_add_post %{name}.service
|
|
|
|
|
%firewalld_reload
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%service_del_preun %{name}.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%service_del_postun %{name}.service
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc README.md RELEASENOTES.md TROUBLESHOOTING.md README.SUSE
|
|
|
|
|
%license LICENSES
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/shairport-sync.conf
|
|
|
|
|
%{_bindir}/%{name}
|
2020-08-19 12:03:23 +02:00
|
|
|
|
%dir %{_prefix}/lib/firewalld
|
|
|
|
|
%dir %{_prefix}/lib/firewalld/services
|
|
|
|
|
%{_prefix}/lib/firewalld/services/airplay-server.xml
|
2019-02-25 14:57:26 +01:00
|
|
|
|
%{_mandir}/man7/shairport-sync.7%{?ext_man}
|
2018-06-12 14:52:43 +02:00
|
|
|
|
%{_unitdir}/%{name}.service
|
|
|
|
|
%{_sbindir}/rc%{name}
|
|
|
|
|
|
|
|
|
|
%changelog
|