rebuuilt with CMAKE_BUILD_TYPE=Release to get 4.0 apiver instead of 4.1 [release 2.34.1-2mamba;Thu Nov 18 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 19:12:37 +01:00
parent 2069456e11
commit 2216c5cb56

View File

@ -1,27 +1,10 @@
# --enable-debug turn on debugging [default=no]
# --enable-indexeddb enable the indexed database API [default=no]
# --enable-input-speech enable the speech input API [default=no] broken
# --enable-image-resizer enable image resizer [default=no]
# --enable-wml enable support for WML [default=no]
# --enable-directory-upload enable support for directory upload [default=no]
# --enable-file-system enable support for HTML5 FileSystem API [default=no]
# --enable-web-timing enable support for Web Timing [default=no]
# --enable-blob enable support for Blob [default=no]
# --enable-coverage enable code coverage support [default=no]
# --enable-opcode-stats Enable Opcode statistics (default: disabled)
# --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
# --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
# --with-gtk=2.0|3.0 the GTK+ version to use (default: 2.0)
%define majver %(echo %version | cut -d. -f 1-2) %define majver %(echo %version | cut -d. -f 1-2)
%define apiver 4.0 %define apiver 4.0
%define libname libwebkit2gtk %define libname libwebkit2gtk
Name: webkitgtk Name: webkitgtk
Version: 2.32.0 Version: 2.34.1
Release: 1mamba Release: 2mamba
Summary: Port of WebKit embeddable web component to GTK+ Summary: Port of WebKit embeddable web component to GTK+
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -35,11 +18,11 @@ Patch2: webkitgtk-2.30.2-x86-arm-jit-build-workaround.patch
License: BSD, LGPL License: BSD, LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libGL-devel
BuildRequires: libX11-devel BuildRequires: libX11-devel
BuildRequires: libXcomposite-devel BuildRequires: libXcomposite-devel
BuildRequires: libXdamage-devel BuildRequires: libXdamage-devel
BuildRequires: libXrender-devel
BuildRequires: libXt-devel
BuildRequires: libatk-devel BuildRequires: libatk-devel
BuildRequires: libcairo-devel BuildRequires: libcairo-devel
BuildRequires: libenchant-devel BuildRequires: libenchant-devel
@ -49,20 +32,24 @@ BuildRequires: libgcc
BuildRequires: libgcrypt-devel BuildRequires: libgcrypt-devel
BuildRequires: libgdk-pixbuf-devel BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel BuildRequires: libglib-devel
BuildRequires: libglvnd-devel
BuildRequires: libgpg-error-devel
BuildRequires: libgst-plugins-base-devel BuildRequires: libgst-plugins-base-devel
BuildRequires: libgstreamer-devel BuildRequires: libgstreamer-devel
BuildRequires: libgtk-devel BuildRequires: libgtk3-devel
BuildRequires: libharfbuzz-devel BuildRequires: libharfbuzz-devel
BuildRequires: libhyphen-devel BuildRequires: libhyphen-devel
BuildRequires: libicu-devel BuildRequires: libicu-devel
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: liblcms2-devel
BuildRequires: libmanette-devel
BuildRequires: libnotify-devel BuildRequires: libnotify-devel
BuildRequires: libopenjpeg-devel BuildRequires: libopenjpeg-devel
BuildRequires: libpango-devel BuildRequires: libpango-devel
BuildRequires: libpng-devel BuildRequires: libpng-devel
BuildRequires: libseccomp-devel BuildRequires: libseccomp-devel
BuildRequires: libsecret-devel BuildRequires: libsecret-devel
BuildRequires: libsoup-devel BuildRequires: libsoup2-devel
BuildRequires: libsqlite-devel BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
BuildRequires: libsystemd-devel BuildRequires: libsystemd-devel
@ -141,9 +128,8 @@ This package contains the documentation for %{name},
%debug_package %debug_package
%prep %prep
%setup -q %setup -q -D -T
#-D -T :<< _EOF
#:<< _EOF
%ifarch arm %{ix86} %ifarch arm %{ix86}
%patch2 -p1 %patch2 -p1
%endif %endif
@ -154,39 +140,50 @@ sed -i "s|WTF_CPU_ARM64|WTF_CPU_ARM|" CMakeLists.txt
%build %build
#:<< _EOF #:<< _EOF
#%ifnarch x86_64 %ifnarch x86_64
## To workaround ar 4GB file limit see also: # To workaround ar 4GB file limit see also:
## https://build.opensuse.org/package/view_file/openSUSE:Factory/webkit2gtk3/webkit2gtk3.spec # https://build.opensuse.org/package/view_file/openSUSE:Factory/webkit2gtk3/webkit2gtk3.spec
#EXTRA_CFLAGS="-g0 -Wl,--no-keep-memory -Wl,--no-map-whole-files" EXTRA_CFLAGS="-g0 -Wl,--no-keep-memory -Wl,--no-map-whole-files"
#EXTRA_CXXFLAGS="-g0 -Wl,--no-keep-memory -Wl,--no-map-whole-files" EXTRA_CXXFLAGS="-g0 -Wl,--no-keep-memory -Wl,--no-map-whole-files"
#%endif %endif
%cmake -d build \ %cmake -d build \
\ \
-DPORT=GTK \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
-DCMAKE_INSTALL_FULL_LIBEXECDIR=%{_libexecdir} \
%ifnarch x86_64 %ifnarch x86_64
-DCMAKE_C_FLAGS="$EXTRA_CFLAGS" \ -DCMAKE_C_FLAGS="$EXTRA_CFLAGS" \
-DCMAKE_CXX_FLAGS="$EXTRA_CXXFLAGS" \ -DCMAKE_CXX_FLAGS="$EXTRA_CXXFLAGS" \
-DCMAKE_C_FLAGS_RELWITHDEBINFO="-O2 -g1" \ -DCMAKE_C_FLAGS_RELWITHDEBINFO="-O2 -g1" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g1" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g1" \
%else
-DCMAKE_C_FLAGS_RELWITHDEBINFO="-O2 -g1" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g1" \
%endif
-DPORT=GTK \
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
-DCMAKE_INSTALL_FULL_LIBEXECDIR=%{_libexecdir} \
%ifarch arm
-DENABLE_GTKDOC=OFF \
%else
-DENABLE_GTKDOC=ON \
%endif
-DENABLE_MINIBROWSER=ON \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now -pthread" \ -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now -pthread" \
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now -pthread" \ -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now -pthread" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now -pthread" \ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now -pthread" \
%ifarch arm
-DENABLE_SPELLCHECK=0
%endif %endif
%ifarch arm
-DATOMICS_REQUIRE_LIBATOMIC=ON \
-DENABLE_GTKDOC=OFF \
-DENABLE_SPELLCHECK=0 \
%else
-DENABLE_GTKDOC=ON \
%endif
-DUSE_SOUP2=ON \
-DENABLE_MINIBROWSER=ON
#%ifnarch x86_64
# -DCMAKE_C_FLAGS="$EXTRA_CFLAGS" \
# -DCMAKE_CXX_FLAGS="$EXTRA_CXXFLAGS" \
# -DCMAKE_C_FLAGS_RELWITHDEBINFO="-O2 -g1" \
# -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g1" \
#%else
# -DCMAKE_C_FLAGS_RELWITHDEBINFO="-O2 -g1" \
# -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="-O2 -g1" \
#%endif
# -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now -pthread" \
# -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now -pthread" \
# -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now -pthread" \
# -DENABLE_JIT=OFF \ # -DENABLE_JIT=OFF \
@ -196,13 +193,15 @@ sed -i "s|WTF_CPU_ARM64|WTF_CPU_ARM|" CMakeLists.txt
%make JavaScriptCore-4-gir all \ %make JavaScriptCore-4-gir all \
%ifarch arm %ifarch arm
-j1 -j1
%else
-j2
%endif %endif
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build %makeinstall -C build
%find_lang WebKit2GTK-%{apiver} %find_lang %{name} --all-name
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -217,7 +216,7 @@ sed -i "s|WTF_CPU_ARM64|WTF_CPU_ARM|" CMakeLists.txt
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas %{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas
: :
%files -n %{libname} -f WebKit2GTK-%{apiver}.lang %files -n %{libname} -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libwebkit2gtk-%{apiver}.so.* %{_libdir}/libwebkit2gtk-%{apiver}.so.*
%{_libdir}/libjavascriptcoregtk-%{apiver}.so.* %{_libdir}/libjavascriptcoregtk-%{apiver}.so.*
@ -247,15 +246,21 @@ sed -i "s|WTF_CPU_ARM64|WTF_CPU_ARM|" CMakeLists.txt
%ifnarch arm %ifnarch arm
%files doc %files doc
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/jsc-glib-%{apiver} %dir %{_datadir}/gtk-doc/html/jsc-glib-4.0
%{_datadir}/gtk-doc/html/jsc-glib-%{apiver}/* %{_datadir}/gtk-doc/html/jsc-glib-4.0/*
%dir %{_datadir}/gtk-doc/html/webkit2gtk-%{apiver} %dir %{_datadir}/gtk-doc/html/webkit2gtk-4.0
%{_datadir}/gtk-doc/html/webkit2gtk-%{apiver}/* %{_datadir}/gtk-doc/html/webkit2gtk-4.0/*
%dir %{_datadir}/gtk-doc/html/webkitdomgtk-%{apiver} %dir %{_datadir}/gtk-doc/html/webkitdomgtk-4.0
%{_datadir}/gtk-doc/html/webkitdomgtk-%{apiver}/* %{_datadir}/gtk-doc/html/webkitdomgtk-4.0/*
%endif %endif
%changelog %changelog
* Thu Nov 18 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.34.1-2mamba
- rebuuilt with CMAKE_BUILD_TYPE=Release to get 4.0 apiver instead of 4.1
* Sun Oct 24 2021 Automatic Build System <autodist@mambasoft.it> 2.34.1-1mamba
- automatic version update by autodist
* Mon Mar 29 2021 Automatic Build System <autodist@mambasoft.it> 2.32.0-1mamba * Mon Mar 29 2021 Automatic Build System <autodist@mambasoft.it> 2.32.0-1mamba
- automatic version update by autodist - automatic version update by autodist