From 023dc4e57aef17134e61ae1d634e6b16473d33a8 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Wed, 16 May 2018 10:20:03 +0300 Subject: [PATCH] Client-only build needs /usr/share/ipa and freeipa.template We condition make to run in install/share only for ENABLE_SERVER case. This means client side never has /usr/share/ipa created and populated. Force-create the directory and put freeipa.template in the spec right now until upstream fix is done properly to allow client-side target to run install/share too. --- freeipa.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freeipa.spec b/freeipa.spec index 3261ed7..b5232d2 100644 --- a/freeipa.spec +++ b/freeipa.spec @@ -1139,8 +1139,12 @@ touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so mkdir -p %{buildroot}%{_sysconfdir}/cron.d %endif # ONLY_CLIENT +%if %{ONLY_CLIENT} # Even client build must have /usr/share/ipa mkdir -p %{buildroot}%{_usr}/share/ipa +%__install install/share/freeipa.template %{buildroot}%{_usr}/share/ipa +%endif # ONLY_CLIENT + # Collect templates and filter out non-server ones find %{buildroot}%{_usr}/share/ipa -maxdepth 1 -name '*.template' -a ! -name 'freeipa.template' -fprintf server-templates '%{_usr}/share/ipa/%f\n'