summaryrefslogtreecommitdiff
path: root/fileattrs
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-12-01 09:06:05 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-12-01 09:18:29 +0200
commit73dec03ac143e7fc7eba82b2fbb8876f1b5aea2c (patch)
tree8da415db1a83adbf12552df828d8e67d8604c0d5 /fileattrs
parent9173e0f85972849df37dd6b5f3bb38c98730d4dc (diff)
downloadlibrpm-tizen-73dec03ac143e7fc7eba82b2fbb8876f1b5aea2c.tar.gz
librpm-tizen-73dec03ac143e7fc7eba82b2fbb8876f1b5aea2c.tar.bz2
librpm-tizen-73dec03ac143e7fc7eba82b2fbb8876f1b5aea2c.zip
Unbreak perl module dependency extraction
- Dumb attribute vs macro name thinko/typo preventing it from working at all, duh. - At least for now, revert back to magic based pattern: we dont really know where all the perl modules might live. OTOH this relies on the ugly "all .pm files are perl modules for now" hack inside rpmfc.c. We could of course use a loose /.*\\.pm path rule too for the same effect and eliminate the hack, but that'd leave strange stuff into fileclass tags when libmagic fails to detect its actually perl. Need to figure out something better here... maybe allow overriding libmagic detected strings from foo.attr or such.
Diffstat (limited to 'fileattrs')
-rw-r--r--fileattrs/perllib.attr6
1 files changed, 3 insertions, 3 deletions
diff --git a/fileattrs/perllib.attr b/fileattrs/perllib.attr
index a5e12d453..4e5422518 100644
--- a/fileattrs/perllib.attr
+++ b/fileattrs/perllib.attr
@@ -1,3 +1,3 @@
-%__perlmod_provides %{_rpmconfigdir}/perl.prov
-%__perlmod_requires %{_rpmconfigdir}/perl.req
-%__perlmod_pattern ^/usr/lib(64)?/perl[[:digit:]]/.*\\.pm$
+%__perllib_provides %{_rpmconfigdir}/perl.prov
+%__perllib_requires %{_rpmconfigdir}/perl.req
+%__perllib_magic ^Perl[[:digit:]] module source.*