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.
This commit is contained in:
Tim Hardeck 2017-08-25 14:19:18 +02:00
parent d576c26bad
commit 49e0551eb3

View File

@ -301,7 +301,6 @@ Vim syntax highlighting for icinga2
%package -n nano-icinga2 %package -n nano-icinga2
Summary: Nano syntax highlighting for icinga2 Summary: Nano syntax highlighting for icinga2
Group: Applications/System Group: Applications/System
BuildRequires: nano
Requires: nano Requires: nano
%description -n nano-icinga2 %description -n nano-icinga2
@ -827,6 +826,9 @@ fi
%files -n nano-icinga2 %files -n nano-icinga2
%defattr(-,root,root,-) %defattr(-,root,root,-)
%if "%{_vendor}" == "suse"
%dir %{_datadir}/nano
%endif
%{_datadir}/nano/%{name}.nanorc %{_datadir}/nano/%{name}.nanorc
%changelog %changelog