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
1 changed files with 3 additions and 1 deletions

View File

@ -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