Accepting request 686235 from home:jengelh:branches:multimedia:apps
- Transform bash-specific sh code to POSIX sh in scriptlets. - Do not hide errors from useradd. - Reduce hard scriptlet dependency on systemd; %service_* does not need it. OBS-URL: https://build.opensuse.org/request/show/686235 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/shairport-sync?expand=0&rev=9
This commit is contained in:
parent
d6af963bb9
commit
f6a83a620d
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 18 21:21:48 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Transform bash-specific sh code to POSIX sh in scriptlets.
|
||||||
|
- Do not hide errors from useradd.
|
||||||
|
- Reduce hard scriptlet dependency on systemd;
|
||||||
|
%service_* does not need it.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Feb 10 10:27:18 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Sun Feb 10 10:27:18 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ BuildRequires: firewall-macros
|
|||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gnome-common
|
BuildRequires: gnome-common
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: pkgconfig(alsa)
|
BuildRequires: pkgconfig(alsa)
|
||||||
BuildRequires: pkgconfig(avahi-client)
|
BuildRequires: pkgconfig(avahi-client)
|
||||||
BuildRequires: pkgconfig(libconfig)
|
BuildRequires: pkgconfig(libconfig)
|
||||||
@ -44,9 +44,10 @@ BuildRequires: pkgconfig(openssl)
|
|||||||
BuildRequires: pkgconfig(popt)
|
BuildRequires: pkgconfig(popt)
|
||||||
BuildRequires: pkgconfig(sndfile)
|
BuildRequires: pkgconfig(sndfile)
|
||||||
BuildRequires: pkgconfig(soxr)
|
BuildRequires: pkgconfig(soxr)
|
||||||
|
BuildRequires: pkgconfig(systemd)
|
||||||
Requires: firewalld
|
Requires: firewalld
|
||||||
Requires(pre): shadow
|
Requires(pre): shadow
|
||||||
%{?systemd_requires}
|
%{?systemd_ordering}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Shairport Sync is an AirPlay audio player – it plays audio streamed from iTunes,
|
Shairport Sync is an AirPlay audio player – it plays audio streamed from iTunes,
|
||||||
@ -88,10 +89,10 @@ mkdir -p %{buildroot}%{_sbindir}
|
|||||||
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group %{name} &>/dev/null || %{_sbindir}/groupadd --system %{name} >/dev/null
|
getent group %{name} >/dev/null || %{_sbindir}/groupadd --system %{name}
|
||||||
getent passwd %{name} &> /dev/null || %{_sbindir}/useradd --system -c "%{name} User" \
|
getent passwd %{name} >/dev/null || %{_sbindir}/useradd --system -c "%{name} User" \
|
||||||
-d %{_localstatedir}/%{name} -m -g %{name} -s %{_sbindir}/nologin \
|
-d %{_localstatedir}/%{name} -m -g %{name} -s %{_sbindir}/nologin \
|
||||||
-G audio %{name} >/dev/null
|
-G audio %{name}
|
||||||
%service_add_pre %{name}.service
|
%service_add_pre %{name}.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
Loading…
Reference in New Issue
Block a user