diff --git a/dovecot.spec b/dovecot.spec index 7d7d506..4e46815 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -35,6 +35,11 @@ BuildRequires: mysql-devel BuildRequires: openldap-devel BuildRequires: krb5-devel +BuildRequires: systemd-units +Requires: systemd-units +Conflicts: systemd < 38 +Conflicts: filesystem < 3 + # gettext-devel is needed for running autoconf because of the # presence of AM_ICONV #BuildRequires: gettext-devel @@ -131,7 +136,7 @@ export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" --with-ssldir=%{ssldir} \ --with-solr \ %if %{?fedora}0 > 140 || %{?rhel}0 > 60 - --with-systemdsystemunitdir=/lib/systemd/system/ \ + --with-systemdsystemunitdir=%{_unitdir}/ \ %endif --with-docs @@ -291,8 +296,8 @@ make check %if %{?fedora}0 > 140 || %{?rhel}0 > 60 %config(noreplace) %{_sysconfdir}/tmpfiles.d/dovecot.conf -/lib/systemd/system/dovecot.service -/lib/systemd/system/dovecot.socket +%{_unitdir}/dovecot.service +%{_unitdir}/dovecot.socket %else %{_initddir}/dovecot %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/dovecot