Enable python3 on epel7
This commit is contained in:
parent
3bdc7a955c
commit
5684e8153e
@ -1,4 +1,4 @@
|
||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||
%if 0%{?fedora} || 0%{?rhel} > 6
|
||||
%global with_python3 1
|
||||
%global python3_dbus_dir %(%{__python3} -c "import dbus.mainloop; print(dbus.mainloop.__path__[0])" 2>/dev/null || echo "%{python3_sitearch}/dbus/mainloop")
|
||||
%endif
|
||||
@ -22,7 +22,7 @@
|
||||
Summary: PyQt5 is Python bindings for Qt5
|
||||
Name: python-qt5
|
||||
Version: 5.10
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
|
||||
License: GPLv3
|
||||
Url: http://www.riverbankcomputing.com/software/pyqt/
|
||||
@ -78,9 +78,9 @@ BuildRequires: python2-devel python2
|
||||
BuildRequires: %{python2_dbus}
|
||||
BuildRequires: python2-sip-devel >= 4.19.7
|
||||
%if 0%{?with_python3}
|
||||
BuildRequires: python3-devel python3
|
||||
BuildRequires: python3-sip-devel >= 4.19.7
|
||||
BuildRequires: python3-dbus
|
||||
BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}
|
||||
BuildRequires: python%{python3_pkgversion}-sip-devel >= 4.19.7
|
||||
BuildRequires: python%{python3_pkgversion}-dbus
|
||||
%endif # with_python3
|
||||
|
||||
# when split out
|
||||
@ -132,38 +132,38 @@ BuildArch: noarch
|
||||
%description rpm-macros
|
||||
%{summary}.
|
||||
|
||||
%package -n python3-qt5
|
||||
%package -n python%{python3_pkgversion}-qt5
|
||||
Summary: Python 3 bindings for Qt5
|
||||
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
||||
%{?_sip_api:Requires: python3-sip-api(%{_sip_api_major}) >= %{_sip_api}}
|
||||
%{?_sip_api:Requires: python%{python3_pkgversion}-sip-api(%{_sip_api_major}) >= %{_sip_api}}
|
||||
# when split out
|
||||
%if 0%{?webengine} || 0%{?webkit}
|
||||
Obsoletes: python3-qt5 < 5.5.1-10
|
||||
%endif
|
||||
Provides: python3-PyQt5 = %{version}-%{release}
|
||||
Provides: python3-PyQt5%{?_isa} = %{version}-%{release}
|
||||
Requires: python3-qt5-base%{?_isa} = %{version}-%{release}
|
||||
%description -n python3-qt5
|
||||
Provides: python%{python3_pkgversion}-PyQt5 = %{version}-%{release}
|
||||
Provides: python%{python3_pkgversion}-PyQt5%{?_isa} = %{version}-%{release}
|
||||
Requires: python%{python3_pkgversion}-qt5-base%{?_isa} = %{version}-%{release}
|
||||
%description -n python%{python3_pkgversion}-qt5
|
||||
%{summary}.
|
||||
|
||||
%package -n python3-qt5-base
|
||||
%package -n python%{python3_pkgversion}-qt5-base
|
||||
Summary: Python 3 bindings for Qt5 base
|
||||
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
||||
%{?_sip_api:Requires: python3-sip-api(%{_sip_api_major}) >= %{_sip_api}}
|
||||
Provides: python3-PyQt5-base = %{version}-%{release}
|
||||
Provides: python3-PyQt5-base%{?_isa} = %{version}-%{release}
|
||||
%{?_sip_api:Requires: python%{python3_pkgversion}-sip-api(%{_sip_api_major}) >= %{_sip_api}}
|
||||
Provides: python%{python3_pkgversion}-PyQt5-base = %{version}-%{release}
|
||||
Provides: python%{python3_pkgversion}-PyQt5-base%{?_isa} = %{version}-%{release}
|
||||
Requires: %{name}-rpm-macros = %{version}-%{release}
|
||||
Requires: python3-dbus
|
||||
%description -n python3-qt5-base
|
||||
Requires: python%{python3_pkgversion}-dbus
|
||||
%description -n python%{python3_pkgversion}-qt5-base
|
||||
%{summary}.
|
||||
|
||||
%package -n python3-qt5-devel
|
||||
%package -n python%{python3_pkgversion}-qt5-devel
|
||||
Summary: Development files for python3-qt5
|
||||
Requires: python3-qt5%{?_isa} = %{version}-%{release}
|
||||
Requires: python%{python3_pkgversion}-qt5%{?_isa} = %{version}-%{release}
|
||||
Requires: qt5-qtbase-devel
|
||||
Requires: python3-sip-devel
|
||||
Provides: python3-PyQt5-devel = %{version}-%{release}
|
||||
%description -n python3-qt5-devel
|
||||
Requires: python%{python3_pkgversion}-sip-devel
|
||||
Provides: python%{python3_pkgversion}-PyQt5-devel = %{version}-%{release}
|
||||
%description -n python%{python3_pkgversion}-qt5-devel
|
||||
Files needed to build other bindings for C++ classes that inherit from any
|
||||
of the Qt5 classes
|
||||
|
||||
@ -183,12 +183,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description webengine
|
||||
%{summary}.
|
||||
|
||||
%package -n python3-qt5-webengine
|
||||
%package -n python%{python3_pkgversion}-qt5-webengine
|
||||
Summary: Python3 bindings for Qt5 WebEngine
|
||||
Obsoletes: python3-webengine < 5.5.1-13
|
||||
Obsoletes: python3-qt5 < 5.5.1-10
|
||||
Requires: python3-qt5%{?_isa} = %{version}-%{release}
|
||||
%description -n python3-qt5-webengine
|
||||
Requires: python%{python3_pkgversion}-qt5%{?_isa} = %{version}-%{release}
|
||||
%description -n python%{python3_pkgversion}-qt5-webengine
|
||||
%{summary}.
|
||||
%endif
|
||||
|
||||
@ -202,11 +202,11 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description webkit
|
||||
%{summary}.
|
||||
|
||||
%package -n python3-qt5-webkit
|
||||
%package -n python%{python3_pkgversion}-qt5-webkit
|
||||
Summary: Python3 bindings for Qt5 Webkit
|
||||
Obsoletes: python3-qt5 < 5.5.1-10
|
||||
Requires: python3-qt5%{?_isa} = %{version}-%{release}
|
||||
%description -n python3-qt5-webkit
|
||||
Requires: python%{python3_pkgversion}-qt5%{?_isa} = %{version}-%{release}
|
||||
%description -n python%{python3_pkgversion}-qt5-webkit
|
||||
%{summary}.
|
||||
%endif
|
||||
|
||||
@ -386,7 +386,7 @@ sed -i \
|
||||
%endif
|
||||
|
||||
%if 0%{?with_python3}
|
||||
%files -n python3-qt5
|
||||
%files -n python%{python3_pkgversion}-qt5
|
||||
%{python3_sitearch}/PyQt5/Enginio.*
|
||||
%{python3_sitearch}/PyQt5/QtBluetooth.*
|
||||
%{python3_sitearch}/PyQt5/QtDesigner.*
|
||||
@ -416,7 +416,7 @@ sed -i \
|
||||
%{python3_sitearch}/PyQt5/pyrcc.so
|
||||
%{python3_sitearch}/PyQt5/pyrcc_main.py*
|
||||
|
||||
%files -n python3-qt5-base
|
||||
%files -n python%{python3_pkgversion}-qt5-base
|
||||
%doc NEWS README
|
||||
%license LICENSE
|
||||
%{python3_dbus_dir}/pyqt5.so
|
||||
@ -439,19 +439,19 @@ sed -i \
|
||||
%{python3_sitearch}/PyQt5/_QOpenGLFunctions_4_1_Core.*
|
||||
|
||||
%if 0%{?webengine}
|
||||
%files -n python3-qt5-webengine
|
||||
%files -n python%{python3_pkgversion}-qt5-webengine
|
||||
%{python3_sitearch}/PyQt5/QtWebEngine.*
|
||||
%{python3_sitearch}/PyQt5/QtWebEngineCore.*
|
||||
%{python3_sitearch}/PyQt5/QtWebEngineWidgets.*
|
||||
%endif
|
||||
|
||||
%if 0%{?webkit}
|
||||
%files -n python3-qt5-webkit
|
||||
%files -n python%{python3_pkgversion}-qt5-webkit
|
||||
%{python3_sitearch}/PyQt5/QtWebKit.*
|
||||
%{python3_sitearch}/PyQt5/QtWebKitWidgets.*
|
||||
%endif
|
||||
|
||||
%files -n python3-qt5-devel
|
||||
%files -n python%{python3_pkgversion}-qt5-devel
|
||||
%{_datadir}/python3-sip/PyQt5/
|
||||
%endif # with_python3
|
||||
|
||||
@ -466,6 +466,9 @@ sed -i \
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Mar 03 2018 Sérgio Basto <sergio@serjux.com> - 5.10-4
|
||||
- Enable python3 on epel7
|
||||
|
||||
* Wed Feb 14 2018 Jan Grulich <jgrulich@redhat.com> - 5.10-3
|
||||
- rebuild (qt5)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user