|
|
|
@ -18,16 +18,16 @@
|
|
|
|
|
|
|
|
|
|
Summary: PyQt5 is Python bindings for Qt5
|
|
|
|
|
Name: python-qt5
|
|
|
|
|
Version: 5.5.1
|
|
|
|
|
Release: 20%{?dist}
|
|
|
|
|
Version: 5.6
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
|
|
# all BSD, except for GPLv2+ dbus bindings and examples
|
|
|
|
|
License: BSD and GPLv2+
|
|
|
|
|
Url: http://www.riverbankcomputing.com/software/pyqt/
|
|
|
|
|
%if 0%{?snap:1}
|
|
|
|
|
Source0: http://www.riverbankcomputing.com/static/Downloads/PyQt5/PyQt-gpl-%{version}%{?snap:-snapshot-%{snap}}.tar.gz
|
|
|
|
|
Source0: http://www.riverbankcomputing.com/static/Downloads/PyQt5/PyQt5_gpl-%{version}%{?snap:-snapshot-%{snap}}.tar.gz
|
|
|
|
|
%else
|
|
|
|
|
Source0: http://downloads.sourceforge.net/project/pyqt/PyQt5/PyQt-%{version}/PyQt-gpl-%{version}.tar.gz
|
|
|
|
|
Source0: http://downloads.sourceforge.net/project/pyqt/PyQt5/PyQt-%{version}/PyQt5_gpl-%{version}.tar.gz
|
|
|
|
|
%endif
|
|
|
|
|
Source1: macros.pyqt5
|
|
|
|
|
# wrapper, see https://bugzilla.redhat.com/show_bug.cgi?id=1193107#c9
|
|
|
|
@ -37,6 +37,7 @@ Source2: pyuic5.sh
|
|
|
|
|
|
|
|
|
|
## upstreamable patches
|
|
|
|
|
Patch0: python-qt5_sipdir.patch
|
|
|
|
|
Patch1: PyQt5_gpl-5.6-dbus_ftbfs.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
BuildRequires: findutils
|
|
|
|
@ -63,10 +64,10 @@ BuildRequires: pkgconfig(Qt5Xml) pkgconfig(Qt5XmlPatterns)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5WebChannel)
|
|
|
|
|
BuildRequires: pkgconfig(Qt5WebSockets)
|
|
|
|
|
BuildRequires: python2-devel python2
|
|
|
|
|
BuildRequires: sip-devel >= 4.16.9
|
|
|
|
|
BuildRequires: sip-devel >= 4.18
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
|
BuildRequires: python3-devel python3
|
|
|
|
|
BuildRequires: python3-sip-devel >= 4.16.8
|
|
|
|
|
BuildRequires: python3-sip-devel >= 4.18
|
|
|
|
|
BuildRequires: python3-dbus
|
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
@ -88,6 +89,8 @@ Requires: dbus-python
|
|
|
|
|
|
|
|
|
|
Provides: PyQt5 = %{version}-%{release}
|
|
|
|
|
Provides: PyQt5%{?_isa} = %{version}-%{release}
|
|
|
|
|
Provides: python2-PyQt5 = %{version}-%{release}
|
|
|
|
|
Provides: python2-PyQt5%{?_isa} = %{version}-%{release}
|
|
|
|
|
Provides: python2-qt5 = %{version}-%{release}
|
|
|
|
|
Provides: python2-qt5%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
@ -100,6 +103,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: qt5-qtbase-devel
|
|
|
|
|
Requires: sip-devel
|
|
|
|
|
Provides: PyQt5-devel = %{version}-%{release}
|
|
|
|
|
Provides: python2-PyQt5-devel = %{version}-%{release}
|
|
|
|
|
%description devel
|
|
|
|
|
Files needed to build other bindings for C++ classes that inherit from any
|
|
|
|
|
of the Qt5 classes (e.g. KDE or your own).
|
|
|
|
@ -118,6 +122,7 @@ Summary: Python 3 bindings for Qt5
|
|
|
|
|
Obsoletes: python3-qt5 < 5.5.1-10
|
|
|
|
|
%endif
|
|
|
|
|
Provides: python3-PyQt5 = %{version}-%{release}
|
|
|
|
|
Provides: python3-PyQt5%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-rpm-macros = %{version}-%{release}
|
|
|
|
|
Requires: python3-dbus
|
|
|
|
|
%description -n python3-qt5
|
|
|
|
@ -174,8 +179,10 @@ Requires: python3-qt5%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n PyQt-gpl-%{version}%{?snap:-snapshot-%{snap}}
|
|
|
|
|
%setup -q -n PyQt5_gpl-%{version}%{?snap:-snapshot-%{snap}}
|
|
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
@ -188,7 +195,6 @@ pushd %{_target_platform}
|
|
|
|
|
%{__python2} ../configure.py \
|
|
|
|
|
--assume-shared \
|
|
|
|
|
--confirm-license \
|
|
|
|
|
--no-timestamp \
|
|
|
|
|
--qmake=%{_qt5_qmake} \
|
|
|
|
|
--qsci-api --qsci-api-destdir=%{_qt5_datadir}/qsci \
|
|
|
|
|
--verbose \
|
|
|
|
@ -207,7 +213,6 @@ pushd %{_target_platform}-python3
|
|
|
|
|
%{__python3} ../configure.py \
|
|
|
|
|
--assume-shared \
|
|
|
|
|
--confirm-license \
|
|
|
|
|
--no-timestamp \
|
|
|
|
|
--qmake=%{_qt5_qmake} \
|
|
|
|
|
--no-qsci-api \
|
|
|
|
|
--verbose \
|
|
|
|
@ -404,6 +409,9 @@ sed -i \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Apr 25 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6-1
|
|
|
|
|
- PyQt5-5.6
|
|
|
|
|
|
|
|
|
|
* Wed Apr 13 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.5.1-20
|
|
|
|
|
- rebuild (sip), re-enable -webengine for secondary archs
|
|
|
|
|
|
|
|
|
|