From 981899a6ab47de989b3e4e673bfc517e6cd955d5 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Thu, 17 Feb 2022 19:56:17 +0800 Subject: [PATCH] fix error in nspkg.pth (cherry picked from commit 81e3b0cbb8a57766de94ba31608c933a41833e44) --- python-XStatic.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-XStatic.spec b/python-XStatic.spec index 63b0644..466a555 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 +- fix error in nspkg.pth + * Fri Jan 29 2021 Python_Bot - Package Spec generated -- Gitee