Merged
[sync] PR-13: Add the %postun script to delete python3-pycpuinfo legacy files #19
[sync] PR-13: Add the %postun script to delete python3-pycpuinfo legacy files #19
Merged
openeuler-ci-botAdd on Aug 14
Total: 1 files changed+9-1
@@ -1,7 +1,7 @@
1%global _empty_manifest_terminate_build 01%global _empty_manifest_terminate_build 0
2Name: pycpuinfo2Name: pycpuinfo
3Version: 9.0.03Version: 9.0.0
4-Release: 24+Release: 3
5Summary: Get CPU info with pure Python 2 & 35Summary: Get CPU info with pure Python 2 & 3
6License: MIT6License: MIT
7URL: https://github.com/workhorsy/py-cpuinfo7URL: https://github.com/workhorsy/py-cpuinfo
@@ -64,6 +64,11 @@ popd
64mv %{buildroot}/filelist.lst .64mv %{buildroot}/filelist.lst .
65mv %{buildroot}/doclist.lst .65mv %{buildroot}/doclist.lst .
66 66 
67+%postun -n python3-pycpuinfo
68+if [ -d %{python3_sitelib}/cpuinfo ]; then
69+ rm -rf %{python3_sitelib}/cpuinfo
70+fi
71+ 
67%files -n python3-pycpuinfo -f filelist.lst72%files -n python3-pycpuinfo -f filelist.lst
68%dir %{python3_sitelib}/*73%dir %{python3_sitelib}/*
69 74 
@@ -71,6 +76,9 @@ mv %{buildroot}/doclist.lst .
71%{_docdir}/*76%{_docdir}/*
72 77 
73%changelog78%changelog
79+* Thu Jul 9 2026 wangqiang <wangqiang1@kylinos.cn> - 9.0.0-3
80+- Add the %postun script to delete python3-pkginfo legacy files
81+ 
74* Thu May 09 2024 Huang Yang <huangyang@loongson.cn> - 9.0.0-282* Thu May 09 2024 Huang Yang <huangyang@loongson.cn> - 9.0.0-2
75- add loongarch support83- add loongarch support
76 84