From: Bill Peck Date: Tue, 15 Aug 2017 19:56:37 +0000 (-0400) Subject: don't use --with-systemd configure option X-Git-Tag: 3.2d1~10^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F575%2Fhead;p=thirdparty%2Fshairport-sync.git don't use --with-systemd configure option Using the --with-systemd option will cause make install to issue groupadd and useradd commands which will fail in mock build environments like koji and copr. --- diff --git a/shairport-sync.spec b/shairport-sync.spec index a2b54c39..d082ff67 100644 --- a/shairport-sync.spec +++ b/shairport-sync.spec @@ -35,12 +35,13 @@ Shairport Sync does not support AirPlay video or photo streaming. %build autoreconf -i -f -%configure --with-avahi --with-alsa --with-ssl=openssl --with-soxr --with-systemd +%configure --with-avahi --with-alsa --with-ssl=openssl --with-soxr make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} rm %{buildroot}/etc/shairport-sync.conf.sample +install -p -m644 -D scripts/shairport-sync.service $RPM_BUILD_ROOT%{_unitdir}/%{name}.service %pre getent group %{name} &>/dev/null || groupadd --system %{name} >/dev/null