From abcbcdf4877fd6aa94fd435c041cd04d5c538e2e Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Tue, 12 Oct 2021 21:03:29 +0800 Subject: [PATCH] Delete pycache and tests and v4 directory when uninstalling (cherry picked from commit c3e58a6da986fedc55890e84b98fa9efcccdb6cc) --- python-gitlab.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/python-gitlab.spec b/python-gitlab.spec index e271b3e..f2a0884 100644 --- a/python-gitlab.spec +++ b/python-gitlab.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: python-python-gitlab Version: 2.6.0 -Release: 1 +Release: 2 Summary: Interact with GitLab API License: LGPLv3 URL: https://github.com/python-gitlab/python-gitlab @@ -69,10 +69,22 @@ mv %{buildroot}/doclist.lst . %files -n python3-python-gitlab -f filelist.lst %dir %{python3_sitelib}/* +%dir %{python3_sitelib}/gitlab/__pycache__ +%dir %{python3_sitelib}/gitlab/tests +%dir %{python3_sitelib}/gitlab/tests/__pycache__ +%dir %{python3_sitelib}/gitlab/tests/objects +%dir %{python3_sitelib}/gitlab/tests/objects/__pycache__ +%dir %{python3_sitelib}/gitlab/v4 +%dir %{python3_sitelib}/gitlab/v4/__pycache__ +%dir %{python3_sitelib}/gitlab/v4/objects +%dir %{python3_sitelib}/gitlab/v4/objects/__pycache__ %files help -f doclist.lst %{_docdir}/* %changelog +* Tue Oct 12 2021 caodongxia - 2.6.0-2 +- Delete pycache and tests and v4 directory when uninstalling + * Sat Feb 13 2021 Python_Bot - Package Spec generated -- Gitee