From a111617db23d0c857c24192d65f284a712674d68 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Thu, 24 Jun 2021 09:41:44 +0200 Subject: [PATCH] enable libsodium encryption in Fedora --- vim.spec | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/vim.spec b/vim.spec index 28cf4ede..01d0e27f 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 @@ -365,6 +371,11 @@ mv -f ex_cmds.c.save ex_cmds.c --enable-luainterp=dynamic \ %else --disable-luainterp \ +%endif +%if %{with libsodium_crypt} + --enable-libsodium \ +%else + --disable-libsodium \ %endif --enable-fail-if-missing \ --enable-canberra @@ -402,6 +413,11 @@ make clean --enable-luainterp=dynamic \ %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