Remove systemd dependency for flatpak builds

This commit is contained in:
Jay W 2022-02-11 17:47:33 +00:00
parent dd3512c7d2
commit 28ad10f97d

View File

@ -17,9 +17,12 @@ BuildRequires: make
BuildRequires: libtool openssl-devel gettext-devel autoconf automake
BuildRequires: systemd
Requires(pre): shadow-utils
# remove systemd dependency for flatpak builds
%if ! 0%{?flatpak}
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%endif
Requires: %{name}-lib%{?_isa} = %{version}-%{release}
%description