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
# 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
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
%{_libdir}/libqgispython.so.*
%{_datadir}/%{name}/python/
%{python_sitearch}/%{name}/
%{python_sitearch}/PyQt/uic/widget-plugins/
%exclude %{python_sitearch}/%{name}/server/
%exclude %{python_sitearch}/%{name}/_server.so
%{python3_sitearch}/%{name}/
%{python3_sitearch}/PyQt5/uic/widget-plugins/
%exclude %{python3_sitearch}/%{name}/server/
%exclude %{python3_sitearch}/%{name}/_server.so
%files server
%doc src/server/admin.sld src/server/wms_metadata.xml %{name}-server-README.fedora
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}-server.conf
%{_libdir}/lib%{name}_server.so.*
%{_libexecdir}/%{name}/
%{python_sitearch}/%{name}/server/
%{python_sitearch}/%{name}/_server.so
%{python3_sitearch}/%{name}/server/
%{python3_sitearch}/%{name}/_server.so
%changelog