commit 9ddcc23d2b7ecaf5336530dbe37195b0057d0396 Author: Ville Skyttä Date: Tue Jan 10 10:48:13 2012 +0200 Adapt perl and python fileattrs to file 5.10 magics - file 5.10 has changed magics at least for perl and python scripts, samples: 5.09: a /usr/bin/perl -w script, ASCII text executable, with very long lines 5.10: Perl script, ASCII text executable, with very long lines 5.09: a /usr/bin/python script, ASCII text executable 5.10: Python script, ASCII text executable Signed-off-by: Panu Matilainen diff --git a/fileattrs/perl.attr b/fileattrs/perl.attr index 23b873f..0daef58 100644 --- a/fileattrs/perl.attr +++ b/fileattrs/perl.attr @@ -1,3 +1,3 @@ %__perl_requires %{_rpmconfigdir}/perl.req -%__perl_magic ^.*perl .*$ +%__perl_magic ^.*[Pp]erl .*$ %__perl_flags exeonly diff --git a/fileattrs/python.attr b/fileattrs/python.attr index 5b48f75..4eaad76 100644 --- a/fileattrs/python.attr +++ b/fileattrs/python.attr @@ -1,4 +1,4 @@ %__python_provides %{_rpmconfigdir}/pythondeps.sh --provides %__python_requires %{_rpmconfigdir}/pythondeps.sh --requires %__python_path ^((/usr/lib(64)?/python[[:digit:]]\\.[[:digit:]]/.*\\.(py[oc]?|so))|(%{_bindir}/python[[:digit:]]\\.[[:digit:]]))$ -%__python_magic ^python.*(executable|byte-compiled)$ +%__python_magic ^[Pp]ython.*(executable|byte-compiled)$