qt5-qtwebengine/qt5-qtwebengine.spec

317 lines
10 KiB
RPMSpec
Raw Permalink Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: qt5-qtwebengine
Version: 5.15.7
Release: 1mamba
Summary: Qt5 WebEngine component
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.qt.io/
Source: https://github.com/qt/qtwebengine.git/v%{version}-lts/qtwebengine-%{version}.tar.bz2
Patch8: qtwebengine-5.15.2-chromium-icu-68.patch
Patch9: qtwebengine-5.15.2-chromium-icu-68.2-2.patch
Patch10: qt5-qtwebengine-5.15.7-chromium-python3.patch
Patch11: qt5-qtwebengine-5.15.7-python3.patch
Patch12: qt5-qtwebengine-5.15.7-chromium-glibc-2.34.patch
Patch13: qt5-qtwebengine-5.15.7-chromium-glibc-2.34-breakpad.patch
Patch14: qt5-qtwebengine-5.15.7-aarch64-new-stat.patch
Patch15: qt5-qtwebengine-5.15.7-no-icudtl-dat.patch
Patch16: qt5-qtwebengine-5.15.7-SIOCGSTAMP.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libQt5Positioning-devel
BuildRequires: libQt5WebChannel-devel
BuildRequires: libX11-devel
BuildRequires: libXcomposite-devel
BuildRequires: libXdamage-devel
BuildRequires: libXext-devel
BuildRequires: libXfixes-devel
BuildRequires: libXrandr-devel
BuildRequires: libXrender-devel
BuildRequires: libXtst-devel
BuildRequires: libalsa-devel
BuildRequires: libavcodec-ffmpeg-devel
BuildRequires: libavformat-ffmpeg-devel
BuildRequires: libavutil-ffmpeg-devel
BuildRequires: libdbus-devel
BuildRequires: libevent-devel
BuildRequires: libexpat-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libglvnd-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libicu-devel
BuildRequires: libjpeg-devel
BuildRequires: liblcms2-devel
BuildRequires: libminizip1-devel
BuildRequires: libnspr-devel
BuildRequires: libnss-devel
BuildRequires: libopus-devel
BuildRequires: libpci-devel
BuildRequires: libpng-devel
BuildRequires: libre2-devel
BuildRequires: libsnappy-devel
BuildRequires: libstdc++6-devel
BuildRequires: libvpx-devel
BuildRequires: libwebp-devel
BuildRequires: libxcb-devel
BuildRequires: libxkbcommon-devel
BuildRequires: libz-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtdeclarative-devel
BuildRequires: qt5-qttools-devel
## AUTOBUILDREQ-END
#BuildRequires: libpipewire02-devel
#BuildConflicts: libQt5WebEngine-devel
Requires(post): %{__install_info}
Requires(preun): %{__install_info}
Provides: qtwebengine
Obsoletes: qtwebengine <= 5.15.2
%description
Qt5 WebEngine component.
%package -n libQt5WebEngine
Group: System/Libraries
Summary: Shared libraries for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n libQt5WebEngine
This package contains shared libraries for %{name}.
%package -n libQt5WebEngine-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: libQt5WebEngine = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n libQt5WebEngine-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n qtwebengine-%{version}
#-D -T
#:<< _EOF
cd src/3rdparty
#%patch10 -p1 -b .chromium-python3
%patch13 -p1 -b .chromium-glibc-2.34-breakpad
cd ../..
%patch9 -p1
#%patch11 -p1 -b .python3
%patch12 -p1 -b .chromium-glibc-2.34
%patch14 -p1 -b .aarch64-new-stat
%patch15 -p1 -b .no-icudtl-dat
%patch16 -p1 -b .SIOCGSTAMP
## Update catapult for python3 compatibility
#mv catapult-%{version} catapult
#rm -rf src/3rdparty/chromium/third_party/catapult
#mv catapult src/3rdparty/chromium/third_party
# fix/workaround
# fatal error: QtWebEngineCore/qtwebenginecoreglobal.h: No such file or directory
if [ ! -f "./include/QtWebEngineCore/qtwebenginecoreglobal.h" ]; then
%_qt5_bindir/syncqt.pl -version %{version}
fi
## Workaround for:
## qtwebengine-5.15.7/src/core/net/qrc_url_scheme_handler.h:43:10: fatal error: QtWebEngineCore/private/qtwebenginecoreglobal_p.h: No such file or directory
#cp ./src/core/api/qtwebenginecoreglobal_p.h include/QtWebEngineCore/%{version}/QtWebEngineCore/private/
#cp ./src/webengine/api/qtwebengineglobal_p.h include/QtWebEngine/5.15.7/QtWebEngine/private/
%build
#:<< _EOF
# Prevent build server slowness/crash due to memory
%ifarch arm
export NINJAFLAGS="-j1"
%else
export NINJAFLAGS="-j2"
%endif
%ifarch %{ix86} aarch64
export CXXFLAGS+="%{optflags} -Os -s -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,--no-keep-memory -fPIC -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2 -Wl,--no-fatal-warnings"
%else
export CXXFLAGS+="%{optflags} -fPIC -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns2 -Wl,--no-fatal-warnings"
%endif
qmake-qt5 -- \
-proprietary-codecs \
-system-ffmpeg \
-webengine-icu \
-webengine-kerberos \
-webengine-webrtc-pipewire \
-webp \
-spellchecker
PATH=%{_bindir}:$PATH %make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
PATH=%{_bindir}:$PATH %makeinstall INSTALL_ROOT=%{buildroot} STRIP=/bin/true
#%find_lang %{name}5_qt --with-qt --all-name || touch %{name}5_qt.lang
rm -f %{buildroot}%{_libdir}/Qt5WebEngineCore.la
# Fix cmake dependency versions
sed -e "s|%{version}\ |5.15.2 |" -i %{buildroot}%{_libdir}/cmake/*/*Config.cmake
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libQt5WebEngine -p /sbin/ldconfig
%postun -n libQt5WebEngine -p /sbin/ldconfig
%files
#-f %{name}.lang
%defattr(-,root,root)
%{_datadir}/qt5/resources/qtwebengine_devtools_resources.pak
%{_datadir}/qt5/resources/qtwebengine_resources.pak
%{_datadir}/qt5/resources/qtwebengine_resources_100p.pak
%{_datadir}/qt5/resources/qtwebengine_resources_200p.pak
#%{_datadir}/qt5/resources/icudtl.dat
%dir %{_datadir}/qt5/translations/qtwebengine_locales
%{_datadir}/qt5/translations/qtwebengine_locales/*.pak
%doc LICENSE.GPL3 LICENSE.GPL3-EXCEPT
%files -n libQt5WebEngine
%defattr(-,root,root)
%{_libdir}/libQt5WebEngine.so.*
%{_libdir}/libQt5WebEngineCore.so.*
%{_libdir}/libQt5WebEngineWidgets.so.*
%{_libdir}/libQt5Pdf.so.*
%{_libdir}/libQt5PdfWidgets.so.*
%{_libdir}/qt5/bin/qwebengine_convert_dict
%{_libdir}/qt5/libexec/QtWebEngineProcess
%{_libdir}/qt5/plugins/designer/libqwebengineview.so
%{_libdir}/qt5/plugins/imageformats/libqpdf.so
%dir %{_libdir}/qt5/qml/QtWebEngine
%{_libdir}/qt5/qml/QtWebEngine/*
%dir %{_libdir}/qt5/qml/QtQuick
%{_libdir}/qt5/qml/QtQuick/*
%doc LICENSE.LGPL3 LICENSE.Chromium LICENSE.FDL
%files -n libQt5WebEngine-devel
%defattr(-,root,root)
%dir %{_includedir}/qt5/QtWebEngine
%{_includedir}/qt5/QtWebEngine/*
%dir %{_includedir}/qt5/QtWebEngineCore
%{_includedir}/qt5/QtWebEngineCore/*
%dir %{_includedir}/qt5/QtWebEngineWidgets
%{_includedir}/qt5/QtWebEngineWidgets/*
%dir %{_includedir}/qt5/QtPdf
%{_includedir}/qt5/QtPdf/*
%dir %{_includedir}/qt5/QtPdfWidgets
%{_includedir}/qt5/QtPdfWidgets/*
%dir %{_libdir}/cmake/Qt5WebEngine
%{_libdir}/cmake/Qt5WebEngine/*.cmake
%dir %{_libdir}/cmake/Qt5WebEngineCore
%{_libdir}/cmake/Qt5WebEngineCore/*.cmake
%dir %{_libdir}/cmake/Qt5WebEngineWidgets
%dir %{_libdir}/cmake/Qt5Gui
%{_libdir}/cmake/Qt5Gui/Qt5Gui_QPdfPlugin.cmake
%dir %{_libdir}/cmake/Qt5Pdf
%{_libdir}/cmake/Qt5Pdf/Qt5PdfConfig*.cmake
%{_libdir}/cmake/Qt5PdfWidgets/Qt5PdfWidgetsConfig*.cmake
%{_libdir}/libQt5WebEngine.la
%{_libdir}/libQt5WebEngine.prl
%{_libdir}/libQt5WebEngine.so
%{_libdir}/libQt5WebEngineCore.la
%{_libdir}/libQt5WebEngineCore.prl
%{_libdir}/libQt5WebEngineCore.so
%{_libdir}/libQt5WebEngineWidgets.la
%{_libdir}/libQt5WebEngineWidgets.prl
%{_libdir}/libQt5WebEngineWidgets.so
%{_libdir}/libQt5Pdf.la
%{_libdir}/libQt5Pdf.prl
%{_libdir}/libQt5Pdf.so
%{_libdir}/libQt5PdfWidgets.la
%{_libdir}/libQt5PdfWidgets.prl
%{_libdir}/libQt5PdfWidgets.so
%{_libdir}/qt5/mkspecs/modules/qt_lib_webengine*.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_pdf*.pri
%{_libdir}/pkgconfig/Qt5WebEngine.pc
%{_libdir}/pkgconfig/Qt5WebEngineCore.pc
%{_libdir}/pkgconfig/Qt5WebEngineWidgets.pc
%{_libdir}/pkgconfig/Qt5Pdf.pc
%{_libdir}/pkgconfig/Qt5PdfWidgets.pc
%{_libdir}/cmake/Qt5WebEngineWidgets/*.cmake
%{_libdir}/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake
%changelog
* Fri Dec 24 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.7-1mamba
- update to 5.15.7
* Sat Jan 02 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.2-1mamba
- update to 5.15.2
* Mon Oct 19 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.1-1mamba
- update to 5.15.1
* Mon Aug 31 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.0-2mamba
- rebuilt with system ffmpeg and icu
* Fri Aug 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.15.0-1mamba
- update to 5.15.0
* Tue Apr 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.14.2-1mamba
- update to 5.14.2
* Wed Oct 23 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.13.1-1mamba
- update to 5.13.1
* Sun Jun 23 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.13.0-1mamba
- update to 5.13.0
* Tue May 07 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.12.3-1mamba
- update to 5.12.3
* Tue Mar 19 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.12.2-1mamba
- update to 5.12.2
* Sun Feb 10 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.12.1-1mamba
- update to 5.12.1
* Sun Dec 30 2018 Automatic Build System <autodist@mambasoft.it> 5.12.0-1mamba
- automatic version update by autodist
* Sat Nov 03 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 5.11.2-1mamba
- update to 5.11.2
* Sat Jul 21 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 5.11.1-1mamba
- update to 5.11.1
* Wed Jun 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 5.11.0-1mamba
- update to 5.11.0
* Sat Feb 24 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 5.10.1-1mamba
- update to 5.10.1
* Sat Jan 27 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 5.10.0-1mamba
- update to 5.10.0
* Thu Oct 19 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 5.9.2-1mamba
- update to 5.9.2
* Fri Dec 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.7.1-1mamba
- update to 5.7.1
* Thu Dec 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.7.0-4mamba
- rebuilt with gcc
* Thu Dec 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.7.0-3mamba
- rebuilt with -fno-delete-null-pointer-checks CXXFLAGS and use_system_ffmpeg
* Thu Dec 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.7.0-2mamba
- bump release to allow update with qt5 release update
* Sat Jul 16 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.7.0-1mamba
- package created using the webbuild interface