Group :: System/Libraries
RPM: qt5-webview
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define qdoc_found %{expand:%%(if [ -e %_qt5_bindir/qdoc ]; then echo 1; else echo 0; fi)}
%global qt_module qtwebview
Name: qt5-webview
Version: 5.15.10
Release: alt1
Group: System/Libraries
Summary: Qt Web View
Url: http://qt.io/
License: LGPL-2.1 with Qt-LGPL-exception-1.1 or LGPL-3.0-only
ExcludeArch: %not_qt5_qtwebengine_arches
Source: %qt_module-everywhere-src-%version.tar
BuildRequires(pre): rpm-macros-qt5 qt5-tools rpm-macros-qt5-webengine
BuildRequires: gcc-c++ glibc-devel
BuildRequires: qt5-base-devel qt5-webengine-devel
%description
%summary
%package common
Summary: Common package for %name
Group: System/Configuration/Other
BuildArch: noarch
Requires: qt5-base-common
%description common
Common package for %name
%package devel
Group: Development/KDE and QT
Summary: Development files for %name
Requires: %name-common = %EVR
Requires: qt5-base-devel rpm-build-qml
%description devel
%summary.
%package doc
Summary: Document for developing apps which will use Qt5 %qt_module
Group: Development/KDE and QT
Requires: %name-common = %EVR
%description doc
This package contains documentation for Qt5 %qt_module
%package -n libqt5-webview
Group: System/Libraries
Summary: Qt5 - library
Requires: %name-common = %EVR
Requires: libqt5-core = %_qt5_version
%description -n libqt5-webview
%summary
%prep
%setup -n %qt_module-everywhere-src-%version
syncqt.pl-qt5 -version %version
%build
%qmake_qt5
%make_build
%if %qdoc_found
%make docs
%endif
%install
%install_qt5
%if %qdoc_found
%make INSTALL_ROOT=%buildroot install_docs ||:
%endif
%files common
%files -n libqt5-webview
%_qt5_libdir/libQt5WebView.so.*
%_qt5_plugindir/webview/
%_qt5_qmldir/QtWebView/
%files devel
%_qt5_libdir/libQt*.so
%_qt5_libdatadir/libQt*.so
%_qt5_libdir/libQt*.prl
%_qt5_libdatadir/libQt*.prl
%_qt5_headerdir/Qt*/
%_qt5_archdatadir/mkspecs/modules/*.pr*
%_libdir/cmake/Qt*/
%_pkgconfigdir/Qt?WebView.pc
%files doc
%if %qdoc_found
%_qt5_docdir/*
%endif
%_qt5_examplesdir/*
%changelog
…
Full changelog you can see here
%global qt_module qtwebview
Name: qt5-webview
Version: 5.15.10
Release: alt1
Group: System/Libraries
Summary: Qt Web View
Url: http://qt.io/
License: LGPL-2.1 with Qt-LGPL-exception-1.1 or LGPL-3.0-only
ExcludeArch: %not_qt5_qtwebengine_arches
Source: %qt_module-everywhere-src-%version.tar
BuildRequires(pre): rpm-macros-qt5 qt5-tools rpm-macros-qt5-webengine
BuildRequires: gcc-c++ glibc-devel
BuildRequires: qt5-base-devel qt5-webengine-devel
%description
%summary
%package common
Summary: Common package for %name
Group: System/Configuration/Other
BuildArch: noarch
Requires: qt5-base-common
%description common
Common package for %name
%package devel
Group: Development/KDE and QT
Summary: Development files for %name
Requires: %name-common = %EVR
Requires: qt5-base-devel rpm-build-qml
%description devel
%summary.
%package doc
Summary: Document for developing apps which will use Qt5 %qt_module
Group: Development/KDE and QT
Requires: %name-common = %EVR
%description doc
This package contains documentation for Qt5 %qt_module
%package -n libqt5-webview
Group: System/Libraries
Summary: Qt5 - library
Requires: %name-common = %EVR
Requires: libqt5-core = %_qt5_version
%description -n libqt5-webview
%summary
%prep
%setup -n %qt_module-everywhere-src-%version
syncqt.pl-qt5 -version %version
%build
%qmake_qt5
%make_build
%if %qdoc_found
%make docs
%endif
%install
%install_qt5
%if %qdoc_found
%make INSTALL_ROOT=%buildroot install_docs ||:
%endif
%files common
%files -n libqt5-webview
%_qt5_libdir/libQt5WebView.so.*
%_qt5_plugindir/webview/
%_qt5_qmldir/QtWebView/
%files devel
%_qt5_libdir/libQt*.so
%_qt5_libdatadir/libQt*.so
%_qt5_libdir/libQt*.prl
%_qt5_libdatadir/libQt*.prl
%_qt5_headerdir/Qt*/
%_qt5_archdatadir/mkspecs/modules/*.pr*
%_libdir/cmake/Qt*/
%_pkgconfigdir/Qt?WebView.pc
%files doc
%if %qdoc_found
%_qt5_docdir/*
%endif
%_qt5_examplesdir/*
%changelog
…
Full changelog you can see here