Python3 fixes

This commit is contained in:
Daniele Viganò 2017-10-01 17:28:32 +02:00
parent dcd0fc343b
commit 2c3a7d4950

View File

@ -90,7 +90,7 @@ BuildRequires: qwt-qt5-devel
Requires: gpsbabel Requires: gpsbabel
# We don't want to provide private Python extension libs # We don't want to provide private Python extension libs
%global __provides_exclude_from ^(%{python_sitearch}|%{_libdir}/%{name}/plugins)/.*\.so(\.%{version})?$ %global __provides_exclude_from ^(%{python3_sitearch}|%{_libdir}/%{name}/plugins)/.*\.so(\.%{version})?$
%description %description
Geographic Information System (GIS) manages, analyzes, and displays Geographic Information System (GIS) manages, analyzes, and displays
@ -331,18 +331,18 @@ update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%files -n python3-qgis %files -n python3-qgis
%{_libdir}/libqgispython.so.* %{_libdir}/libqgispython.so.*
%{_datadir}/%{name}/python/ %{_datadir}/%{name}/python/
%{python_sitearch}/%{name}/ %{python3_sitearch}/%{name}/
%{python_sitearch}/PyQt/uic/widget-plugins/ %{python3_sitearch}/PyQt5/uic/widget-plugins/
%exclude %{python_sitearch}/%{name}/server/ %exclude %{python3_sitearch}/%{name}/server/
%exclude %{python_sitearch}/%{name}/_server.so %exclude %{python3_sitearch}/%{name}/_server.so
%files server %files server
%doc src/server/admin.sld src/server/wms_metadata.xml %{name}-server-README.fedora %doc src/server/admin.sld src/server/wms_metadata.xml %{name}-server-README.fedora
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}-server.conf %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}-server.conf
%{_libdir}/lib%{name}_server.so.* %{_libdir}/lib%{name}_server.so.*
%{_libexecdir}/%{name}/ %{_libexecdir}/%{name}/
%{python_sitearch}/%{name}/server/ %{python3_sitearch}/%{name}/server/
%{python_sitearch}/%{name}/_server.so %{python3_sitearch}/%{name}/_server.so
%changelog %changelog