On 30/07/13 17:30, Mark Goodwin wrote:
exclude pcp-import-sheet2pcp in the pcp spec, as above.
I'm looking for Plan B here. If RH and friends want to get out of the
Perl repackaging business, then they should provide more support for
over-riding the default Requires: generation in an rpm build for perl
modules.
Advice from rpm gurus would be welcome ...
The hook %{__find_requires} seems encouraging, especially as this
expands to /usr/lib/rpm/find-provides which contains this fragment that
I suspect is causing the problem ...
# --- Perl modules.
[ -x /usr/lib/rpm/perl.prov ] &&
echo $filelist | tr '[:blank:]' \\n | grep '\.pm$' |
/usr/lib/rpm/perl.prov | sort -u
But I cannot find a way to override or redefine %{__find_requires}.
Examples from googleland are rare, but this suggestion
%define __find_requires %{nil}
does not work (it makes no change to the prereqs in the rpm package).
Are there better examples I could use as a starting point?
What about
AutoReqProv: no
Can this be applied to just one package in a spec file?
|