On Thu, 16 Jul 2009, David Steinbrunner wrote:

Christoph Maser wrote:

Am Dienstag, den 07.07.2009, 18:32 +0200 schrieb Joe Ogulin:
Error: Missing Dependency: perl(Normalize::Text::Normalize_Fields) is
needed by package
perl-MP3-Tag-1.11-1.el5.rf.noarch (rpmforge)


This one i broken. Seems like a mistake from find-requires skript. Is it
ok to simply put "Provides: perl(Normalize::Text::Normalize_Fields)" in
the spec of MP3-Tag? Or is there a way to remove things from requires
list?

The attached works for me.  It was generated by cpanspec and I added lines
from the rpmforge spec to handle the man and bin files.

The reason why it works for you with that SPEC file is because the examples are left out of the documentation.

There is this long-standing bug in RPM that also takes documentation into consideration for the auto-requires and auto-provides. And the perl packages are in fact very vulnerable to this.

The proper fix should go into perl.prov and perl.req and should consist of ignoring documentation files. I don't know if this is already in bugzilla, but if someone wants to do the effort to add it and make sure it gets fixed upstreal, ths fix is quite easy (check if filename starts with /usr/share/doc, and if so continue in the loop).

Since our SPEC files still need to work for RHEL3, RHEL4 and RHEL5. I don't think we can realy on this fix in the foreseeable future though.

--
--   dag wieers,  [email protected],  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]
_______________________________________________
users mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/users

Reply via email to