From c7b569194484ab6bbbcebcaf990230882ac5d8b7 Mon Sep 17 00:00:00 2001 From: chengquan Date: Sat, 22 Feb 2020 14:53:35 +0800 Subject: [PATCH] Add the default version of python3 --- python3.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/python3.spec b/python3.spec index 753838e..cc85b5a 100644 --- a/python3.spec +++ b/python3.spec @@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language URL: https://www.python.org/ Version: 3.7.4 -Release: 5 +Release: 6 License: Python %global branchversion 3.7 @@ -105,6 +105,7 @@ Patch6000: CVE-2019-16056.patch Patch6001: CVE-2019-16935.patch Patch6002: CVE-2019-17514.patch +Provides: python = %{version}-%{release} Provides: python%{branchversion} = %{version}-%{release} Provides: python(abi) = %{branchversion} @@ -369,6 +370,8 @@ ln -s \ %{_bindir}/python%{LDVERSION_debug} \ %{buildroot}%{_bindir}/python3-debug +ln -s %{_bindir}/python3 %{buildroot}%{_bindir}/python + mv %{buildroot}%{_bindir}/2to3-%{branchversion} %{buildroot}%{_bindir}/2to3 %check @@ -411,7 +414,7 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP" %files %license LICENSE %doc README.rst - +%{_bindir}/python %{_bindir}/pydoc* %{_bindir}/python3 %{_bindir}/pyvenv @@ -790,6 +793,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP" %{_mandir}/*/* %changelog +* Sat Feb 22 2020 chengquan - 3.7.4-6 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:Add the default version of python3 + * Tue Dec 31 2019 hanxinke - 3.7.4-5 - Type:enhancement - ID:NA -- Gitee