churchyard / rpms / python3

Forked from rpms/python3 3 years ago
Clone

Blame find-provides-without-python-sonames.sh

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