Fix package build with setuptools >= 60.x

This commit is contained in:
Karolina Surma 2022-03-07 10:43:01 +01:00
parent bcede7dd8d
commit 971e092603

View File

@ -11,7 +11,7 @@
Name: mapserver
Version: 7.6.4
Release: 11%{?dist}
Release: 12%{?dist}
Summary: Environment for building spatially-enabled internet applications
%global dashver %(echo %version | sed 's|\\.|-|g')
@ -232,12 +232,6 @@ extension=php_mapscript.so
EOF
%endif
# Move python bindings to sitearch
if [ "%{python3_sitelib}" != "%{python3_sitearch}" ]; then
mkdir -p %{buildroot}%{python3_sitearch}
mv %{buildroot}%{python3_sitelib}/* %{buildroot}%{python3_sitearch}
fi
%ldconfig_scriptlets libs
@ -303,6 +297,9 @@ fi
%changelog
* Mon Mar 07 2022 Karolina Surma <ksurma@redhat.com> - 7.6.4-12
- It's no longer needed to move Python bindings with setuptools >= 60.x
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 7.6.4-11
- Rebuilt for java-17-openjdk as system jdk