Signed-off-by: HouHongxun <houhongxun@kylinos.cn> (cherry picked from commit 33e91d672c6cfa0a384dbbf138aef3d82c362d7b)
91 lines
2.4 KiB
RPMSpec
91 lines
2.4 KiB
RPMSpec
%global qt_module qtwebview
|
|
|
|
Summary: Qt5 - WebView component
|
|
Name: qt5-%{qt_module}
|
|
Version: 5.15.10
|
|
Release: 1
|
|
|
|
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
|
|
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
Url: http://www.qt.io
|
|
%global majmin %(echo %{version} | cut -d. -f1-2)
|
|
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz
|
|
|
|
# handled by qt5-srpm-macros, which defines %%qt5_qtwebengine_arches
|
|
%{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}}
|
|
|
|
BuildRequires: make
|
|
BuildRequires: qt5-qtbase-devel >= %{version}
|
|
BuildRequires: qt5-qtbase-private-devel
|
|
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
|
|
BuildRequires: qt5-qtdeclarative-devel >= %{version}
|
|
# for 5.11, watch progress on
|
|
# https://bugreports.qt.io/browse/QTBUG-63137
|
|
BuildRequires: qt5-qtwebengine-devel
|
|
|
|
%description
|
|
Qt WebView provides a way to display web content in a QML application without necessarily
|
|
including a full web browser stack by using native APIs where it makes sense.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: qt5-qtbase-devel%{?_isa}
|
|
Requires: qt5-qtdeclarative-devel%{?_isa}
|
|
%description devel
|
|
%{summary}.
|
|
|
|
%package examples
|
|
Summary: Programming examples for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
%description examples
|
|
%{summary}.
|
|
|
|
|
|
%prep
|
|
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1
|
|
|
|
|
|
%build
|
|
%{qmake_qt5} \
|
|
%{?_qt5_examplesdir:CONFIG+=qt_example_installs}
|
|
|
|
%make_build
|
|
|
|
|
|
%install
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%license LICENSE.*
|
|
%{_qt5_libdir}/libQt5WebView.so.5*
|
|
%{_qt5_qmldir}/QtWebView/
|
|
%dir %{_qt5_plugindir}/webview/
|
|
# consider subpkg with rich/soft dependency -- rex
|
|
%{_qt5_plugindir}/webview/libqtwebview_webengine.so
|
|
|
|
%files devel
|
|
%{_qt5_headerdir}/QtWebView/
|
|
%{_qt5_libdir}/libQt5WebView.so
|
|
%{_qt5_libdir}/libQt5WebView.prl
|
|
%{_qt5_libdir}/pkgconfig/Qt5WebView.pc
|
|
%{_qt5_libdir}/cmake/Qt5WebView
|
|
%{_qt5_archdatadir}/mkspecs/modules/*
|
|
%exclude %{_qt5_libdir}/libQt5WebView.la
|
|
|
|
%if 0%{?_qt5_examplesdir:1}
|
|
%files examples
|
|
%{_qt5_examplesdir}/
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
* Thu Aug 31 2023 HouHongxun <houhongxun@kylinos.cn> - 5.15.10-1
|
|
- update to version 5.15.10
|
|
|
|
* Mon Aug 21 2023 huayadong <huayadong@kylinos.cn> - 5.15.2-1
|
|
- init to version 5.15.2-1
|