This commit is contained in:
Daniel Novotny 2009-04-29 08:30:52 +00:00
parent 849efe8ce9
commit d810c06616
2 changed files with 21 additions and 1 deletions

14
file-5.00-erlang.patch Normal file
View File

@ -0,0 +1,14 @@
diff -up file-5.00/magic/Magdir/erlang.tue file-5.00/magic/Magdir/erlang
--- file-5.00/magic/Magdir/erlang.tue 2009-04-29 09:38:45.000000000 +0200
+++ file-5.00/magic/Magdir/erlang 2009-04-29 09:40:58.000000000 +0200
@@ -12,7 +12,7 @@
>8 string BEAM Erlang BEAM file
# 4.2 version may have a copyright notice!
-4 string Tue Jan 22 14:32:44 MET 1991 Erlang JAM file - version 4.2
-79 string Tue Jan 22 14:32:44 MET 1991 Erlang JAM file - version 4.2
+4 string Tue\ Jan\ 22\ 14:32:44\ MET\ 1991 Erlang JAM file - version 4.2
+79 string Tue\ Jan\ 22\ 14:32:44\ MET\ 1991 Erlang JAM file - version 4.2
-4 string 1.0 Fri Feb 3 09:55:56 MET 1995 Erlang JAM file - version 4.3
+4 string 1.0\ Fri\ Feb\ 3\ 09:55:56\ MET\ 1995 Erlang JAM file - version 4.3

View File

@ -5,7 +5,7 @@
Summary: A utility for determining file types
Name: file
Version: 5.00
Release: 7%{?dist}
Release: 8%{?dist}
License: BSD
Group: Applications/File
Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz
@ -17,6 +17,7 @@ Patch3: file-5.00-thumbs-db.patch
Patch4: file-5.00-fonts-ttc-pfa.patch
Patch5: file-5.00-fdleak.patch
Patch6: file-5.00-mdmp.patch
Patch7: file-5.00-erlang.patch
Requires: file-libs = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -75,6 +76,8 @@ file(1) command.
%patch5 -p1
#fixes #485835
%patch6 -p1
#fixes #498036
%patch7 -p1
iconv -f iso-8859-1 -t utf-8 < doc/libmagic.man > doc/libmagic.man_
touch -r doc/libmagic.man doc/libmagic.man_
@ -148,6 +151,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
* Wed Apr 29 2009 Daniel Novotny <dnovotny@redhat.com> 5.00-8
- fix #498036 - Elang JAM file definition breaks detection of postscript-files
* Mon Apr 20 2009 Daniel Novotny <dnovotny@redhat.com> 5.00-7
- fix previous patch:
the name of the format is a bit different (MDUMP -> MDMP)