Dr. Werner Fink 2010-11-24 12:22:14 +00:00 committed by Git OBS Bridge
parent 7ef1d4f8cc
commit d9980ebbe1
3 changed files with 36 additions and 2 deletions

26
file-5.04-biorad.dif Normal file
View File

@ -0,0 +1,26 @@
--- magic/Magdir/images
+++ magic/Magdir/images 2010-11-24 12:11:01.520426341 +0000
@@ -551,11 +551,18 @@
# Bio-Rad .PIC is an image format used by microscope control systems
# and related image processing software used by biologists.
# From: Vebjorn Ljosa <vebjorn@ljosa.com>
-54 leshort 12345 Bio-Rad .PIC Image File
->0 leshort >0 %hd x
->2 leshort >0 %hd,
->4 leshort =1 1 image in file
->4 leshort >1 %hd images in file
+# BOOL values are two-byte integers; use them to rule out false positives.
+# http://web.archive.org/web/20050317223257/www.cs.ubc.ca/spider/ladic/text/biorad.txt
+# Samples: http://www.loci.wisc.edu/software/sample-data
+14 leshort <2
+>4 leshort >0
+>49 byte 0
+>62 leshort <2
+>>54 leshort 12345 Bio-Rad .PIC Image File
+>>>0 leshort >0 %hd x
+>>>2 leshort >0 %hd,
+>>>4 leshort =1 1 image in file
+>>>4 leshort >1 %hd images in file
# From Jan "Yenya" Kasprzak <kas@fi.muni.cz>
# The description of *.mrw format can be found at

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 24 13:17:11 CET 2010 - werner@suse.de
- Add patch for Bio-Rad image format to avoid conflicts with other
magic records like RPM and even some ACII files (bnc#654696)
-------------------------------------------------------------------
Fri Nov 5 22:41:23 UTC 2010 - cristian.rodriguez@opensuse.org

View File

@ -59,7 +59,8 @@ Patch26: file-4.24-solv.dif
Patch27: file-5.04-zip2.0.dif
Patch28: file-5.03-iso9660.dif
Patch29: file-5.04-llvm.dif
Patch30: file-5.04-visibility.patch
Patch30: file-5.04-visibility.patch
Patch31: file-5.04-biorad.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global _sysconfdir /etc
%global _miscdir %{_datadir}/misc
@ -125,8 +126,9 @@ Authors:
%patch27 -p0 -b .zip2.0
%patch28 -p0 -b .iso9600
%patch29 -p0 -b .llvm
%patch30 -p0 -b .vis
%patch31 -p0 -b .biorad
%patch
%patch30
%build
export LANG=POSIX
export LC_ALL=POSIX