brp-cleanup: perl cleanup routines moved to rpm-build-perl
This commit is contained in:
parent
9243b431ff
commit
7dea69eca4
@ -113,7 +113,7 @@ Requires: alternatives >= 0.3.2
|
||||
Requires: elfutils >= 0.143-alt1
|
||||
Requires: info-install >= 4.11
|
||||
Requires: pkgconfig-reqprov pkgconfig-recursion
|
||||
Requires: rpm-build-perl >= 0.6.2
|
||||
Requires: rpm-build-perl >= 0.76
|
||||
Requires: rpm-build-python >= 0.31
|
||||
Conflicts: rpm-build-tcl <= 0.2
|
||||
Conflicts: rpm-build-mono <= 1.0
|
||||
|
@ -84,21 +84,7 @@ s,\([[:space:]]\)required[[:space:]]\+pam_stack.so[[:space:]]\+service=,\1substa
|
||||
' --
|
||||
fi
|
||||
|
||||
# All the rest is perl cleanup stuff.
|
||||
|
||||
set -- ./usr/*/perl5/
|
||||
[ -d "$1" ] || exit 0
|
||||
|
||||
find "$@" -type f -name .packlist -print0 |
|
||||
xargs -r0 rm -vf --
|
||||
|
||||
find "$@" -type f -name \*.bs -size 0 -print0 |
|
||||
xargs -r0 rm -vf --
|
||||
|
||||
f="$(find "$@" -type f -name \*.bs)"
|
||||
if [ -n "$f" ]; then
|
||||
echo "$PROG: non empty *.bs file(s) found:"
|
||||
printf %s\\n "$f"
|
||||
echo "$PROG: please contact packager"
|
||||
exit 1
|
||||
fi
|
||||
# Run ancillary cleanup methods.
|
||||
for f in @RPMCONFIGDIR@/*.clean; do
|
||||
"$f"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user