[packages/vim] add python3 bcond

atler atler at pld-linux.org
Mon Dec 16 01:04:55 CET 2019


commit 37f9ebf5b93cfe735853284fbcd2a3d8f1eea003
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Dec 16 00:42:48 2019 +0100

    add python3 bcond

 vim.spec | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/vim.spec b/vim.spec
index f1ac6e8..6105c3c 100644
--- a/vim.spec
+++ b/vim.spec
@@ -12,7 +12,8 @@
 %bcond_without	x11		# don't build vimx (non-GUI with X11 clipboard support)
 %bcond_with	lua		# with Lua interp in vim package
 %bcond_with	perl		# with Perl interp in vim package
-%bcond_with	python		# with Python interp in vim package
+%bcond_with	python		# with Python 2 interp in vim package
+%bcond_with	python3		# with Python 3 interp in vim package
 %bcond_with	ruby		# with Ruby interp in vim package
 %bcond_with	tcl		# with Tcl interp
 %bcond_without	selinux		# without selinux support
@@ -153,6 +154,11 @@ BuildRequires:	perl-devel
 %endif
 %if %{with python} || %{with heavy}
 BuildRequires:	python-devel >= 2.3
+%endif
+%if %{with python3} || %{with heavy}
+BuildRequires:	python3-devel
+%endif
+%if %{with python} || %{with python3} || %{with heavy}
 BuildRequires:	rpm-pythonprov
 %endif
 BuildRequires:	rpm >= 4.4.9-56
@@ -844,6 +850,7 @@ build() {
 		--%{!?with_lua:dis}%{?with_lua:en}able-luainterp \
 		--%{!?with_perl:dis}%{?with_perl:en}able-perlinterp \
 		--%{!?with_python:dis}%{?with_python:en}able-pythoninterp \
+		--%{!?with_python3:dis}%{?with_python3:en}able-python3interp \
 		--%{!?with_ruby:dis}%{?with_ruby:en}able-rubyinterp \
 		--%{!?with_tcl:dis}%{?with_tcl:en}able-tclinterp \
 		%{!?with_selinux:--disable-selinux} \
@@ -975,6 +982,7 @@ build vim.heavy \
 	--enable-luainterp \
 	--enable-perlinterp \
 	--enable-pythoninterp \
+	--enable-python3interp \
 	--enable-rubyinterp \
 	--enable-tclinterp \
 	--disable-canberra \
@@ -989,6 +997,7 @@ build gvim.heavy \
 	--enable-luainterp \
 	--enable-perlinterp \
 	--enable-pythoninterp \
+	--enable-python3interp \
 	--enable-rubyinterp \
 	--enable-tclinterp \
 	--disable-gpm
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vim.git/commitdiff/28ce0b6b081c8f06a4b77aa427569a87f40d0380



More information about the pld-cvs-commit mailing list