From c82630c8bf0f5269bafa4b953c9d00b0f9565424 Mon Sep 17 00:00:00 2001 From: chengquan Date: Sat, 22 Feb 2020 15:33:33 +0800 Subject: [PATCH 1/3] fixbug in installing package --- python2.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python2.spec b/python2.spec index 5816bb8..efb85fe 100644 --- a/python2.spec +++ b/python2.spec @@ -401,6 +401,7 @@ sed -e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME_debug}|" %{SOURCE1} \ %doc README %{_bindir}/pydoc* %{_bindir}/{python2,python%{pybasever}} +%exclude %{_bindir}/python %dir %{_prefix}/lib/python%{pybasever} %dir %{_prefix}/lib/python%{pybasever}/site-packages -- Gitee From f7752b9f496a9d1fa3efd77142441a2326e8fa1a Mon Sep 17 00:00:00 2001 From: chengquan Date: Sat, 22 Feb 2020 15:34:13 +0800 Subject: [PATCH 2/3] fixbug in installing package --- python2.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python2.spec b/python2.spec index efb85fe..1cfe9d8 100644 --- a/python2.spec +++ b/python2.spec @@ -633,6 +633,12 @@ sed -e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME_debug}|" %{SOURCE1} \ %{dynload_dir}/_testcapimodule_d.so %changelog +* Sat Feb 22 2020 openEuler Buildteam - 2.7.16-11 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:fixbug in installing package + * Sat Feb 22 2020 openEuler Buildteam - 2.7.16-11 - Type:bugfix - Id:NA -- Gitee From 5e36e36f1f326fe8a94ddfbf6c79d9f0bca9a294 Mon Sep 17 00:00:00 2001 From: chengquan Date: Sat, 22 Feb 2020 15:53:28 +0800 Subject: [PATCH 3/3] fix bug in installing package --- python2.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python2.spec b/python2.spec index 1cfe9d8..8f84a0a 100644 --- a/python2.spec +++ b/python2.spec @@ -15,7 +15,7 @@ %undefine _debuginfo_subpackages Name: python2 Version: 2.7.16 -Release: 11 +Release: 12 Summary: Python is an interpreted, interactive object-oriented programming language suitable License: Python URL: https://www.python.org/ @@ -401,7 +401,7 @@ sed -e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME_debug}|" %{SOURCE1} \ %doc README %{_bindir}/pydoc* %{_bindir}/{python2,python%{pybasever}} -%exclude %{_bindir}/python +%exclude /usr/bin/python %dir %{_prefix}/lib/python%{pybasever} %dir %{_prefix}/lib/python%{pybasever}/site-packages @@ -633,7 +633,7 @@ sed -e "s|LIBRARY_PATH|%{_libdir}/%{py_INSTSONAME_debug}|" %{SOURCE1} \ %{dynload_dir}/_testcapimodule_d.so %changelog -* Sat Feb 22 2020 openEuler Buildteam - 2.7.16-11 +* Sat Feb 22 2020 openEuler Buildteam - 2.7.16-12 - Type:bugfix - Id:NA - SUG:NA -- Gitee