87 lines
2.3 KiB
RPMSpec
87 lines
2.3 KiB
RPMSpec
|
|
%global qt_module qtwebview
|
||
|
|
|
||
|
|
Summary: Qt5 - WebView component
|
||
|
|
Name: qt5-%{qt_module}
|
||
|
|
Version: 5.15.2
|
||
|
|
Release: 1
|
||
|
|
|
||
|
|
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
|
||
|
|
License: LGPLv2 with exceptions or GPLv3 with exceptions
|
||
|
|
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-src-%{version}.tar.xz
|
||
|
|
|
||
|
|
# handled by qt5-srpm-macros, which defines %%qt5_qtwebengine_arches
|
||
|
|
%{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}}
|
||
|
|
|
||
|
|
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
|
||
|
|
* Mon Aug 21 2023 huayadong <huayadong@kylinos.cn> - 5.15.2-1
|
||
|
|
- init to version 5.15.2-1
|