torsava / rpms / python3

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