From a79eb52b42e3bb93cc827921ce629a62c4b051d7 Mon Sep 17 00:00:00 2001 From: fyq_950317 Date: Thu, 18 Jun 2020 16:43:28 +0800 Subject: [PATCH 1/3] change spec file --- python-zipp.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-zipp.spec b/python-zipp.spec index 1b964a0..faa5492 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -36,10 +36,10 @@ A pathlib-compatible Zipfile object wrapper. A backport of the Path object. %files -n python3-zipp %defattr(-,root,root) %license LICENSE -%_prefix/lib/python3.7/site-packages/zipp* -%_prefix/lib/python3.7/site-packages/__pycache__/zipp.* +%_prefix/lib/python%(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")/site-packages/zipp* +%_prefix/lib/python%(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")/site-packages/__pycache__/zipp.* -%files help +#%files help %defattr(-,root,root) %doc README.rst -- Gitee From aec0172e48fbdb32010e532c188e820de6960ea5 Mon Sep 17 00:00:00 2001 From: 19909236985 Date: Thu, 18 Jun 2020 17:24:58 +0800 Subject: [PATCH 2/3] change spec file --- python-zipp.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-zipp.spec b/python-zipp.spec index faa5492..39002fd 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -36,8 +36,8 @@ A pathlib-compatible Zipfile object wrapper. A backport of the Path object. %files -n python3-zipp %defattr(-,root,root) %license LICENSE -%_prefix/lib/python%(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")/site-packages/zipp* -%_prefix/lib/python%(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")/site-packages/__pycache__/zipp.* +%_prefix/lib/python%{python3_version}/site-packages/zipp* +%_prefix/lib/python%{python3_version}/site-packages/__pycache__/zipp.* #%files help %defattr(-,root,root) -- Gitee From 73a568205b95b61d43ad34c8b513b2e97175d31a Mon Sep 17 00:00:00 2001 From: 19909236985 Date: Thu, 18 Jun 2020 17:27:24 +0800 Subject: [PATCH 3/3] change spec file --- python-zipp.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-zipp.spec b/python-zipp.spec index 39002fd..ead7a14 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -39,7 +39,7 @@ A pathlib-compatible Zipfile object wrapper. A backport of the Path object. %_prefix/lib/python%{python3_version}/site-packages/zipp* %_prefix/lib/python%{python3_version}/site-packages/__pycache__/zipp.* -#%files help +%files help %defattr(-,root,root) %doc README.rst -- Gitee