Panu Matilainen 1cefad
commit 9b734cee5dc9805a6f8d24c3f30ed82a7aef5673
Panu Matilainen 1cefad
Author: Panu Matilainen <pmatilai@redhat.com>
Panu Matilainen 1cefad
Date:   Wed May 22 08:38:53 2013 +0300
Panu Matilainen 1cefad
Panu Matilainen 1cefad
    Only consider files with .pm suffix as perl modules (RhBug:927211)
Panu Matilainen 1cefad
    
Panu Matilainen 1cefad
    - Newer file is more eager to flag files as Perl module source,
Panu Matilainen 1cefad
      causing false provides to be generated. Require both magic
Panu Matilainen 1cefad
      and path to match for perllib classification to reduce the pain.
Panu Matilainen 1cefad
Panu Matilainen 1cefad
diff --git a/fileattrs/perllib.attr b/fileattrs/perllib.attr
Panu Matilainen 1cefad
index 4e54225..fcad480 100644
Panu Matilainen 1cefad
--- a/fileattrs/perllib.attr
Panu Matilainen 1cefad
+++ b/fileattrs/perllib.attr
Panu Matilainen 1cefad
@@ -1,3 +1,5 @@
Panu Matilainen 1cefad
 %__perllib_provides	%{_rpmconfigdir}/perl.prov
Panu Matilainen 1cefad
 %__perllib_requires	%{_rpmconfigdir}/perl.req
Panu Matilainen 1cefad
 %__perllib_magic	^Perl[[:digit:]] module source.*
Panu Matilainen 1cefad
+%__perllib_path		\\.pm$
Panu Matilainen 1cefad
+%__perllib_flags	magic_and_path