diff --git a/file-5.31-mo-file-recognition.patch b/file-5.31-mo-file-recognition.patch new file mode 100644 index 0000000..33ad40e --- /dev/null +++ b/file-5.31-mo-file-recognition.patch @@ -0,0 +1,29 @@ +From 2e5e9e16a4847b2e60cabc70e6b9bd7d633cb68a Mon Sep 17 00:00:00 2001 +From: Christos Zoulas +Date: Sat, 22 Jul 2017 17:21:24 +0000 +Subject: [PATCH] Strength decreased in magic file magic/Magdir/dump for new-fs + dump file (little endian) to correctly recognize '*.mo' GNU message catalog + (little endian). + +https://bugzilla.redhat.com/show_bug.cgi?id=1226215 + +Upstream commit: https://github.com/file/file/commit/2e5e9e16a4847b2e60cabc70e6b9bd7d633cb68a +--- + magic/Magdir/dump | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/magic/Magdir/dump b/magic/Magdir/dump +index 64742b7a..c5711661 100644 +--- a/magic/Magdir/dump ++++ b/magic/Magdir/dump + >0 use old-dump-be + + 24 lelong 60012 new-fs dump file (little endian), ++# to correctly recognize '*.mo' GNU message catalog (little endian) ++!:strength - 15 + >0 use \^new-dump-be + + 24 lelong 60011 old-fs dump file (little endian), +-- +2.13.3 + diff --git a/file.spec b/file.spec index b111631..b009ead 100644 --- a/file.spec +++ b/file.spec @@ -5,7 +5,7 @@ Summary: A utility for determining file types Name: file Version: 5.29 -Release: 4%{?dist} +Release: 5%{?dist} License: BSD Group: Applications/File Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz @@ -28,6 +28,7 @@ Patch17: file-5.24-varied.patch # picked from upstream Patch102: file-5.29-short-sector.patch Patch103: file-5.30-python-utf8.patch +Patch104: file-5.31-mo-file-recognition.patch URL: http://www.darwinsys.com/file/ Requires: file-libs = %{version}-%{release} @@ -210,6 +211,9 @@ cd %{py3dir} %endif %changelog +* Tue Jul 25 2017 Marek Cermak - 5.29-5 +- fixed recognition of gnu message catalog (.mo) files (#1226215) + * Wed Apr 05 2017 Kamil Dudka - 5.29-4 - fix utf-8 conversion in Python 2 bindings (#1433364)