rpmlib.req: generate rpmlib(PosttransFiletriggers) dependency for /usr/lib/rpm/*.filetrigger

This commit is contained in:
Alexey Tourbin 2008-11-13 00:57:57 +03:00
parent 4acd4051a0
commit 3a9f159460
5 changed files with 35 additions and 0 deletions

View File

@ -1015,6 +1015,8 @@ AC_OUTPUT([ Doxyfile Makefile rpmrc macros platform rpmpopt rpm.spec
scripts/pam.req
scripts/pkgconfig.req
scripts/pkgconfiglib.req
scripts/rpmlib.req
scripts/rpmlib.req.files
scripts/shebang.req
scripts/shell.prov
scripts/shell.req

View File

@ -506,6 +506,7 @@ fi
%rpmattr %_rpmlibdir/pam.*
%rpmattr %_rpmlibdir/pkgconfig.*
%rpmattr %_rpmlibdir/pkgconfiglib.*
%rpmattr %_rpmlibdir/rpmlib.*
%rpmattr %_rpmlibdir/shell.*
%rpmattr %_rpmlibdir/shebang.*
%rpmattr %_rpmlibdir/static.*

View File

@ -18,6 +18,7 @@ EXTRA_DIST = \
ldd lib.req lib.req.files lib.prov lib.prov.files shlib.req.awk \
pam.req pam.req.files pam.prov pam.prov.files perl.prov perl.req \
pkgconfig.req pkgconfiglib.req pkgconfig.req.files \
rpmlib.req rpmlib.req.files \
rpmdiff rpmdiff.cgi rpm.daily rpm.log rpm.xinetd rpm2cpio.sh \
shebang.req shebang.req.files \
shell.req shell.req.files shell.prov shell.prov.files \
@ -48,6 +49,7 @@ config_SCRIPTS = \
ldd lib.req lib.req.files lib.prov lib.prov.files shlib.req.awk \
pam.req pam.req.files pam.prov pam.prov.files perl.prov perl.req \
pkgconfig.req pkgconfiglib.req pkgconfig.req.files \
rpmlib.req rpmlib.req.files \
rpmdiff rpmdiff.cgi rpm.daily rpm.log rpm.xinetd rpm2cpio.sh \
shebang.req shebang.req.files \
shell.req shell.req.files shell.prov shell.prov.files \

15
scripts/rpmlib.req.files.in Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh -efu
# Actually we can use "AutoReq: yes, norpmlib" in rpm.spec.
if [ "${RPM_PACKAGE_NAME-}" = rpm ]; then
echo "${0##*/}: rpmlib.req disabled for rpm itself" >&2
exit 0
fi
while IFS=$'\t' read -r f t; do
case "$f" in
${RPM_BUILD_ROOT-}@RPMCONFIGDIR@/*.filetrigger) ;;
*) continue ;;
esac
echo "$f"
done

15
scripts/rpmlib.req.in Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh -efu
. @RPMCONFIGDIR@/functions
RpmlibReq()
{
local f="$1"; shift
case "$f" in
*.filetrigger)
echo 'rpmlib(PosttransFiletriggers)'
;;
esac
}
ArgvFileAction RpmlibReq "$@"