diff --git a/openssh.spec b/openssh.spec index 04f853f..d7982ea 100644 --- a/openssh.spec +++ b/openssh.spec @@ -258,7 +258,7 @@ BuildRequires: pam-devel BuildRequires: fipscheck-devel >= 1.3.0 BuildRequires: openssl-devel >= 0.9.8j BuildRequires: perl-podlators -BuildRequires: systemd-devel +BuildRequires: systemd %if %{kerberos5} BuildRequires: krb5-devel @@ -291,9 +291,7 @@ Requires: openssh = %{version}-%{release} Requires(pre): /usr/sbin/useradd Requires: pam >= 1.0.1-3 Requires: fipscheck-lib%{_isa} >= 1.3.0 -Requires(post): systemd-units -Requires(preun): systemd-units -Requires(postun): systemd-units +%{?systemd_requires} %if %{ldap} %package ldap