[Fedora-packaging] [RFR] Handling of %doc files

José Pedro Oliveira jpo at di.uminho.pt
Thu Nov 17 21:15:22 UTC 2005


Panu Matilainen wrote:
> Another idea: how about making rpm simply make anything marked as %doc
> non-executable? That'd stop example scripts from accidentally pulling in
> dependencies for good...

Unfortunately that doesn't resolve all the dependencies problems -
perl modules (non-executable .pm files) still pull new dependencies.

Example
==================================
Test.pm (file permissions 0644)
----------
package Test;
use Tk;
1;
----------

test.spec
-----------
...
%files
...
%doc Test.pm
...
-----------

Dependencies
----------
$ rpm -qpR ../RPMS/i386/test-0.1-1.i386.rpm
...
perl(Tk)
...
----------

jpo
-- 
José Pedro Oliveira
* mailto: jpo at di.uminho.pt * http://gsd.di.uminho.pt/jpo *
* gpg fingerprint = F9B6 8D87 859D 1C94 48F0 84C0 9749 9EB5 91BD 851B *

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20051117/c947c2eb/attachment.sig>


More information about the Fedora-packaging mailing list