Track libpkgconf shared object major version

We want to be aware when the ABI breaks rather than accidentally
having it slip through.
This commit is contained in:
Neal Gompa 2023-02-23 11:56:00 -05:00
parent 5d2464c091
commit 930106a935

View File

@ -22,6 +22,9 @@
# Search path for pc files for pkgconf
%global pkgconf_libdirs %{_libdir}/pkgconfig:%{_datadir}/pkgconfig
# libpkgconf soversion major version
%global libsomajor 4
Name: pkgconf
Version: 1.9.4
Release: 1%{?dist}
@ -198,7 +201,7 @@ rm -rf %{buildroot}%{_datadir}/aclocal
%files -n lib%{name}
%license COPYING
%{_libdir}/lib%{name}*.so.*
%{_libdir}/lib%{name}*.so.%{libsomajor}{,.*}
%files -n lib%{name}-devel
%{_libdir}/lib%{name}*.so