Summary: A utility for determining file types. Name: file Version: 3.35 Release: 1 Copyright: distributable Group: Applications/File Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz Source1: magic.mime Patch0: file-3.27-rh.patch Patch1: file-3.33-ia64.patch Patch2: file-3.30-magic5.patch Patch3: file-3.30-fnovfl.patch Prefix: %{_prefix} BuildRoot: %{_tmppath}/%{name}-root %description The file command is used to identify a particular file according to the type of data contained by the file. File can identify many different file types, including ELF binaries, system libraries, RPM packages, and different graphics formats. You should install the file package, since the file command is such a useful utility. %prep %setup -q %patch0 -p1 %patch1 -p1 -b .ia64 %patch2 -p1 -b .magic5 %patch3 -p1 -b .fnovfl %build automake %configure make %install rm -rf $RPM_BUILD_ROOT mkdir -p ${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5 mkdir -p ${RPM_BUILD_ROOT}%{_datadir} %makeinstall { cd $RPM_BUILD_ROOT strip .%{_bindir}/file cp %SOURCE1 .%{_datadir}/magic.mime } %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/* %{_datadir}/magic* %{_mandir}/man*/* %changelog * Mon Jun 25 2001 Crutcher Dunnavant - itterate to 3.35 * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Sun Nov 26 2000 Jeff Johnson - update to 3.33. * Mon Aug 14 2000 Preston Brown - Bill made the patch but didn't apply it. :) * Mon Aug 14 2000 Bill Nottingham - 'ASCII text', not 'ASCII test' (#16168) * Mon Jul 31 2000 Jeff Johnson - fix off-by-1 error when creating filename for use with -i. - include a copy of GNOME /etc/mime-types in %{_datadir}/magic.mime (#14741). * Sat Jul 22 2000 Jeff Johnson - install magic as man5/magic.5 with other formats (#11172). * Wed Jul 12 2000 Prospector - automatic rebuild * Wed Jun 14 2000 Jeff Johnson - FHS packaging. * Tue Apr 14 2000 Bernhard Rosenkraenzer - 3.30 * Wed Feb 16 2000 Cristian Gafton - add ia64 patch from rth * Mon Feb 7 2000 Bill Nottingham - handle compressed manpages - update to 3.28 * Mon Aug 23 1999 Jeff Johnson - identify ELF stripped files correctly (#4665). - use SPARC (not sparc) consistently throughout (#4665). - add entries for MS Office files (#4665). * Thu Aug 12 1999 Jeff Johnson - diddle magic so that *.tfm files are identified correctly. * Tue Jul 6 1999 Jeff Johnson - update to 3.27. * Mon Mar 22 1999 Preston Brown - experimental support for realmedia files added * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 5) * Fri Mar 19 1999 Jeff Johnson - strip binary. * Fri Nov 27 1998 Jakub Jelinek - add SPARC V9 magic. * Tue Nov 10 1998 Jeff Johnson - update to 3.26. * Mon Aug 24 1998 Jeff Johnson - update to 3.25. - detect gimp XCF versions. * Thu May 07 1998 Prospector System - translations modified for de, fr, tr * Wed Apr 08 1998 Erik Troan - updated to 3.24 - buildrooted * Mon Jun 02 1997 Erik Troan - built against glibc * Mon Mar 31 1997 Erik Troan - Fixed problems caused by 64 bit time_t. * Thu Mar 06 1997 Michael K. Johnson - Improved recognition of Linux kernel images.