- fix #678458 - support for Python 3.2 compiled files

This commit is contained in:
Jan Kaluza 2011-03-01 09:50:36 +01:00
parent f16ffc2b28
commit 834f7f82ab
2 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,20 @@
diff --git a/magic/Magdir/python b/magic/Magdir/python
index 107b091..bee1b69 100644
--- a/magic/Magdir/python
+++ b/magic/Magdir/python
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
-# $File: python,v 1.16 2010/12/31 18:15:28 christos Exp $
+# $File: python,v 1.17 2011/02/08 13:45:15 christos Exp $
# python: file(1) magic for python
#
# From: David Necas <yeti@physics.muni.cz>
@@ -20,6 +20,7 @@
0 belong 0x03f30d0a python 2.7 byte-compiled
0 belong 0x3b0c0d0a python 3.0 byte-compiled
0 belong 0x4f0c0d0a python 3.1 byte-compiled
+0 belong 0x6c0c0d0a python 3.2 byte-compiled
0 search/1/w #!\ /usr/bin/python Python script text executable
!:mime text/x-python

View File

@ -5,7 +5,7 @@
Summary: A utility for determining file types
Name: file
Version: 5.05
Release: 3%{?dist}
Release: 4%{?dist}
License: BSD
Group: Applications/File
Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz
@ -15,6 +15,7 @@ Patch1: file-5.04-zip64.patch
Patch2: file-5.05-python-magic.patch
Patch3: file-5.05-latex-improve.patch
Patch4: file-5.05-rpm-archs.patch
Patch5: file-5.05-python-3.2.patch
Requires: file-libs = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -76,6 +77,8 @@ file(1) command.
%patch3 -p1
#fixes #676041
%patch4 -p1
#fixes #678458
%patch5 -p1
iconv -f iso-8859-1 -t utf-8 < doc/libmagic.man > doc/libmagic.man_
touch -r doc/libmagic.man doc/libmagic.man_
@ -155,6 +158,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
* Tue Mar 01 2011 Jan Kaluza <jkaluza@redhat.com> - 5.05-4
- fix #678458 - support for Python 3.2 compiled files
* Thu Feb 10 2011 Jan Kaluza <jkaluza@redhat.com> - 5.05-3
- fix #676543 - improved TeX and LaTeX recognition
- fix #676041 - detect all supported RPM architectures