From 7d1c04c34cd340a6390452b26581d4f0d454441a Mon Sep 17 00:00:00 2001 From: Daniel Novotny Date: Mon, 15 Dec 2008 16:26:32 +0000 Subject: [PATCH] fix LaTex issue in #474156 --- file-4.26-graphviz-latex.patch | 13 +++++++++++++ file.spec | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 file-4.26-graphviz-latex.patch diff --git a/file-4.26-graphviz-latex.patch b/file-4.26-graphviz-latex.patch new file mode 100644 index 0000000..c49ddcb --- /dev/null +++ b/file-4.26-graphviz-latex.patch @@ -0,0 +1,13 @@ +diff -up file-4.26/magic/Magdir/graphviz.latex file-4.26/magic/Magdir/graphviz +--- file-4.26/magic/Magdir/graphviz.latex 2008-12-15 16:55:28.000000000 +0100 ++++ file-4.26/magic/Magdir/graphviz 2008-12-15 17:10:07.000000000 +0100 +@@ -1,7 +1,7 @@ + + #------------------------------------------------------------------------------ + # graphviz: file(1) magic for http://www.graphviz.org/ +-0 regex/100 [\r\n\t\ ]*graph[\r\n\t\ ]*.*\\{ graphviz graph text ++0 regex/100 [\r\n\t\ ]*graph[\r\n\t\ ]+.*\\{ graphviz graph text + !:mime text/vnd.graphviz +-0 regex/100 [\r\n\t\ ]*digraph[\r\n\t\ ]*.*\\{ graphviz digraph text ++0 regex/100 [\r\n\t\ ]*digraph[\r\n\t\ ]+.*\\{ graphviz digraph text + !:mime text/vnd.graphviz diff --git a/file.spec b/file.spec index f7a7d9d..ca5f105 100644 --- a/file.spec +++ b/file.spec @@ -5,7 +5,7 @@ Summary: A utility for determining file types Name: file Version: 4.26 -Release: 6%{?dist} +Release: 7%{?dist} License: BSD Group: Applications/File Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz @@ -14,6 +14,7 @@ Patch0: file-4.21-pybuild.patch Patch1: file-4.26-devdrv.patch Patch2: file-4.26-mime-encoding.patch Patch3: file-4.26-perl5.patch +Patch4: file-4.26-graphviz-latex.patch Requires: file-libs = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -66,6 +67,8 @@ file(1) command. %patch2 -p1 #fixes #470811 %patch3 -p1 +#fixes #474156 +%patch4 -p1 iconv -f iso-8859-1 -t utf-8 < doc/libmagic.man > doc/libmagic.man_ touch -r doc/libmagic.man doc/libmagic.man_ @@ -139,6 +142,9 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Mon Dec 15 2008 Daniel Novotny 4.26-7 +- fix the LaTex issue in bz#474156 + * Thu Dec 04 2008 Ignacio Vazquez-Abrams - 4.26-6 - Rebuild for Python 2.6