- mkdir -pv %{BUILDROOT}/usr/lib
- rm -vf %{BUILDROOT}/lib/libip{tc,4tc,6tc,q}.so %{BUILDROOT}/lib/libxtables.so
- ln -svf ../../lib/libiptc.so.0 %{BUILDROOT}/usr/lib/libiptc.so
- ln -svf ../../lib/libip4tc.so.0 %{BUILDROOT}/usr/lib/libip4tc.so
- ln -svf ../../lib/libip6tc.so.0 %{BUILDROOT}/usr/lib/libip6tc.so
- ln -svf ../../lib/libipq.so.0 %{BUILDROOT}/usr/lib/libipq.so
- ln -svf ../../lib/libxtables.so.7 %{BUILDROOT}/usr/lib/libxtables.so
-
- # Replace absolute symlink
- ln -svf ../sbin/xtables-multi %{BUILDROOT}/bin/iptables-xml
-
- # Move binary which links to /usr/lib to /usr.
- mkdir -pv %{BUILDROOT}/usr/sbin
- mv -v %{BUILDROOT}/{,usr/}sbin/nfnl_osf