[file] fix #711843 - fix postscript detection
Jan Kaluža
jkaluza at fedoraproject.org
Thu Jun 9 09:06:11 UTC 2011
commit 98bb7aac3cd5dfcacb0ea89f66aa737a8b25fef8
Author: Jan Kaluza <hanzz.k at gmail.com>
Date: Thu Jun 9 11:05:44 2011 +0200
fix #711843 - fix postscript detection
file-postscript.patch | 13 +++++++++++++
file.spec | 7 ++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/file-postscript.patch b/file-postscript.patch
new file mode 100644
index 0000000..df5a2a7
--- /dev/null
+++ b/file-postscript.patch
@@ -0,0 +1,13 @@
+diff --git a/magic/Magdir/printer b/magic/Magdir/printer
+index 342dd28..e2b0b76 100644
+--- a/magic/Magdir/printer
++++ b/magic/Magdir/printer
+@@ -5,7 +5,7 @@
+ #
+
+ # PostScript, updated by Daniel Quinlan (quinlan at yggdrasil.com)
+-0 string/t %! PostScript document text
++0 string %! PostScript document text
+ !:mime application/postscript
+ !:apple ASPSTEXT
+ >2 string PS-Adobe- conforming
diff --git a/file.spec b/file.spec
index 8181b1d..211343f 100644
--- a/file.spec
+++ b/file.spec
@@ -5,7 +5,7 @@
Summary: A utility for determining file types
Name: file
Version: 5.07
-Release: 3%{?dist}
+Release: 4%{?dist}
License: BSD
Group: Applications/File
Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz
@@ -15,6 +15,7 @@ Patch2: file-5.05-rpm-archs.patch
Patch3: file-5.0.7-zip.patch
Patch4: file-5.0.7-dos.patch
Patch5: file-dell-bios.patch
+Patch6: file-postscript.patch
Requires: file-libs = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -75,6 +76,7 @@ file(1) command.
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
iconv -f iso-8859-1 -t utf-8 < doc/libmagic.man > doc/libmagic.man_
touch -r doc/libmagic.man doc/libmagic.man_
@@ -154,6 +156,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
+* Thu Jun 09 2011 Jan Kaluza <jkaluza at redhat.com> - 5.07-4
+- fix #711843 - fix postscript detection
+
* Thu Jun 09 2011 Jan Kaluza <jkaluza at redhat.com> - 5.07-3
- fix #709953 - add support for BIOS version detection
More information about the scm-commits
mailing list