forked from pool/shairport-sync
- Update version to 3.3.5 * Fix a crashing bug if output format S24 was chosen. * Fix a bug whereby if Loudness was enabled through the D-Bus interface, the output would be muted until the volume was changed. * Enhancements to the D-Bus Interface * Fixes a deferred crash that occurred in Ubuntu 14.04 * Fixes a potential crash when an incomplete fmtp parameter set is sent by the requesting client. Thanks to Angus71 for the fault report and for the repair. * Fixed a potential crash * A fix ensures the hardware mixer of an alsa device is detected and initialised before responding to the first volume setting. * Fixes were made to the MPRIS and native D-Bus interfaces. * Fixes an error whereby the 'pvol'volume metadata was no longer sent if Shairport Sync was configured to ignore volume control information coming from the audio source. * Instead of returning EXIT_FAILURE, return EXIT_WITH_SUCCESS on early exit with either "version" (–version or -V) or "help" (–help or -h) arguments. Thanks to Henrik Nilsson for the patch. * Normalises the 'pvol' volume outputs so that when both the software and hardware attenuators are in use to extend the overall attenuation range, the maximum output level corresponds to the maximum output level of the hardware mixer. * Add the option of including the file and line number of each log entry's source. * Rewrite the logic for identifying missing packets of audio and for asking for resends. * Expose the advanced settings controlling the resend request logic. * Exposes two advanced metadata settings related to handling cover art OBS-URL: https://build.opensuse.org/request/show/765517 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/shairport-sync?expand=0&rev=15
121 lines
3.8 KiB
RPMSpec
121 lines
3.8 KiB
RPMSpec
#
|
||
# spec file for package shairport-sync
|
||
#
|
||
# Copyright (c) 2020 SUSE LLC
|
||
#
|
||
# 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.
|
||
|
||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||
#
|
||
|
||
|
||
Name: shairport-sync
|
||
Version: 3.3.5
|
||
Release: 0
|
||
Summary: An AirPlay audio player
|
||
License: GPL-3.0-only
|
||
Group: Productivity/Multimedia/Sound/Utilities
|
||
URL: https://github.com/mikebrady/shairport-sync
|
||
Source0: https://github.com/mikebrady/shairport-sync/archive/%{version}/%{name}-%{version}.tar.gz
|
||
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
|
||
BuildRequires: fdupes
|
||
BuildRequires: firewall-macros
|
||
BuildRequires: gcc-c++
|
||
BuildRequires: gnome-common
|
||
BuildRequires: pkgconfig
|
||
BuildRequires: systemd-rpm-macros
|
||
BuildRequires: pkgconfig(alsa)
|
||
BuildRequires: pkgconfig(avahi-client)
|
||
BuildRequires: pkgconfig(libconfig)
|
||
BuildRequires: pkgconfig(libdaemon)
|
||
BuildRequires: pkgconfig(libpulse)
|
||
BuildRequires: pkgconfig(openssl)
|
||
BuildRequires: pkgconfig(popt)
|
||
BuildRequires: pkgconfig(sndfile)
|
||
BuildRequires: pkgconfig(soxr)
|
||
BuildRequires: pkgconfig(systemd)
|
||
Requires: firewalld
|
||
Requires(pre): shadow
|
||
%{?systemd_ordering}
|
||
|
||
%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
|
||
%setup -q
|
||
%patch0 -p1
|
||
cp %{SOURCE2} .
|
||
|
||
%build
|
||
autoreconf -i -f
|
||
%configure --with-systemd \
|
||
--with-ssl=openssl \
|
||
--with-pa \
|
||
--with-pipe \
|
||
--with-avahi \
|
||
--with-soxr \
|
||
--with-metadata \
|
||
--with-configfiles \
|
||
--with-convolution
|
||
make %{?_smp_mflags}
|
||
|
||
%install
|
||
%make_install
|
||
mkdir -p %{buildroot}%{_libexecdir}/firewalld/services
|
||
install -m 0644 %{SOURCE1} %{buildroot}%{_libexecdir}/firewalld/services/
|
||
rm %{buildroot}%{_sysconfdir}/shairport-sync.conf.sample
|
||
mkdir -p %{buildroot}%{_sbindir}
|
||
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||
|
||
%pre
|
||
getent group %{name} >/dev/null || %{_sbindir}/groupadd --system %{name}
|
||
getent passwd %{name} >/dev/null || %{_sbindir}/useradd --system -c "%{name} User" \
|
||
-d %{_localstatedir}/%{name} -m -g %{name} -s %{_sbindir}/nologin \
|
||
-G audio %{name}
|
||
%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}
|
||
%dir %{_libexecdir}/firewalld
|
||
%dir %{_libexecdir}/firewalld/services
|
||
%{_libexecdir}/firewalld/services/airplay-server.xml
|
||
%{_mandir}/man7/shairport-sync.7%{?ext_man}
|
||
%{_unitdir}/%{name}.service
|
||
%{_sbindir}/rc%{name}
|
||
|
||
%changelog
|