From a442d9ac1eca0b323542019d7cbb23f132dbd7fa Mon Sep 17 00:00:00 2001 From: cherry530 Date: Tue, 12 Oct 2021 11:36:20 +0800 Subject: [PATCH] remove pycache and tests dir when uninstall. Signed-off-by: cherry530 (cherry picked from commit 8aa61ce10b3b5febfa73bc03f3a3406cbd92cdc3) --- python-simplejson.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python-simplejson.spec b/python-simplejson.spec index aeab26a..7c1fdb9 100644 --- a/python-simplejson.spec +++ b/python-simplejson.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-simplejson Version: 3.17.0 -Release: 1 +Release: 2 Summary: Simple, fast, extensible JSON encoder/decoder for Python License: MIT License URL: https://github.com/simplejson/simplejson @@ -66,10 +66,16 @@ mv %{buildroot}/doclist.lst . %files -n python3-simplejson -f filelist.lst %dir %{python3_sitearch}/* +%dir %{python3_sitearch}/simplejson/__pycache__ +%dir %{python3_sitearch}/simplejson/tests +%dir %{python3_sitearch}/simplejson/tests/__pycache__ %files help -f doclist.lst %{_pkgdocdir} %changelog +* Tue Oct 12 2021 xu_ping - 3.17.0-2 +- delete pycache and tests directory when uninstalling + * Fri Jun 19 2020 Python_Bot - Package Spec generated