101 lines
2.9 KiB
RPMSpec
101 lines
2.9 KiB
RPMSpec
Name: libabigail
|
|
Version: 1.6
|
|
Release: 3
|
|
Summary: ABI generic analysis and instrumentation library
|
|
License: LGPLv3+
|
|
URL: https://sourceware.org/libabigail/
|
|
Source0: http://mirrors.kernel.org/sourceware/libabigail/libabigail-%{version}.tar.gz
|
|
|
|
BuildRequires: gcc-c++ libtool elfutils-devel libxml2-devel doxygen
|
|
BuildRequires: python3-sphinx texinfo dos2unix 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
|
|
sed -i 's/redhat/openEuler/g' build-aux/ltmain.sh
|
|
|
|
%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}
|
|
dos2unix doc/manuals/html/_static/jquery.js
|
|
|
|
%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.0,libabigail.so.0.0.0}
|
|
%{_libdir}/libabigail/default.abignore
|
|
%doc COPYING COPYING-LGPLV3 COPYING-GPLV3
|
|
|
|
%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 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
|