%define with_multiuser 1
%define WITH_MACHINED 0
%define WITH_DOC 0
+%define WITH_HOSTNAMED 0
Name: systemd
Version: 231
%if ! %{?WITH_MACHINED}
--disable-machined \
%endif
+%if ! %{?WITH_HOSTNAMED}
+ --disable-hostnamed \
+%endif
--disable-importd \
--disable-gcrypt \
--libexecdir=%{_prefix}/lib \
%dir %{_prefix}/lib/kernel/install.d
%{_prefix}/lib/kernel/install.d/50-depmod.install
%{_prefix}/lib/kernel/install.d/90-loaderentry.install
+%if %{?WITH_HOSTNAMED}
%{_bindir}/hostnamectl
+%endif
%{_bindir}/localectl
%if %{?WITH_COREDUMP}
%{_bindir}/coredumpctl
%dir %{_prefix}/lib/firmware/updates
%dir %{_datadir}/systemd
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf
+%if %{?WITH_HOSTNAMED}
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.hostname1.conf
+%endif
%if %{?with_multiuser}
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.login1.conf
%endif
%{_datadir}/systemd/language-fallback-map
%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
+%if %{?WITH_HOSTNAMED}
%{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service
+%endif
%if %{?with_multiuser}
%{_datadir}/dbus-1/system-services/org.freedesktop.login1.service
%endif