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:
parent
d576c26bad
commit
49e0551eb3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue