From 17c2e0a6fecebb3c3cc7a9b310032f56ad1eb443 Mon Sep 17 00:00:00 2001 From: Marek Cermak Date: Jul 25 2017 14:14:37 +0000 Subject: Resolves: #1226215 - fixed recognition of gnu message catalog (.mo) files --- 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 72c69a8..aab805d 100644 --- a/file.spec +++ b/file.spec @@ -3,7 +3,7 @@ Summary: A utility for determining file types Name: file Version: 5.31 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: Applications/File Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz @@ -17,7 +17,7 @@ Patch4: file-5.04-volume_key.patch Patch5: file-5.04-man-return-code.patch # picked from upstream - +Patch6: file-5.31-mo-file-recognition.patch URL: http://www.darwinsys.com/file/ Requires: file-libs = %{version}-%{release} @@ -182,6 +182,9 @@ cd %{py3dir} %endif %changelog +* Tue Jul 25 2017 Marek Cermak - 5.31-2 +- fixed recognition of gnu message catalog (.mo) files (#1226215) + * Wed May 24 2017 Kamil Dudka - 5.31-1 - update to new version 5.31