Skip to content

Commit

Permalink
don't use --with-systemd configure option
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
p3ck committed Aug 15, 2017
1 parent 78102ca commit 2069d82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shairport-sync.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2069d82

Please sign in to comment.