rpms/file/devel file-4.23-mismatch.patch, NONE, 1.1 file.spec, 1.69, 1.70

Tomas Smetana (tsmetana) fedora-extras-commits at redhat.com
Fri Feb 1 11:19:22 UTC 2008


Author: tsmetana

Update of /cvs/pkgs/rpms/file/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20810

Modified Files:
	file.spec 
Added Files:
	file-4.23-mismatch.patch 
Log Message:
* Fri Feb 01 2008 Tomas Smetana <tsmetana at redhat.com> - 4.23-4
- fix mismatching gzip files and text files as animations


file-4.23-mismatch.patch:

--- NEW FILE file-4.23-mismatch.patch ---
diff -up file-4.23/magic/Magdir/animation.mismatch file-4.23/magic/Magdir/animation
--- file-4.23/magic/Magdir/animation.mismatch	2007-11-08 01:28:03.000000000 +0100
+++ file-4.23/magic/Magdir/animation	2008-02-01 12:16:13.000000000 +0100
@@ -570,7 +570,8 @@
 >>4     byte&0x78       0x18           \b, 3 streams
 >>4     byte            &0x20          \b, 4 or more streams
 >>4     byte            &0x40          \b, 8 or more streams
-0       beshort         0x4DE1         MPEG-4 LO-EP audio stream
+# Matches text files
+#0       beshort         0x4DE1         MPEG-4 LO-EP audio stream
 
 # FLI animation format
 4	leshort		0xAF11			FLI file
@@ -580,12 +581,13 @@
 >12	leshort		x			depth=%d,
 >16	leshort		x			ticks/frame=%d
 # FLC animation format
-4	leshort		0xAF12			FLC file
->6	leshort		x			- %d frames
->8	leshort		x			width=%d pixels,
->10	leshort		x			height=%d pixels,
->12	leshort		x			depth=%d,
->16	leshort		x			ticks/frame=%d
+4	leshort		0xAF12			
+>0	string		!\037\213	FLC file
+>>6	leshort		x			- %d frames
+>>8	leshort		x			width=%d pixels,
+>>10	leshort		x			height=%d pixels,
+>>12	leshort		x			depth=%d,
+>>16	leshort		x			ticks/frame=%d
 
 # DL animation format
 # XXX - collision with most `mips' magic


Index: file.spec
===================================================================
RCS file: /cvs/pkgs/rpms/file/devel/file.spec,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- file.spec	1 Feb 2008 08:55:22 -0000	1.69
+++ file.spec	1 Feb 2008 11:18:38 -0000	1.70
@@ -5,7 +5,7 @@
 Summary: A utility for determining file types
 Name: file
 Version: 4.23
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: BSD
 Group: Applications/File
 Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz
@@ -25,7 +25,8 @@
 patch13: file-4.21-efi.patch
 patch14: file-4.21-pybuild.patch
 patch15: file-4.23-tryelf.patch
-patch15: file-4.23-ext4.patch
+patch16: file-4.23-ext4.patch
+patch17: file-4.23-mismatch.patch
 
 Requires: file-libs = %{version}-%{release}
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -85,6 +86,9 @@
 %patch13 -p1 -b .efi
 %patch14 -p1 -b .pybuild
 %patch15 -p1 -b .tryelf
+%patch16 -p1 -b .ext4
+%patch17 -p1 -b .mismatch
+
 
 iconv -f iso-8859-1 -t utf-8 < doc/libmagic.man > doc/libmagic.man_
 touch -r doc/libmagic.man doc/libmagic.man_
@@ -157,6 +161,9 @@
 %endif
 
 %changelog
+* Fri Feb 01 2008 Tomas Smetana <tsmetana at redhat.com> - 4.23-4
+- fix mismatching gzip files and text files as animations
+
 * Fri Feb 01 2008 Tomas Smetana <tsmetana at redhat.com> - 4.23-3
 - fix #430927 - detect ext4 filesystems
 




More information about the fedora-extras-commits mailing list