diff --git a/README.md b/README.md index bc103f3..2a5f49e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # qt5-qtwebview +Qt5 web view component. + diff --git a/qt5-qtwebview.spec b/qt5-qtwebview.spec new file mode 100644 index 0000000..5d4eccf --- /dev/null +++ b/qt5-qtwebview.spec @@ -0,0 +1,92 @@ +%define majver %(echo %version | cut -d. -f1-2) + +Name: qt5-qtwebview +Version: 5.15.2 +Release: 2mamba +Summary: Qt5 web view component +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.qt.io/ +Source: https://download.qt.io/official_releases/qt/%{majver}/%{version}/submodules/qtwebview-everywhere-src-%{version}.tar.xz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libQt5Positioning-devel +BuildRequires: libQt5WebChannel-devel +BuildRequires: libQt5WebEngine-devel +BuildRequires: libgcc +BuildRequires: libglvnd-devel +BuildRequires: libstdc++6-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtdeclarative-devel +## AUTOBUILDREQ-END + +%description +Qt5 web view component. + +%package -n libQt5WebView +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n libQt5WebView +This package contains shared libraries for %{name}. + +%package -n libQt5WebView-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: libQt5WebView = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n libQt5WebView-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q -n qtwebview-everywhere-src-%{version} + +%build +%_qt5_qmake + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall INSTALL_ROOT=%{buildroot} STRIP=/bin/true + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n libQt5WebView -p /sbin/ldconfig +%postun -n libQt5WebView -p /sbin/ldconfig + +%files -n libQt5WebView +%defattr(-,root,root) +%{_libdir}/libQt5WebView.so.* +%dir %{_libdir}/qt5/plugins/webview +%{_libdir}/qt5/plugins/webview/libqtwebview_webengine.so +%dir %{_libdir}/qt5/qml/QtWebView +%{_libdir}/qt5/qml/QtWebView/* +%doc LICENSE.* + +%files -n libQt5WebView-devel +%defattr(-,root,root) +%dir %{_includedir}/qt5/QtWebView +%{_includedir}/qt5/QtWebView/* +%{_libdir}/libQt5WebView.la +%{_libdir}/libQt5WebView.prl +%{_libdir}/libQt5WebView.so +%{_libdir}/qt5/mkspecs/modules/qt_lib_webview*.pri +%dir %{_libdir}/cmake/Qt5WebView +%{_libdir}/cmake/Qt5WebView/Qt5WebView*.cmake +%{_libdir}/pkgconfig/Qt5WebView.pc + +%changelog +* Sat Nov 06 2021 Silvan Calarco 5.15.2-2mamba +- bump release + +* Sat Nov 06 2021 Silvan Calarco 5.15.2-1mamba +- package created using the webbuild interface