]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
don't use --with-systemd configure option 574/head
authorBill Peck <bpeck@redhat.com>
Tue, 15 Aug 2017 19:56:37 +0000 (15:56 -0400)
committerBill Peck <bpeck@redhat.com>
Tue, 15 Aug 2017 19:56:37 +0000 (15:56 -0400)
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.

shairport-sync.spec

index a2b54c39820508ffdb2c8f0d9e178c4dd1698458..d082ff67ecfb100391241a4faa92e2f89d0fcefc 100644 (file)
@@ -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