diff --git a/python3-pyside2.changes b/python3-pyside2.changes index 724f233..060f1cc 100644 --- a/python3-pyside2.changes +++ b/python3-pyside2.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Aug 9 08:25:41 UTC 2022 - Christophe Giboudeaux + +- Fix the dist-info folder name with python3-setuptools 63 + The dist-info folder created with recent setuptools already + contains the version. + ------------------------------------------------------------------- Fri Jul 1 08:06:29 UTC 2022 - Christophe Giboudeaux diff --git a/python3-pyside2.spec b/python3-pyside2.spec index 8b1cf98..005131d 100644 --- a/python3-pyside2.spec +++ b/python3-pyside2.spec @@ -178,7 +178,11 @@ python3 setup.py dist_info for d in *.dist-info; do # the commands were copied verbatim, not wrapped by entry-points. rm -f $d/entry_points.txt +%if %{pkg_vcmp python3-setuptools < 63} cp -r $d %{buildroot}%{python3_sitearch}/${d/.dist-info/-%{version}.dist-info} +%else + cp -r $d %{buildroot}%{python3_sitearch}/${d} +%endif done # Examples must be installed manually