!14 python3: add python3-unversioned-command package
Merge pull request !14 from hanxinke/master
This commit is contained in:
commit
6935501ff2
20
python3.spec
20
python3.spec
@ -3,7 +3,7 @@ Summary: Interpreter of the Python3 programming language
|
|||||||
URL: https://www.python.org/
|
URL: https://www.python.org/
|
||||||
|
|
||||||
Version: 3.7.4
|
Version: 3.7.4
|
||||||
Release: 10
|
Release: 11
|
||||||
License: Python
|
License: Python
|
||||||
|
|
||||||
%global branchversion 3.7
|
%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.
|
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
|
%package devel
|
||||||
Summary: Libraries and header files needed for Python development
|
Summary: Libraries and header files needed for Python development
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -380,6 +388,8 @@ ln -s \
|
|||||||
%{_bindir}/python%{LDVERSION_debug} \
|
%{_bindir}/python%{LDVERSION_debug} \
|
||||||
%{buildroot}%{_bindir}/python3-debug
|
%{buildroot}%{_bindir}/python3-debug
|
||||||
|
|
||||||
|
ln -s %{_bindir}/python3 %{buildroot}%{_bindir}/python
|
||||||
|
|
||||||
mv %{buildroot}%{_bindir}/2to3-%{branchversion} %{buildroot}%{_bindir}/2to3
|
mv %{buildroot}%{_bindir}/2to3-%{branchversion} %{buildroot}%{_bindir}/2to3
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -631,6 +641,8 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
|
|||||||
%{_libdir}/%{py_INSTSONAME_optimized}
|
%{_libdir}/%{py_INSTSONAME_optimized}
|
||||||
%{_libdir}/libpython3.so
|
%{_libdir}/libpython3.so
|
||||||
|
|
||||||
|
%files -n python3-unversioned-command
|
||||||
|
%{_bindir}/python
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_bindir}/2to3
|
%{_bindir}/2to3
|
||||||
@ -801,6 +813,12 @@ export BEP_GTDLIST="$BEP_GTDLIST_TMP"
|
|||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 2 2020 hanxinke<hanxinke@huawei.com> - 3.7.4-11
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:add python3-unversioned-command package
|
||||||
|
|
||||||
* Mon Jun 1 2020 hanxinke<hanxinke@huawei.com> - 3.7.4-10
|
* Mon Jun 1 2020 hanxinke<hanxinke@huawei.com> - 3.7.4-10
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user