From 51fc2aba47509610758a77e39ff7852548985a04 Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Wed, 12 Oct 2022 16:51:23 +0800 Subject: [PATCH] add abi & api --- webkit2gtk3.spec | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/webkit2gtk3.spec b/webkit2gtk3.spec index f1aa076..5a4721c 100644 --- a/webkit2gtk3.spec +++ b/webkit2gtk3.spec @@ -1,4 +1,5 @@ -%define anolis_release 1 +%define anolis_release 2 +%define abidir %{_prefix}/lib/compatibility/%{name} ## NOTE: Lots of files in various subdirectories have the same name (such as ## "LICENSE") so this short macro allows us to distinguish them by using their ## directory names (from the source tree) as prefixes for the files. @@ -84,6 +85,7 @@ BuildRequires: pkgconfig(wpe-1.0) BuildRequires: pkgconfig(wpebackend-fdo-1.0) BuildRequires: pkgconfig(xt) BuildRequires: pkgconfig(gi-docgen) +BuildRequires: abi-dumper Requires: bubblewrap Requires: xdg-dbus-proxy @@ -210,12 +212,31 @@ export NINJA_STATUS="[%f/%t][%e] " %add_to_license_files Source/WTF/wtf/dtoa/COPYING %add_to_license_files Source/WTF/wtf/dtoa/LICENSE +mkdir -p %{buildroot}/%{abidir} +pushd %{buildroot}/%{abidir} +for full_name in $(find %{buildroot} -name "*.so*") ; do + f=`echo ${full_name##*/}` + (file $full_name | grep "shared object" > /dev/null 2>&1 && abi-dumper $full_name -o $f.dump > /dev/null 2>&1) || echo "ok" +done +popd + +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}/%{_libdir} +pushd %{buildroot}/%{abidir} +for dir in %{_sbindir} %{_bindir} ; do + for f in $(ls %{buildroot}/$dir) ; do + full_name=%{buildroot}/$dir/$f + (file $full_name | grep executable > /dev/null 2>&1 && $full_name --help > $f-option.list > /dev/null 2>&1) || echo "ok" + done +done + %files -f WebKit2GTK-4.0.lang %license _license_files/*ThirdParty* %license _license_files/*WebCore* %license _license_files/*WebInspectorUI* %license _license_files/*WTF* %{_libdir}/libwebkit2gtk-4.0.so.* +%{abidir}/libwebkit2gtk-4.0.so.*.dump +%{abidir}/libwebkit2gtkinjectedbundle.so.dump %dir %{_libdir}/girepository-1.0 %{_libdir}/girepository-1.0/WebKit2-4.0.typelib %{_libdir}/girepository-1.0/WebKit2WebExtension-4.0.typelib @@ -224,6 +245,7 @@ export NINJA_STATUS="[%f/%t][%e] " %exclude %{_libexecdir}/webkit2gtk-4.0/MiniBrowser %exclude %{_libexecdir}/webkit2gtk-4.0/jsc %{_bindir}/WebKitWebDriver +%{abidir}/WebKitWebDriver-option.list %files devel %{_libexecdir}/webkit2gtk-4.0/MiniBrowser @@ -240,6 +262,7 @@ export NINJA_STATUS="[%f/%t][%e] " %files jsc %license _license_files/*JavaScriptCore* %{_libdir}/libjavascriptcoregtk-4.0.so.* +%{abidir}/libjavascriptcoregtk-4.0.so.*.dump %dir %{_libdir}/girepository-1.0 %{_libdir}/girepository-1.0/JavaScriptCore-4.0.typelib @@ -263,6 +286,9 @@ export NINJA_STATUS="[%f/%t][%e] " %endif %changelog +* Wed Oct 12 2022 mgb01105731 - 2.37.1-2 +- add abi & api + * Tue Sep 06 2022 Chunmei Xu - 2.37.1-1 - update to 2.37.1 -- Gitee