churchyard / rpms / python3

Forked from rpms/python3 4 years ago
Clone

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

a3483f9
#!/bin/bash
a3483f9
a3483f9
# The standard /usr/lib/rpm/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:
a3483f9
grep -v "/usr/lib/python" | /usr/lib/rpm/find-provides
a3483f9
a3483f9
exit 0