diff --git a/vim.spec b/vim.spec index 28cf4ed..01d0e27 100644 --- a/vim.spec +++ b/vim.spec @@ -9,8 +9,10 @@ %if 0%{?fedora} %bcond_without default_editor +%bcond_without libsodium_crypt %else %bcond_with default_editor +%bcond_with libsodium_crypt %endif %define withnetbeans 1 @@ -76,6 +78,9 @@ BuildRequires: gcc # uses make BuildRequires: make +%if %{with libsodium_crypt} +BuildRequires: libsodium +%endif BuildRequires: python3-devel ncurses-devel gettext perl-devel BuildRequires: perl-generators BuildRequires: perl(ExtUtils::Embed) perl(ExtUtils::ParseXS) @@ -322,7 +327,8 @@ perl -pi -e "s/vimrc/virc/" os_unix.h --with-modified-by="" \ --enable-fips-warning \ --enable-fail-if-missing \ - --disable-canberra + --disable-canberra \ + --disable-libsodium %make_build VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} cp vim minimal-vim @@ -366,6 +372,11 @@ mv -f ex_cmds.c.save ex_cmds.c %else --disable-luainterp \ %endif +%if %{with libsodium_crypt} + --enable-libsodium \ +%else + --disable-libsodium \ +%endif --enable-fail-if-missing \ --enable-canberra @@ -403,6 +414,11 @@ make clean %else --disable-luainterp \ %endif +%if %{with libsodium_crypt} + --enable-libsodium \ +%else + --disable-libsodium \ +%endif --enable-fail-if-missing \ --disable-canberra @@ -841,6 +857,7 @@ touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags %changelog * Thu Jun 24 2021 Zdenek Dohnal - 2:8.2.3043-1 - patchlevel 3043 +- enable libsodium encryption in Fedora * Wed Jun 16 2021 Zdenek Dohnal - 2:8.2.3009-1 - patchlevel 3009