From 602fab92808d1beae6617e9314335ea92fc455aa Mon Sep 17 00:00:00 2001 From: fyq_950317 Date: Thu, 18 Jun 2020 16:36:45 +0800 Subject: [PATCH 1/2] change spec hardcode the dependent python version number --- python-hwdata.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-hwdata.spec b/python-hwdata.spec index 15da8d7..a0e6099 100644 --- a/python-hwdata.spec +++ b/python-hwdata.spec @@ -68,13 +68,13 @@ popd %files -n python2-hwdata %defattr(-,root,root) %license LICENSE -%_prefix/lib/python2.7/site-packages/* +%{python2_sitelib}/* %endif # with python2 %files -n python3-hwdata %defattr(-,root,root) %license LICENSE -%_prefix/lib/python3.7/site-packages/* +%{python3_sitelib}/* %files help %defattr(-,root,root) -- Gitee From 2f5abd1dec2c0eb38168a1de3108a14671f8016b Mon Sep 17 00:00:00 2001 From: fyq_950317 Date: Thu, 18 Jun 2020 16:36:45 +0800 Subject: [PATCH 2/2] change spec hardcode the dependent python version number --- python-hwdata.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/python-hwdata.spec b/python-hwdata.spec index 15da8d7..c8c384a 100644 --- a/python-hwdata.spec +++ b/python-hwdata.spec @@ -2,7 +2,7 @@ Name: python-hwdata Version: 2.3.7 -Release: 5 +Release: 6 Summary: Python bindings to hwdata package License: GPLv2 URL: https://github.com/xsuchy/python-hwdata @@ -68,18 +68,24 @@ popd %files -n python2-hwdata %defattr(-,root,root) %license LICENSE -%_prefix/lib/python2.7/site-packages/* +%{python2_sitelib}/* %endif # with python2 %files -n python3-hwdata %defattr(-,root,root) %license LICENSE -%_prefix/lib/python3.7/site-packages/* +%{python3_sitelib}/* %files help %defattr(-,root,root) %doc example.py README.md html %changelog +* Fri Jun 19 2020 fuyangqing - 2.3.7-6 +-Type:bugfix +-ID:NA +-SUG:NA +-DESC:change sepc hardcode the dependent python version number + * Tue Feb 11 2020 huzunhao - 2.3.7-5 - Package init -- Gitee