Some dirs/files are always listed in %files section, but
they are only created if with_systemd is true, which breaks
RPM build. This patch fixes it by only listing those
directories when with_systemd is true.
---
contrib/wok.spec.fedora.in | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/wok.spec.fedora.in b/contrib/wok.spec.fedora.in
index bdd20cc..8c8596b 100644
--- a/contrib/wok.spec.fedora.in
+++ b/contrib/wok.spec.fedora.in
@@ -140,16 +140,16 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/wok/ui/
%{_datadir}/wok
%{_sysconfdir}/nginx/conf.d/wok.conf.in
-%{_sysconfdir}/nginx/conf.d/wok.conf
%{_sysconfdir}/wok/wok.conf
%{_sysconfdir}/wok/
+%{_mandir}/man8/wokd.8.gz
+
+%if 0%{?with_systemd}
+%{_sysconfdir}/nginx/conf.d/wok.conf
%{_sharedstatedir}/wok/vnc-tokens/
%{_sharedstatedir}/wok/
%{_localstatedir}/log/wok/*
%{_localstatedir}/log/wok/
-%{_mandir}/man8/wokd.8.gz
-
-%if 0%{?with_systemd}
%{_unitdir}/wokd.service
%{_prefix}/lib/firewalld/services/wokd.xml
%endif
--
1.7.1