From d0c5bb4167d5954bade5dc11d52f7015aff65a1a Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Fri, 18 Feb 2022 14:29:05 +0800 Subject: [PATCH] Addnewlinein nspkg.pth to avoid overrunning the line buffer (cherry picked from commit e5a77ca1c6005df8b66644cb1654ebf8afb757e3) --- python-XStatic.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-XStatic.spec b/python-XStatic.spec index 63b0644..f397260 100644 --- a/python-XStatic.spec +++ b/python-XStatic.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-XStatic Version: 1.0.2 -Release: 1 +Release: 2 Summary: XStatic base package with minimal support code License: MIT URL: https://github.com/xstatic-py/xstatic @@ -89,6 +89,7 @@ fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . +sed -i '3 s/import sys, types, os;/import sys, types, os;\n/' %{buildroot}/%{python3_sitelib}/XStatic-%{version}-py%{python3_version}-nspkg.pth %files -n python3-XStatic -f filelist.lst %dir %{python3_sitelib}/* @@ -97,5 +98,8 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Feb 17 2022 caodongxia - 1.0.2-2 +- Add newline in nspkg.pth to avoid overrunning the line buffer + * Fri Jan 29 2021 Python_Bot - Package Spec generated -- Gitee