libabigail/libabigail.spec

129 lines
3.8 KiB
RPMSpec
Raw Normal View History

2025-05-18 21:15:50 +00:00
Name: libabigail
Version: 2.4
Release: 2
Summary: ABI generic analysis and instrumentation library
License: LGPLv3+
URL: https://sourceware.org/libabigail/
Source0: http://mirrors.kernel.org/sourceware/libabigail/libabigail-%{version}.tar.xz
BuildRequires: gcc-c++ libtool elfutils-devel libxml2-devel doxygen
BuildRequires: python3-sphinx texinfo dpkg python3-devel python3-rpm
BuildRequires: python3-mock python3-unittest2 python3-pyxdg wget mailcap
%description
The libabigail aims at providing a C++ library for constructing, serializing and de-serializing
ABI-relevant artifacts.The set of artifacts that we are interested in is made of constructions
like type, variables, functions and declarations of a given library or program.
For a given program or library,this set of constructions is called an ABI corpus.
%package devel
Summary: Shared library and header files for libabigail
Requires: %{name} = %{version}-%{release}
%description devel
This package contains a shared library and the associated header files to write ABI analysis tools for libabigail.
%package help
Summary: Man pages,texinfo files and html manuals for libabigail
Provides: libabigail-doc = %{version}-%{release}
Obsoletes: libabigail-doc < %{version}-%{release}
Requires(post): info
Requires(preun): info
%description help
The package contains man pages,texinfo files and html manuals for libabigail.
%prep
%autosetup -n libabigail-%{version} -p1
%build
%configure --disable-silent-rules --disable-zip-archive
%make_build
cd doc
make html-doc
cd manuals
make html-doc
make man
make info
cd -
cd ..
%install
%make_install
%delete_la
make -C doc/manuals install-man-and-info-doc DESTDIR=%{buildroot}
%check
time make check || (cat tests/test-suite.log && exit 2)
if test $? -ne 0; then
cat tests/tests-suite.log
fi
%post
/sbin/ldconfig
/usr/sbin/install-info %{_infodir}/abigail.info* %{_infodir}/dir 2>/dev/null || :
%preun
if [ $1 -eq 0 ]; then
/usr/sbin/install-info --delete %{_infodir}/abigail.info* %{_infodir}/dir 2>/dev/null || :
fi
%postun
/sbin/ldconfig
%files
%{_bindir}/{abicompat,abidiff,abidw,abilint,abipkgdiff,kmidiff}
%{_libdir}/{libabigail.so.3,libabigail.so.3.0.0}
%{_libdir}/libabigail/default.abignore
%files devel
%{_libdir}/libabigail.so
%{_libdir}/pkgconfig/libabigail.pc
%{_includedir}/*
%{_datadir}/aclocal/abigail.m4
%exclude %{_libdir}/libabigail.a
%files help
%{_mandir}/man1/*
%{_mandir}/man7/*
%{_infodir}/abigail.info*
%doc doc/manuals/html/* README AUTHORS ChangeLog
%changelog
* Thu Dec 05 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 2.4-2
- Migrate to openEuler Git LFS service
* Wed Jan 10 2024 yaoxin <yao_xin001@hoperun.com> - 2.4-1
- Upgrade to 2.4
* Sat Jul 29 2023 xu_ping <707078654@qq.com> - 2.2-3
- fix install error due to sphinx upgrade remove jquery.js
* Wed Apr 19 2023 ChenYanpan <chenyanpan@xfusion.com> - 2.2-2
- Upload the integral source archive file -- libabigail-2.2.tar.xz
* Wed Apr 12 2023 xu_ping <707078654@qq.com> - 2.2-1
- Upgrade to 2.2
* Fri Dec 9 2022 Xiaole He <hexiaole@kylinos.cn> - 2.0-4
- backport patch:0006 to fix coredump of libxul.so from thunderbird rpm
* Tue Oct 18 2022 Xiaole He <hexiaole@kylinos.cn> - 2.0-3
- backport patch:0003 to add missing else
- backport patch:0004 to optimize if construction
- backport patch:0005 to fix typo
* Wed Sep 21 2022 Xiaole He <hexiaole@kylinos.cn> - 2.0-2
- backport patch:0002 to fix problematic comment
* Sat Aug 27 2022 tianlijing <tianlijing@kylinos.cn> - 2.0-1
- update to 2.0
* Thu May 20 2021 caodongxia <caodongxia@huawei.com> - 1.6-4
- Fix compiler-flags
* Thu Jul 30 2020 Shinwell Hu <micromotive@qq.com> - 1.6-3
- Remove extra Requires.
* Mon Jun 8 2020 leiju <leiju4@huawei.com> - 1.6-2
- Package init