From 0d2c68348ee586c51a25e4c3171945cc6fd1b054 Mon Sep 17 00:00:00 2001 From: yanjianqing Date: Mon, 23 Jun 2025 07:23:50 +0000 Subject: [PATCH] Add the %postun script to delete python3-pycpuinfo legacy files Signed-off-by: yanjianqing --- pycpuinfo.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pycpuinfo.spec b/pycpuinfo.spec index f9f4bef..6ac29cc 100644 --- a/pycpuinfo.spec +++ b/pycpuinfo.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: pycpuinfo Version: 9.0.0 -Release: 1 +Release: 2 Summary: Get CPU info with pure Python 2 & 3 License: MIT URL: https://github.com/workhorsy/py-cpuinfo @@ -63,6 +63,11 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . +%postun -n python3-pycpuinfo +if [ -d /usr/lib/python3.11/site-packages/pkginfo ]; then + rm -rf /usr/lib/python3.11/site-packages/cpuinfo +fi + %files -n python3-pycpuinfo -f filelist.lst %dir %{python3_sitelib}/* @@ -70,6 +75,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Mon Jun 23 2025 yanjianqing - 9.0.0-2 +- Add the %postun script to delete python3-pycpuinfo legacy files + * Wed Nov 16 2022 jiangxinyu - 9.0.0-1 - Update package to version 9.0.0 -- Gitee