Enable perl in flatpak builds

perl is now available for use in flatpak apps, but no assumptions should
be made as to the location of a given Perl module.
This commit is contained in:
Yaakov Selkowitz 2023-11-16 08:46:34 -05:00
parent 7667b5b7de
commit 5f7b13674e

View File

@ -29,11 +29,10 @@
%define withvimspell 0
%define withhunspell 0
%define withlua 1
%define withperl 1
%if 0%{?flatpak}
%define withperl 0
%define withruby 0
%else
%define withperl 1
%define withruby 1
%endif
@ -486,6 +485,7 @@ mv -f os_unix.h.save os_unix.h
%endif
%if "%{withperl}" == "1"
--enable-perlinterp=dynamic \
--with-xsubpp=$(which xsubpp) \
%else
--disable-perlinterp \
%endif
@ -534,6 +534,7 @@ make clean
%endif
%if "%{withperl}" == "1"
--enable-perlinterp=dynamic \
--with-xsubpp=$(which xsubpp) \
%else
--disable-perlinterp \
%endif