Enabled QtWebEngine for Fedora >= 24

This commit is contained in:
Rex Dieter 2016-02-27 07:12:22 -06:00
parent 3c080fca1f
commit 2788e4dc7b

View File

@ -13,7 +13,7 @@
Summary: PyQt5 is Python bindings for Qt5
Name: python-qt5
Version: 5.5.1
Release: 8%{?dist}
Release: 9%{?dist}
# all BSD, except for GPLv2+ dbus bindings and examples
License: BSD and GPLv2+
@ -56,6 +56,10 @@ BuildRequires: pkgconfig(Qt5Sql) pkgconfig(Qt5Svg) pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Xml) pkgconfig(Qt5XmlPatterns)
BuildRequires: pkgconfig(Qt5WebChannel)
%if 0%{?fedora} > 23
%global webengine 1
BuildRequires: pkgconfig(Qt5WebEngine)
%endif
BuildRequires: pkgconfig(Qt5WebKit) pkgconfig(Qt5WebKitWidgets)
BuildRequires: pkgconfig(Qt5WebSockets)
BuildRequires: python2-devel python2
@ -245,6 +249,9 @@ sed -i \
%{python2_sitearch}/PyQt5/QtSvg.so
%{python2_sitearch}/PyQt5/QtTest.so
%{python2_sitearch}/PyQt5/QtWebChannel.so
%if 0%{?webengine}
%{python2_sitearch}/PyQt5/QtWebEngineWidgets.so
%endif
%{python2_sitearch}/PyQt5/QtWebKit.so
%{python2_sitearch}/PyQt5/QtWebKitWidgets.so
%{python2_sitearch}/PyQt5/QtWebSockets.so
@ -299,6 +306,9 @@ sed -i \
%{python3_sitearch}/PyQt5/QtSvg.so
%{python3_sitearch}/PyQt5/QtTest.so
%{python3_sitearch}/PyQt5/QtWebChannel.so
%if 0%{?webengine}
%{python3_sitearch}/PyQt5/QtWebEngineWidgets.so
%endif
%{python3_sitearch}/PyQt5/QtWebKit.so
%{python3_sitearch}/PyQt5/QtWebKitWidgets.so
%{python3_sitearch}/PyQt5/QtWebSockets.so
@ -329,6 +339,9 @@ sed -i \
%changelog
* Sat Feb 27 2016 Christian Dersch <lupinix@mailbox.org> - 5.5.1-9
- Enabled QtWebEngine for Fedora >= 24
* Sat Feb 27 2016 Rex Dieter <rdieter@fedoraproject.org> 5.5.1-8
- rebuild