Accepting request 994106 from KDE:Qt5

- Fix the dist-info folder name with python3-setuptools 63
  The dist-info folder created with recent setuptools already
  contains the version.

OBS-URL: https://build.opensuse.org/request/show/994106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python3-pyside2?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2022-08-09 13:29:13 +00:00 committed by Git OBS Bridge
commit c0156a2e79
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Aug 9 08:25:41 UTC 2022 - Christophe Giboudeaux <christophe@krop.fr>
- 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 <christophe@krop.fr>

View File

@ -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