Fix for differing so-versions

This commit is contained in:
Björn Esser 2019-06-25 20:11:52 +02:00
parent d77ee4b99d
commit 44fab225f9
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -5,13 +5,15 @@
%global legacy_actions %{_libexecdir}/initscripts/legacy-actions %global legacy_actions %{_libexecdir}/initscripts/legacy-actions
# Bootstrap mode providing old and new versions of libip{4,6}tc in parallel # Bootstrap mode providing old and new versions of libip{4,6}tc in parallel
%global bootstrap 0 %global bootstrap 0
%if 0%{?bootstrap} %if 0%{?bootstrap}
%global version_old 1.8.2 %global version_old 1.8.2
%global iptc_so_ver_old 0 %global iptc_so_ver_old 0
%global ipXtc_so_ver_old 0
%endif %endif
%global iptc_so_ver 2 %global iptc_so_ver 0
%global ipXtc_so_ver 2
Name: iptables Name: iptables
Summary: Tools for managing Linux kernel packet filtering capabilities Summary: Tools for managing Linux kernel packet filtering capabilities
@ -361,9 +363,11 @@ fi
%ghost %{_sbindir}/ip6tables-save %ghost %{_sbindir}/ip6tables-save
%files libs %files libs
%{_libdir}/libip*tc.so.%{iptc_so_ver}* %{_libdir}/libiptc.so.%{iptc_so_ver}*
%{_libdir}/libip{4,6}tc.so.%{ipXtc_so_ver}*
%if 0%{?bootstrap} %if 0%{?bootstrap}
%{_libdir}/libip*tc.so.%{iptc_so_ver_old}* %{_libdir}/libiptc.so.%{iptc_so_ver_old}*
%{_libdir}/libip{4,6}tc.so.%{ipXtc_so_ver_old}*
%endif %endif
%{_libdir}/libxtables.so.12* %{_libdir}/libxtables.so.12*