diff --git a/glusterfs.spec b/glusterfs.spec index 0ad2032..e220894 100644 --- a/glusterfs.spec +++ b/glusterfs.spec @@ -621,7 +621,7 @@ install -p -D -m 660 %{SOURCE104} %{buildroot}%{_sysconfdir}/swift/swift.conf %{__install} -d -m 755 %{buildroot}%{_localstatedir}/run/swift/container-server %{__install} -d -m 755 %{buildroot}%{_localstatedir}/run/swift/object-server %{__install} -d -m 755 %{buildroot}%{_localstatedir}/run/swift/proxy-server -%if ( 0%{?fedora} ) || ( 0%{?rhel} && 0%{?rhel} > 6 ) +%if 0%{?_with_systemd:1} # Swift run directories %{__mkdir_p} %{buildroot}%{_sysconfdir}/tmpfiles.d install -p -m 0644 %{SOURCE18} %{buildroot}%{_sysconfdir}/tmpfiles.d/gluster-swift.conf