diff --git a/mapserver.spec b/mapserver.spec index 5734634..571ca49 100644 --- a/mapserver.spec +++ b/mapserver.spec @@ -219,6 +219,12 @@ mkdir -p %{buildroot}%{_datadir}/%{name} install -p -m 644 xmlmapfile/mapfile.xsd %{buildroot}%{_datadir}/%{name} install -p -m 644 xmlmapfile/mapfile.xsl %{buildroot}%{_datadir}/%{name} +# Move python bindings to sitearch +if [ "%{python3_sitelib}" != "%{python3_sitearch}" ]; then + mkdir -p %{buildroot}%{python3_sitearch} + mv %{buildroot}%{python3_sitelib}/* %{buildroot}%{python3_sitearch} +fi + # install java mkdir -p %{buildroot}%{_javadir} install -p -m 644 %{_vpath_builddir}/mapscript/java/mapscript.jar %{buildroot}%{_javadir}/