From a79eb52b42e3bb93cc827921ce629a62c4b051d7 Mon Sep 17 00:00:00 2001 From: fyq_950317 Date: Thu, 18 Jun 2020 16:43:28 +0800 Subject: [PATCH 1/5] 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/5] 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/5] 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 From e7aa3299a4c5ca946420f1a706bdc59fda58cd73 Mon Sep 17 00:00:00 2001 From: 19909236985 Date: Fri, 19 Jun 2020 10:09:42 +0800 Subject: [PATCH 4/5] change spec file --- python-zipp.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-zipp.spec b/python-zipp.spec index ead7a14..b38ae5b 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -1,6 +1,6 @@ Name: python-zipp Version: 0.5.1 -Release: 1 +Release: 2 Summary: Backport of pathlib-compatible object wrapper for zip files License: MIT URL: https://github.com/jaraco/zipp @@ -47,3 +47,7 @@ A pathlib-compatible Zipfile object wrapper. A backport of the Path object. * Tue Feb 11 2020 huzunhao - 0.5.1-1 - Package init +* Fri Jun 19 2020 wuchaochao - 0.5.1-2 +- Change spec file + + -- Gitee From 53e6895c9ee9fb65bfe8ab572bd6a407a8cc58a2 Mon Sep 17 00:00:00 2001 From: 19909236985 Date: Fri, 19 Jun 2020 11:10:14 +0800 Subject: [PATCH 5/5] Depend on the python version to revise the spec file is variable --- python-zipp.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/python-zipp.spec b/python-zipp.spec index b38ae5b..aa7cef0 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -44,10 +44,8 @@ A pathlib-compatible Zipfile object wrapper. A backport of the Path object. %doc README.rst %changelog -* Tue Feb 11 2020 huzunhao - 0.5.1-1 -- Package init - * Fri Jun 19 2020 wuchaochao - 0.5.1-2 -- Change spec file - +- Depend on the python version to revise the spec file is variable +* Tue Feb 11 2020 huzunhao - 0.5.1-1 +- Package init -- Gitee