move desktop entry to -desktop subpackage [release 9.0.0040-2mamba;Sat Jul 09 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 18:57:09 +01:00
parent 2e41d8c488
commit 9ca41d1b9c

View File

@ -2,12 +2,11 @@
## *AUTOSPEC-OFF*
%define vimdir %{name}%(majversion=%majversion; echo ${majversion/\./})
## *AUTOSPEC-ON*
%define langversion 7.2
%define with_gvim 0
Name: vim
Version: 9.0.0040
Release: 1mamba
Release: 2mamba
Summary: VIsual editor iMproved
Group: Applications/Text
Vendor: openmamba
@ -36,6 +35,15 @@ Vi was the first real screen-based editor for UNIX, and is still very popular.
VIM improves on vi by adding new features: multiple windows, multi-level undo, block highlighting and more. VIM-X11 is a version of the VIM editor which will run within the X Window System.
If you install this package, you can run VIM as an X application with a full GUI interface and mouse support.
%package desktop
Group: Graphical Desktop/Applications/Utilities
Summary: Desktop menu entry for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description desktop
VIM (VIsual editor iMproved) is an updated and improved version of the vi editor.
This package provides a desktop menu entry for %{name}.
%package doc
Group: Documentation
Summary: Documentation for %{name}
@ -153,20 +161,37 @@ install -m 0755 -D src/gvim %{buildroot}%{_bindir}/gvim
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/skel/.vimrc
%{_bindir}/*
%{_datadir}/applications/gvim.desktop
%{_datadir}/applications/vim.desktop
%{_bindir}/ex
%{_bindir}/rview
%{_bindir}/rvim
%{_bindir}/vi
%{_bindir}/view
%{_bindir}/vim
%{_bindir}/vimdiff
%{_bindir}/xxd
%dir %{_datadir}/vim/%{vimdir}
%{_datadir}/vim/%{vimdir}/*
%exclude %{_datadir}/vim/%{vimdir}/doc
%exclude %{_datadir}/vim/%{vimdir}/tutor
%{_datadir}/icons/locolor/*/apps/gvim.png
%{_datadir}/icons/hicolor/*/apps/gvim.png
%{_mandir}/man1/*
%{_mandir}/man1/evim.1*
%{_mandir}/man1/ex.1*
%{_mandir}/man1/rview.1*
%{_mandir}/man1/rvim.1*
%{_mandir}/man1/view.1*
%{_mandir}/man1/vim.1*
%{_mandir}/man1/vimdiff.1*
%{_mandir}/man1/xxd.1*
/root/.vimrc
%files desktop
%defattr(-,root,root)
%if %{with_gvim}
%{_bindir}/gvim
%endif
/root/.vimrc
%{_datadir}/applications/gvim.desktop
%{_datadir}/applications/vim.desktop
%{_datadir}/icons/locolor/*/apps/gvim.png
%{_datadir}/icons/hicolor/*/apps/gvim.png
%files doc
%defattr(-,root,root)
@ -174,9 +199,14 @@ install -m 0755 -D src/gvim %{buildroot}%{_bindir}/gvim
%files tutor
%defattr(-,root,root)
%{_bindir}/vimtutor
%{_datadir}/vim/%{vimdir}/tutor
%{_mandir}/man1/vimtutor.1*
%changelog
* Sat Jul 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 9.0.0040-2mamba
- move desktop entry to -desktop subpackage
* Thu Jul 07 2022 Automatic Build System <autodist@mambasoft.it> 9.0.0040-1mamba
- automatic version update by autodist