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