icinga2: Add proper vim and nano dependencies
Otherwise building the package fails because installed directories are not referenced by RPM. Signed-off-by: Markus Frosch <markus.frosch@icinga.com>
This commit is contained in:
parent
624c2b15c0
commit
57e4605875
22
icinga2.spec
22
icinga2.spec
|
@ -288,9 +288,10 @@ Provides a GUI for the Icinga 2 API.
|
|||
Summary: Vim syntax highlighting for icinga2
|
||||
Group: Applications/System
|
||||
%if "%{_vendor}" == "suse"
|
||||
Requires: vim-data
|
||||
BuildRequires: vim
|
||||
Requires: vim
|
||||
%else
|
||||
Requires: vim-filesystem
|
||||
Requires: vim-filesystem
|
||||
%endif
|
||||
|
||||
%description -n vim-icinga2
|
||||
|
@ -298,9 +299,10 @@ Vim syntax highlighting for icinga2
|
|||
|
||||
|
||||
%package -n nano-icinga2
|
||||
Summary: Nano syntax highlighting for icinga2
|
||||
Group: Applications/System
|
||||
Requires: nano
|
||||
Summary: Nano syntax highlighting for icinga2
|
||||
Group: Applications/System
|
||||
BuildRequires: nano
|
||||
Requires: nano
|
||||
|
||||
%description -n nano-icinga2
|
||||
Nano syntax highlighting for icinga2
|
||||
|
@ -440,6 +442,10 @@ Keywords=Monitoring;" > %{buildroot}%{_datadir}/applications/icinga2-studio.desk
|
|||
%endif
|
||||
|
||||
%if "%{_vendor}" == "suse"
|
||||
%if 0%{?leap_version} >= 420100
|
||||
install -D -m 0644 tools/syntax/vim/syntax/%{name}.vim %{buildroot}%{_datadir}/vim/site/syntax/%{name}.vim
|
||||
install -D -m 0644 tools/syntax/vim/ftdetect/%{name}.vim %{buildroot}%{_datadir}/vim/site/ftdetect/%{name}.vim
|
||||
%else
|
||||
%if 0%{?suse_version} >= 1310
|
||||
install -D -m 0644 tools/syntax/vim/syntax/%{name}.vim %{buildroot}%{_datadir}/vim/vim74/syntax/%{name}.vim
|
||||
install -D -m 0644 tools/syntax/vim/ftdetect/%{name}.vim %{buildroot}%{_datadir}/vim/vim74/ftdetect/%{name}.vim
|
||||
|
@ -447,6 +453,7 @@ install -D -m 0644 tools/syntax/vim/ftdetect/%{name}.vim %{buildroot}%{_datadir}
|
|||
install -D -m 0644 tools/syntax/vim/syntax/%{name}.vim %{buildroot}%{_datadir}/vim/vim72/syntax/%{name}.vim
|
||||
install -D -m 0644 tools/syntax/vim/ftdetect/%{name}.vim %{buildroot}%{_datadir}/vim/vim72/ftdetect/%{name}.vim
|
||||
%endif
|
||||
%endif
|
||||
%else
|
||||
install -D -m 0644 tools/syntax/vim/syntax/%{name}.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/%{name}.vim
|
||||
install -D -m 0644 tools/syntax/vim/ftdetect/%{name}.vim %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/%{name}.vim
|
||||
|
@ -801,6 +808,10 @@ fi
|
|||
%files -n vim-icinga2
|
||||
%defattr(-,root,root,-)
|
||||
%if "%{_vendor}" == "suse"
|
||||
%if 0%{?leap_version} >= 420100
|
||||
%{_datadir}/vim/site/syntax/%{name}.vim
|
||||
%{_datadir}/vim/site/ftdetect/%{name}.vim
|
||||
%else
|
||||
%if 0%{?suse_version} >= 1310
|
||||
%{_datadir}/vim/vim74/syntax/%{name}.vim
|
||||
%{_datadir}/vim/vim74/ftdetect/%{name}.vim
|
||||
|
@ -808,6 +819,7 @@ fi
|
|||
%{_datadir}/vim/vim72/syntax/%{name}.vim
|
||||
%{_datadir}/vim/vim72/ftdetect/%{name}.vim
|
||||
%endif
|
||||
%endif
|
||||
%else
|
||||
%{_datadir}/vim/vimfiles/syntax/%{name}.vim
|
||||
%{_datadir}/vim/vimfiles/ftdetect/%{name}.vim
|
||||
|
|
Loading…
Reference in New Issue