From 49e0551eb31df2ba52ab7e3fb0e5f80ee68b2ba1 Mon Sep 17 00:00:00 2001 From: Tim Hardeck Date: Fri, 25 Aug 2017 14:19:18 +0200 Subject: [PATCH] Allow building of Icinga2 when nano is not available SLE distributions and some architectures on SUSE do not provide nano so building icinga2 would fail with nano as BuildRequire. --- icinga2.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/icinga2.spec b/icinga2.spec index 24bbafd..4ad525a 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -301,7 +301,6 @@ Vim syntax highlighting for icinga2 %package -n nano-icinga2 Summary: Nano syntax highlighting for icinga2 Group: Applications/System -BuildRequires: nano Requires: nano %description -n nano-icinga2 @@ -827,6 +826,9 @@ fi %files -n nano-icinga2 %defattr(-,root,root,-) +%if "%{_vendor}" == "suse" +%dir %{_datadir}/nano +%endif %{_datadir}/nano/%{name}.nanorc %changelog