Merged
[sync] PR-13: Add the %postun script to delete python3-pycpuinfo legacy files #19
openeuler-ci-botAdd on Aug 14
[sync] PR-13: Add the %postun script to delete python3-pycpuinfo legacy files #19
Merged
Total: 1 files changed+9-1
| @@ -1,7 +1,7 @@ | |||
| 1 | %global _empty_manifest_terminate_build 0 | 1 | %global _empty_manifest_terminate_build 0 |
| 2 | Name: pycpuinfo | 2 | Name: pycpuinfo |
| 3 | Version: 9.0.0 | 3 | Version: 9.0.0 |
| 4 | -Release: 2 | 4 | +Release: 3 |
| 5 | Summary: Get CPU info with pure Python 2 & 3 | 5 | Summary: Get CPU info with pure Python 2 & 3 |
| 6 | License: MIT | 6 | License: MIT |
| 7 | URL: https://github.com/workhorsy/py-cpuinfo | 7 | URL: https://github.com/workhorsy/py-cpuinfo |
| @@ -64,6 +64,11 @@ popd | |||
| 64 | mv %{buildroot}/filelist.lst . | 64 | mv %{buildroot}/filelist.lst . |
| 65 | mv %{buildroot}/doclist.lst . | 65 | mv %{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.lst | 72 | %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 | %changelog | 78 | %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-2 | 82 | * Thu May 09 2024 Huang Yang <huangyang@loongson.cn> - 9.0.0-2 |
| 75 | - add loongarch support | 83 | - add loongarch support |
| 76 | 84 | ||