diff --git a/python3.spec b/python3.spec index bc3c85cabaad36f81fe632387da6200ff32bbc67..12cb5a36b0c518d6a7b7a1592744ad89e65d8fe4 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: 10 +Release: 11 License: Python %global branchversion 3.7 @@ -137,6 +137,14 @@ in other languages that need easy-to-use scripting or automation interfaces. This package Provides python version 3. +%package -n python3-unversioned-command +Summary: The "python" command that runs Python 3 +Requires: %{name} = %{version}-%{release} +Provides: python = %{version}-%{release} +Conflicts: python2 +%description -n python3-unversioned-command +This package contains /usr/bin/python - the "python" command that runs Python 3. + %package devel Summary: Libraries and header files needed for Python development Requires: %{name} = %{version}-%{release} @@ -380,6 +388,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 @@ -631,6 +641,8 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP" %{_libdir}/%{py_INSTSONAME_optimized} %{_libdir}/libpython3.so +%files -n python3-unversioned-command +%{_bindir}/python %files devel %{_bindir}/2to3 @@ -801,6 +813,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP" %{_mandir}/*/* %changelog +* Tue Jun 2 2020 hanxinke - 3.7.4-11 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:add python3-unversioned-command package + * Mon Jun 1 2020 hanxinke - 3.7.4-10 - Type:bugfix - ID:NA