add abi check

This commit is contained in:
Michal Hlavinka 2023-05-16 12:38:49 +02:00
parent d37461081e
commit 61cf8acd95

View File

@ -7,6 +7,7 @@ URL: https://mj.ucw.cz/sw/pciutils/
Source0: https://www.kernel.org/pub/software/utils/pciutils/%{name}-%{version}.tar.xz
Source1: multilibconfigh
Source2: libpci_symbols.lst
#change pci.ids directory to hwdata, fedora/rhel specific
Patch1: pciutils-2.2.1-idpath.patch
@ -80,6 +81,10 @@ install -p -m 644 lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
%ldconfig_scriptlets libs
%check
nm -gDC $RPM_BUILD_ROOT/%{_libdir}/libpci.so.%{version} | sed -n -e 's/@@/@/g' -e 's/^.* \([^ ]*@LIBPCI_.*\)$/\1/p' | sort | uniq >libpci_symbols_new.lst
diff -u %{SOURCE2} libpci_symbols_new.lst
%files
%doc README ChangeLog pciutils.lsm
%{_sbindir}/lspci