Drop %__find_prereq support

It has never been used anyway, and now it stands in the way of replacing
deprecated PreReq with Requires(pre,postun).
This commit is contained in:
Дмитрий Левин 2019-01-14 20:56:55 +00:00
parent e05c6cf019
commit efc8d3637c
3 changed files with 2 additions and 6 deletions

View File

@ -2446,11 +2446,8 @@ DepMsg_t depMsgs[] = {
{ "Provides", { "%{?__find_provides}", 0 },
RPMTAG_PROVIDENAME, RPMTAG_PROVIDEVERSION, RPMTAG_PROVIDEFLAGS,
0, -1 },
{ "PreReq", { "%{?__find_prereq}", 0 },
RPMTAG_REQUIRENAME, RPMTAG_REQUIREVERSION, RPMTAG_REQUIREFLAGS,
RPMSENSE_PREREQ, 0 },
{ "Requires", { "%{?__find_requires}", 0 },
-1, -1, RPMTAG_REQUIREFLAGS, /* XXX inherit name/version arrays */
RPMTAG_REQUIRENAME, RPMTAG_REQUIREVERSION, RPMTAG_REQUIREFLAGS,
RPMSENSE_PREREQ, RPMSENSE_PREREQ },
{ "Requires(interp)", { 0, "interp", 0 },
-1, -1, RPMTAG_REQUIREFLAGS,

View File

@ -179,7 +179,7 @@ defined in the spec file. To allow for maximum configurability the
dependency programs are shell scripts which can be duplicated and edited
for site specific needs.
The macros: %__find_provides, %__find_prereq, %__find_requires,
The macros: %__find_provides, %__find_requires,
%__find_conflicts, %__find_obsoletes, if they exist, are expanded to
the name of a program to exec. For each package, the program receives
the glob'ed %files manifest on stdin and returns dependencies on stdout. The

View File

@ -119,7 +119,6 @@
%__find_requires @FINDREQUIRES@
%__find_scriptlet_requires @RPMCONFIGDIR@/find-scriptlet-requires
%__find_debuginfo_files @RPMCONFIGDIR@/find-debuginfo-files
#%__find_prereq ???
#%__find_conflicts ???
#%__find_obsoletes ???