python3.11/find-provides-without-python-sonames.sh
Rex Dieter 8c9e381740 python3-devel missing autogenerated pkgconfig() provides (#746751)
In short, use
/usr/lib/rpm/redhat/find-provides
intead of
/usr/lib/rpm/find-provides
2011-10-17 13:48:14 -05:00

16 lines
499 B
Bash
Executable File

#!/bin/bash
# The standard find-provides script
# adds provides lines for all SONAME directives in all shared libraries,
# even if those libraries are not in the LD_LIBRARY_PATH
# This leads to the rpm having a redundant Provides "foo.so" for all of the
# various foo.so Python c modules
# So we strip out all /usr/lib/python lines first, before running them through
# the standard script:
grep -v "/usr/lib/python" | grep -v "/usr/lib64/python" | \
/usr/lib/rpm/redhat/find-provides
exit 0