!10 Add newlinein nspkg.pth to avoid overrunning the line buffer

From: @caodongxia 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-02-21 01:03:17 +00:00 committed by Gitee
commit 00f9d2b00b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-XStatic Name: python-XStatic
Version: 1.0.2 Version: 1.0.2
Release: 1 Release: 2
Summary: XStatic base package with minimal support code Summary: XStatic base package with minimal support code
License: MIT License: MIT
URL: https://github.com/xstatic-py/xstatic URL: https://github.com/xstatic-py/xstatic
@ -89,6 +89,7 @@ fi
popd popd
mv %{buildroot}/filelist.lst . mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.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 %files -n python3-XStatic -f filelist.lst
%dir %{python3_sitelib}/* %dir %{python3_sitelib}/*
@ -97,5 +98,8 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Thu Feb 17 2022 caodongxia <caodongxia@huawei.com> - 1.0.2-2
- Add newline in nspkg.pth to avoid overrunning the line buffer
* Fri Jan 29 2021 Python_Bot <Python_Bot@openeuler.org> * Fri Jan 29 2021 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated - Package Spec generated