fix LaTex issue in #474156

This commit is contained in:
Daniel Novotny 2008-12-15 16:26:32 +00:00
parent 95e16a73eb
commit 7d1c04c34c
2 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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 <dnovotny@redhat.com> 4.26-7
- fix the LaTex issue in bz#474156
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.26-6
- Rebuild for Python 2.6