1957209 - remove vim-default-editor from el9

Resolves: rhbz#1957209
This commit is contained in:
Zdenek Dohnal 2021-05-06 11:05:05 +02:00
parent f110e6a859
commit dd70680395

View File

@ -7,6 +7,12 @@
%define desktop_file_utils_version 0.2.93
%endif
%if 0%{?fedora}
%bcond_without default_editor
%else
%bcond_with default_editor
%endif
%define withnetbeans 1
%define withvimspell 0
@ -21,7 +27,7 @@ Summary: The VIM editor
URL: http://www.vim.org/
Name: vim
Version: %{baseversion}.%{patchlevel}
Release: 2%{?dist}
Release: 3%{?dist}
License: Vim and MIT
Source0: ftp://ftp.vim.org/pub/vim/unix/vim-%{baseversion}-%{patchlevel}.tar.bz2
Source1: virc
@ -224,6 +230,7 @@ Install the vim-X11 package if you'd like to try out a version of vi
with graphics and mouse capabilities. You'll also need to install the
vim-common package.
%if %{with default_editor}
%package default-editor
Summary: Set vim as the default editor
BuildArch: noarch
@ -235,6 +242,7 @@ Requires: vim-enhanced
%description default-editor
This subpackage contains files needed to set Vim as the default editor.
%endif
%prep
@ -540,12 +548,17 @@ chmod 644 %{buildroot}/%{_datadir}/%{name}/%{vimdir}/doc/vim2html.pl \
%{buildroot}/%{_datadir}/%{name}/%{vimdir}/tools/vim132
chmod 644 ../runtime/doc/vim2html.pl
mkdir -p %{buildroot}/%{_sysconfdir}
%if %{with default_editor}
mkdir -p %{buildroot}/%{_sysconfdir}/profile.d
install -p -m644 %{SOURCE9} %{buildroot}/%{_sysconfdir}/profile.d/vim-default-editor.sh
install -p -m644 %{SOURCE10} %{buildroot}/%{_sysconfdir}/profile.d/vim-default-editor.csh
mkdir -p %{buildroot}/%{_datadir}/fish/vendor_conf.d/
install -p -m644 %{SOURCE11} %{buildroot}/%{_datadir}/fish/vendor_conf.d/vim-default-editor.fish
mkdir -p %{buildroot}/%{_datadir}/fish/vendor_functions.d/
%endif
install -p -m644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/virc
install -p -m644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/vimrc
@ -812,13 +825,18 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags
%dir %{_datadir}/icons/locolor/*/apps
%{_datadir}/icons/locolor/*/apps/*
%if %{with default_editor}
%files default-editor
%dir %{_datadir}/fish/vendor_conf.d
%{_datadir}/fish/vendor_conf.d/vim-default-editor.fish
%dir %{_sysconfdir}/profile.d
%config(noreplace) %{_sysconfdir}/profile.d/vim-default-editor.*
%endif
%changelog
* Thu May 06 2021 Zdenek Dohnal <zdohnal@redhat.com> - 2.8.2.2637-3
- 1957209 - remove vim-default-editor from el9
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2:8.2.2637-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937