From 2c3a7d495048769b269314e5a722a64a41d174ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sun, 1 Oct 2017 17:28:32 +0200 Subject: [PATCH] Python3 fixes --- qgis.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qgis.spec b/qgis.spec index e64cc89..61f69b4 100644 --- a/qgis.spec +++ b/qgis.spec @@ -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