From daed8e44d1a8c168ffa2086da27875d16c111d2f Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Thu, 13 Oct 2022 13:27:05 +0800 Subject: [PATCH] add abi --- readline.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/readline.spec b/readline.spec index e6a91da..b9b5f31 100644 --- a/readline.spec +++ b/readline.spec @@ -1,4 +1,5 @@ -%define anolis_release 2 +%define anolis_release 3 +%define abidir %{_prefix}/lib/compatibility/%{name} Summary: A library for editing typed command lines Name: readline @@ -14,6 +15,7 @@ Patch101: readline-8.0-shlib.patch BuildRequires: gcc BuildRequires: ncurses-devel +BuildRequires: abi-dumper %description The Readline library provides a set of functions that allow users to @@ -62,12 +64,22 @@ library. rm -vrf %{buildroot}%{_docdir}/readline rm -vf %{buildroot}%{_infodir}/dir* +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 + %ldconfig_scriptlets %files %license COPYING USAGE %{_libdir}/libreadline.so.* %{_libdir}/libhistory.so.* +%{abidir}/libreadline.so.*.dump +%{abidir}//libhistory.so.*.dump %{_infodir}/history.info* %{_infodir}/rluserman.info* @@ -89,6 +101,9 @@ rm -vf %{buildroot}%{_infodir}/dir* %{_libdir}/libhistory.a %changelog +* Thu Oct 13 2022 mgb01105731 - 8.1-3 +- add abi + * Thu Sep 30 2022 mgb01105731 - 8.1-2 - add doc package -- Gitee