417a11
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
417a11
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
417a11
%global __libtoolize :
417a11
417a11
Summary: A utility for determining file types
417a11
Name: file
417a11
Version: 5.11
417a11
Release: 22%{?dist}
417a11
License: BSD
417a11
Group: Applications/File
417a11
Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz
417a11
# Upstream says it's up to distributions to add a way to support local-magic.
417a11
Patch0: file-localmagic.patch
417a11
# sent upstream - should be included in next upstream release
417a11
Patch1: file-tnef.patch
417a11
Patch2: file-5.10-strength.patch
417a11
Patch3: file-5.10-sticky-bit.patch
417a11
Patch4: file-python-func.patch
417a11
Patch5: file-qed-vdi-image.patch
417a11
Patch6: file-5.11-ia64-swap.patch
417a11
Patch7: file-4.17-rpm-name.patch
417a11
Patch8: file-5.11-magicmgc-home.patch
417a11
Patch9: file-5.11-compress.patch
417a11
Patch10: file-5.11-dump-twice.patch
417a11
Patch11: file-5.04-volume_key.patch
417a11
Patch12: file-5.04-man-return-code.patch
417a11
Patch13: file-5.04-generic-msdos.patch
417a11
Patch14: file-5.14-netpbm.patch
417a11
Patch15: file-5.11-rrdtool.patch
417a11
Patch16: file-5.11-exit-code.patch
417a11
Patch17: file-5.11-perl-shebang.patch
417a11
Patch18: file-5.11-qcow3.patch
417a11
Patch19: file-5.11-maxmime.patch
417a11
Patch20: file-5.11-CVE-2014-1943.patch
417a11
Patch21: file-5.11-CVE-2014-2270.patch
417a11
Patch22: file-5.11-CVE-2013-7345.patch
417a11
Patch30: file-5.11-add-aarch64.patch
417a11
URL: http://www.darwinsys.com/file/
417a11
Requires: file-libs = %{version}-%{release}
417a11
BuildRequires: zlib-devel
417a11
417a11
%description
417a11
The file command is used to identify a particular file according to the
417a11
type of data contained by the file.  File can identify many different
417a11
file types, including ELF binaries, system libraries, RPM packages, and
417a11
different graphics formats.
417a11
417a11
%package libs
417a11
Summary: Libraries for applications using libmagic
417a11
Group:   Applications/File
417a11
License: BSD
417a11
417a11
%description libs
417a11
417a11
Libraries for applications using libmagic.
417a11
417a11
%package devel
417a11
Summary:  Libraries and header files for file development
417a11
Group:    Applications/File
417a11
Requires: %{name} = %{version}-%{release}
417a11
417a11
%description devel
417a11
The file-devel package contains the header files and libmagic library
417a11
necessary for developing programs using libmagic.
417a11
417a11
%package static
417a11
Summary: Static library for file development
417a11
Group:    Applications/File
417a11
Requires: %{name} = %{version}-%{release}
417a11
417a11
%description static
417a11
The file-static package contains the static version of
417a11
the libmagic library.
417a11
417a11
%package -n python-magic
417a11
Summary: Python bindings for the libmagic API
417a11
Group:   Development/Libraries
417a11
BuildArch: noarch
417a11
BuildRequires: python2-devel
417a11
Requires: %{name} = %{version}-%{release}
417a11
417a11
%description -n python-magic
417a11
This package contains the Python bindings to allow access to the
417a11
libmagic API. The libmagic library is also used by the familiar
417a11
file(1) command.
417a11
417a11
%prep
417a11
417a11
# Don't use -b -- it will lead to poblems when compiling magic file!
417a11
%setup -q
417a11
%patch0 -p1
417a11
%patch1 -p1
417a11
%patch2 -p1
417a11
%patch3 -p1
417a11
%patch4 -p1
417a11
%patch5 -p1
417a11
%patch6 -p1
417a11
%patch7 -p1
417a11
%patch8 -p1
417a11
%patch9 -p1
417a11
%patch10 -p1
417a11
%patch11 -p1
417a11
%patch12 -p1
417a11
%patch13 -p1
417a11
%patch14 -p1
417a11
%patch15 -p1
417a11
%patch16 -p1
417a11
%patch17 -p1
417a11
%patch18 -p1
417a11
%patch19 -p1
417a11
%patch20 -p1
417a11
%patch21 -p1
417a11
%patch22 -p1
417a11
%patch30 -p1
417a11
417a11
iconv -f iso-8859-1 -t utf-8 < doc/libmagic.man > doc/libmagic.man_
417a11
touch -r doc/libmagic.man doc/libmagic.man_
417a11
mv doc/libmagic.man_ doc/libmagic.man
417a11
417a11
%build
417a11
CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
417a11
%configure --enable-fsect-man5 --disable-rpath
417a11
# remove hardcoded library paths from local libtool
417a11
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
417a11
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
417a11
export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/src/.libs
417a11
make
417a11
cd python
417a11
CFLAGS="%{optflags}" %{__python} setup.py build
417a11
417a11
%install
417a11
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
417a11
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
417a11
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5
417a11
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/misc
417a11
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/file
417a11
417a11
make DESTDIR=${RPM_BUILD_ROOT} install
417a11
rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
417a11
417a11
# local magic in /etc/magic
417a11
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}
417a11
cp -a ./magic/magic.local ${RPM_BUILD_ROOT}%{_sysconfdir}/magic
417a11
417a11
cat magic/Magdir/* > ${RPM_BUILD_ROOT}%{_datadir}/misc/magic
417a11
ln -s misc/magic ${RPM_BUILD_ROOT}%{_datadir}/magic
417a11
#ln -s file/magic.mime ${RPM_BUILD_ROOT}%{_datadir}/magic.mime
417a11
ln -s ../magic ${RPM_BUILD_ROOT}%{_datadir}/file/magic
417a11
417a11
cd python
417a11
%{__python} setup.py install -O1 --skip-build --root ${RPM_BUILD_ROOT}
417a11
%{__install} -d ${RPM_BUILD_ROOT}%{_datadir}/%{name}
417a11
417a11
%post libs -p /sbin/ldconfig
417a11
417a11
%postun libs -p /sbin/ldconfig
417a11
417a11
%files
417a11
%doc COPYING ChangeLog README
417a11
%{_bindir}/*
417a11
%{_mandir}/man1/*
417a11
%config(noreplace) %{_sysconfdir}/magic
417a11
417a11
%files libs
417a11
%doc COPYING ChangeLog README
417a11
%{_libdir}/*so.*
417a11
%{_datadir}/magic*
417a11
%{_mandir}/man5/*
417a11
%{_datadir}/file
417a11
%{_datadir}/misc/*
417a11
417a11
%files devel
417a11
%{_libdir}/*.so
417a11
%{_includedir}/magic.h
417a11
%{_mandir}/man3/*
417a11
417a11
%files static
417a11
%{_libdir}/*.a
417a11
417a11
%files -n python-magic
417a11
%doc python/README COPYING python/example.py
417a11
%{python_sitelib}/magic.py
417a11
%{python_sitelib}/magic.pyc
417a11
%{python_sitelib}/magic.pyo
417a11
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
417a11
%{python_sitelib}/*egg-info
417a11
%endif
417a11
417a11
%changelog
417a11
* Tue Jul 15 2014 Jan Kaluza <jkaluza@redhat.com> - 5.11-22
417a11
- fix #1067688 - add support for aarch64 ELF binaries
417a11
417a11
* Tue Mar 25 2014 Jan Kaluza <jkaluza@redhat.com> - 5.11-21
417a11
- fix #1079848 - fix potential regression in Perl detection caused
417a11
  by previous fix
417a11
417a11
* Mon Mar 24 2014 Jan Kaluza <jkaluza@redhat.com> - 5.11-20
417a11
- fix #1079848 - fix for CVE-2013-7345
417a11
417a11
* Fri Mar 07 2014 Jan Kaluza <jkaluza@redhat.com> - 5.11-19
417a11
- fix #1073554 - fix for CVE-2014-2270
417a11
417a11
* Wed Feb 19 2014 Jan Kaluza <jkaluza@redhat.com> - 5.11-18
417a11
- fix #1066563 - fix for CVE-2014-1943
417a11
417a11
* Wed Feb 12 2014 Jan Kaluza <jkaluza@redhat.com> - 5.11-17
417a11
- Increase MAXMIME size to 80 bytes (#1064167)
417a11
417a11
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 5.11-16
417a11
- Mass rebuild 2014-01-24
417a11
417a11
* Fri Jan 10 2014 Jan Kaluza <jkaluza@redhat.com> - 5.11-15
417a11
- fix #1048910 - detect perl scripts even with arguments in shebang
417a11
417a11
* Tue Jan 07 2014 Jan Kaluza <jkaluza@redhat.com> - 5.11-14
417a11
- fix #1048910 - increase perl scripts magic strength
417a11
- fix #1048082 - add support for QCOW3 images detection
417a11
417a11
* Thu Jan 02 2014 Jan Kaluza <jkaluza@redhat.com> - 5.11-13
417a11
- fix #1038025 - improve perl scripts detection according to perl shebang
417a11
417a11
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 5.11-12
417a11
- Mass rebuild 2013-12-27
417a11
417a11
* Fri Nov 08 2013 Jan Kaluza <jkaluza@redhat.com> - 5.11-11
417a11
- fix #1022967 - improve RRD Tool database detection
417a11
- fix #1026852 - exit with 0 exit code when input file does not exist
417a11
417a11
* Mon Jun 17 2013 Jan Kaluza <jkaluza@redhat.com> - 5.11-10
417a11
- build python-magic as noarch
417a11
- fix netpbm detection
417a11
417a11
* Mon Mar 11 2013 Jan Kaluza <jkaluza@redhat.com> - 5.11-9
417a11
- fix #919466 - fix memory leak in get_default_magic
417a11
417a11
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.11-8
417a11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
417a11
417a11
* Tue Dec 04 2012 Jan Kaluza <jkaluza@redhat.com> - 5.11-7
417a11
- removed duplicated patterns for backups generated by "dump" tool
417a11
- recognize volume_key escrow packets
417a11
- mention exit code in manpage
417a11
- remove weak msdos patterns
417a11
417a11
* Wed Nov 21 2012 Jan Kaluza <jkaluza@redhat.com> - 5.11-6
417a11
- clean up the spec file
417a11
417a11
* Tue Aug 14 2012 Jan Kaluza <jkaluza@redhat.com> - 5.11-5
417a11
- fix #847936 - decompress bzip2 properly when using -z param
417a11
- fix #847937 - read magic patterns also from ~/.magic.mgc
417a11
417a11
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.11-4
417a11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
417a11
417a11
* Thu Jul 19 2012 Jan Kaluza <jkaluza@redhat.com> - 5.11-3
417a11
- removed buildroot, defattr
417a11
417a11
* Tue Jun 21 2012 Jan Kaluza <jkaluza@redhat.com> - 5.11-2
417a11
- detect names of RPM packages
417a11
- detect swap on ia64 architecture
417a11
417a11
* Mon Feb 27 2012 Jan Kaluza <jkaluza@redhat.com> - 5.11-1
417a11
- fix #796130 - update to file-5.11
417a11
- fix #796209 - recognize VDI images
417a11
- fix #795709 - recognize QED images
417a11
417a11
* Wed Jan 18 2012 Jan Kaluza <jkaluza@redhat.com> - 5.10-5
417a11
- fix detection of ASCII text files with setuid, setgid, or sticky bits
417a11
417a11
* Tue Jan 10 2012 Jan Kaluza <jkaluza@redhat.com> - 5.10-4
417a11
- fix #772651 - decrease strength of newly added "C source" patterns
417a11
417a11
* Tue Jan 03 2012 Jan Kaluza <jkaluza@redhat.com> - 5.10-3
417a11
- fix #771292 - do not show 'using regular magic file' warning for /etc/magic,
417a11
  because this file is not supposed to be compiled
417a11
417a11
* Mon Jan 02 2012 Jan Kaluza <jkaluza@redhat.com> - 5.10-2
417a11
- fix #770006 - detect tnef files
417a11
417a11
* Mon Jan 02 2012 Jan Kaluza <jkaluza@redhat.com> - 5.10-1
417a11
- fix #771030 - update to file-5.10
417a11
417a11
* Mon Jan 02 2012 Jan Kaluza <jkaluza@redhat.com> - 5.09-3
417a11
- fix #720321 - added /etc/magic config file to let users define their local
417a11
  magic patterns
417a11
417a11
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.09-2
417a11
- Rebuilt for glibc bug#747377
417a11
417a11
* Thu Sep 29 2011 Jan Kaluza <jkaluza@redhat.com> - 5.09-1
417a11
- fix #739286 - update to file-5.09
417a11
417a11
* Thu Aug 04 2011 Jan Kaluza <jkaluza@redhat.com> - 5.08-1
417a11
- fix #728181 - update to file-5.08
417a11
- remove unused patches
417a11
417a11
* Tue Jun 14 2011 Jan Kaluza <jkaluza@redhat.com> - 5.07-5
417a11
- fix #712991 - include RPM noarch in /usr/share/magic
417a11
417a11
* Thu Jun 09 2011 Jan Kaluza <jkaluza@redhat.com> - 5.07-4
417a11
- fix #711843 - fix postscript detection
417a11
417a11
* Thu Jun 09 2011 Jan Kaluza <jkaluza@redhat.com> - 5.07-3
417a11
- fix #709953 - add support for BIOS version detection
417a11
417a11
* Mon May 23 2011 Jan Kaluza <jkaluza@redhat.com> - 5.07-2
417a11
- backported patches to fix 5.07 regressions
417a11
- fix #706231 - fixed ZIP detection
417a11
- fix #705183, #705499 - removed weak DOS device driver pattern
417a11
417a11
* Wed May 11 2011 Jan Kaluza <jkaluza@redhat.com> - 5.07-1
417a11
- update to new upstream version 5.07
417a11
- remove unused patches
417a11
417a11
* Tue Mar 01 2011 Jan Kaluza <jkaluza@redhat.com> - 5.05-4
417a11
- fix #678458 - support for Python 3.2 compiled files
417a11
417a11
* Thu Feb 10 2011 Jan Kaluza <jkaluza@redhat.com> - 5.05-3
417a11
- fix #676543 - improved TeX and LaTeX recognition
417a11
- fix #676041 - detect all supported RPM architectures
417a11
417a11
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.05-2
417a11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
417a11
417a11
* Tue Jan 18 2011 Jan Kaluza <jkaluza@redhat.com> - 5.05-1
417a11
- fix #670319 - update to new upstream release 5.05
417a11
- removed useless patches
417a11
417a11
* Mon Jan 10 2011 Jan Kaluza <jkaluza@redhat.com> - 5.04-18
417a11
- fix #668304 - support for com32r programs
417a11
- distinguish between GFS2 and GFS1 filesystems
417a11
417a11
* Wed Nov 24 2010 Jan Kaluza <jkaluza@redhat.com> - 5.04-17
417a11
- fix #656395 - "string" magic directive supports longer strings
417a11
417a11
* Wed Aug 29 2010 Jan Kaluza <jkaluza@redhat.com> - 5.04-16
417a11
- fix #637785 - support for zip64 format
417a11
417a11
* Tue Aug 24 2010 Jan Kaluza <jkaluza@redhat.com> - 5.04-15
417a11
- fix #626591 - support for WebM format
417a11
417a11
* Thu Aug 12 2010 Jan Kaluza <jkaluza@redhat.com> - 5.04-14
417a11
- fix #623602 - support for Python 2.7 compiled files
417a11
417a11
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 5.04-13
417a11
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
417a11
417a11
* Thu Jul 19 2010 Jan Kaluza <jkaluza@redhat.com> 5.04-12
417a11
- fix #599695 - try to get "from" attribute for ELF binaries
417a11
  only from core dumps.
417a11
417a11
* Thu Jul 08 2010 Jan Kaluza <jkaluza@redhat.com> 5.04-11
417a11
- added docs for file-libs
417a11
417a11
* Tue Jun 29 2010 Jan Kaluza <jkaluza@redhat.com> 5.04-10
417a11
- fix #608922 - updated z-machine magic
417a11
417a11
* Fri Jun 11 2010 Jan Kaluza <jkaluza@redhat.com> 5.04-9
417a11
- removed excessive HTML/SGML "magic patterns" (#603040)
417a11
417a11
* Wed Apr 14 2010 Daniel Novotny <dnovotny@redhat.com> 5.04-8
417a11
- fix #580046 - the file command returns zero exit code 
417a11
                even in case of unexisting file being tested
417a11
417a11
* Wed Apr 07 2010 Daniel Novotny <dnovotny@redhat.com> 5.04-7
417a11
- fix #566305 - "file" may trim too much of command line from core file
417a11
417a11
* Wed Mar 24 2010 Daniel Novotny <dnovotny@redhat.com> 5.04-6
417a11
- fix #550212 - 'file' gives bad meta-data for squashfs-4.0 
417a11
417a11
* Wed Mar 24 2010 Daniel Novotny <dnovotny@redhat.com> 5.04-5
417a11
- fix #575184 - file command does not print separator 
417a11
  when --print0 option is used
417a11
417a11
* Thu Mar 11 2010 Daniel Novotny <dnovotny@redhat.com> 5.04-4
417a11
- fix #570785 - "file" misidentifies filesystem type
417a11
417a11
* Tue Feb 09 2010 Daniel Novotny <dnovotny@redhat.com> 5.04-3
417a11
- fix #562840 -  [PATCH] Add matches for ruby modules
417a11
417a11
* Thu Jan 28 2010 Daniel Novotny <dnovotny@redhat.com> 5.04-2
417a11
- fix #533245 -  segfaults on star.ulaw
417a11
417a11
* Mon Jan 25 2010 Daniel Novotny <dnovotny@redhat.com> 5.04-1
417a11
- update to new upstream release 5.04
417a11
417a11
* Mon Jan 18 2010 Daniel Novotny <dnovotny@redhat.com> 5.03-18
417a11
- static library moved to new "-static" subpackage (#556048)
417a11
417a11
* Fri Dec 25 2009 Robert Scheck <robert@fedoraproject.org> 5.03-17
417a11
- removed broken install of example.py (%%doc is much enough)
417a11
417a11
* Mon Nov 30 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-16
417a11
- fixed the patch for multilib (#515767)
417a11
417a11
* Tue Nov 24 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-15
417a11
- BuildRequires: autoconf, automake
417a11
417a11
* Tue Nov 24 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-14
417a11
- BuildRequires: automake because of the Makefile.am patch
417a11
417a11
* Fri Nov 13 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-13
417a11
- fix #537324 -  update spec conditional for rhel
417a11
417a11
* Thu Nov 05 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-12
417a11
- fix #533151 -  file command doesn't recognize deltaisos or rpm-only deltarpms
417a11
417a11
* Tue Oct 27 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-11
417a11
- fix #531082 -  RFE: add detection of Python 3 bytecode
417a11
- fix #531127 -  `file' command does not recognize mime type `image/vnd.djvu'
417a11
417a11
* Wed Oct 21 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-10
417a11
- fix #530083 -  file -s is not able to detect swap signature on ppc
417a11
417a11
* Tue Aug 25 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-9
417a11
- fix #515767 -  multilib: file /usr/share/misc/magic.mgc conflicts
417a11
417a11
* Thu Aug 06 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-8
417a11
- rebuild for #515767 -  multilib: file /usr/share/misc/magic.mgc conflicts
417a11
417a11
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.03-7
417a11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
417a11
417a11
* Thu Jul 23 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-6
417a11
- fix #510429 -  file is confused by string "/* (if any) */" 
417a11
       in C header and claims it "Lisp/Scheme program text"
417a11
417a11
* Wed Jul 22 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-5
417a11
- #513079 -  RFE: file - recognize xfs metadump images
417a11
417a11
* Fri Jul 10 2009 Adam Jackson <ajax@redhat.com> 5.03-4
417a11
- Clean up %%description.
417a11
417a11
* Tue Jun 16 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-4
417a11
- one more PostScript font magic added (#505762),
417a11
  updated font patch
417a11
417a11
* Tue Jun 16 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-3
417a11
- added magic for three font issues (PostScript fonts)
417a11
  (#505758, #505759, #505765)
417a11
417a11
* Thu May 14 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-2
417a11
- fix #500739 - Disorganized magic* file locations in file-libs
417a11
417a11
* Mon May 11 2009 Daniel Novotny <dnovotny@redhat.com> 5.03-1
417a11
- new upstream version
417a11
417a11
* Tue May 05 2009 Daniel Novotny <dnovotny@redhat.com> 5.02-1
417a11
- new upstream version; drop upstreamed patches; this fixes #497913
417a11
417a11
* Wed Apr 29 2009 Daniel Novotny <dnovotny@redhat.com> 5.00-8
417a11
- fix #498036 - Elang JAM file definition breaks detection of postscript-files
417a11
417a11
* Mon Apr 20 2009 Daniel Novotny <dnovotny@redhat.com> 5.00-7
417a11
- fix previous patch:
417a11
  the name of the format is a bit different (MDUMP -> MDMP)
417a11
417a11
* Fri Apr 17 2009 Daniel Novotny <dnovotny@redhat.com> 5.00-6
417a11
- fix #485835 (MDUMP files)
417a11
417a11
* Mon Mar 23 2009 Daniel Novotny <dnovotny@redhat.com> 5.00-5
417a11
- added two font definitions (#491594, #491595)
417a11
  and a fix for file descriptor leak when MAGIC_COMPRESS used (#491596)
417a11
417a11
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.00-4
417a11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
417a11
417a11
* Mon Feb 23 2009 Daniel Novotny <dnovotny@redhat.com> 5.00-3
417a11
- fix #486105 -  file-5.00-2.fc11 fails to recognise a file 
417a11
  (and makes rpmbuild fail)
417a11
417a11
* Mon Feb 16 2009 Daniel Novotny <dnovotny@redhat.com> 5.00-2
417a11
- fix #485141 -  rpm failed while checking a French Word file
417a11
417a11
* Mon Feb 09 2009 Daniel Novotny <dnovotny@redhat.com> 5.00-1
417a11
- upgrade to 5.00
417a11
- drop upstreamed patches, rebase remaining patch
417a11
417a11
* Wed Jan 14 2009 Daniel Novotny <dnovotny@redhat.com> 4.26-9
417a11
- fix #476655 detect JPEG-2000 Code Stream Bitmap
417a11
417a11
* Mon Jan 12 2009 Daniel Novotny <dnovotny@redhat.com> 4.26-8
417a11
- fix #479300 - add btrfs filesystem magic
417a11
417a11
* Mon Dec 15 2008 Daniel Novotny <dnovotny@redhat.com> 4.26-7
417a11
- fix the LaTex issue in bz#474156
417a11
417a11
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.26-6
417a11
- Rebuild for Python 2.6
417a11
417a11
* Thu Dec 04 2008 Daniel Novotny <dnovotny@redhat.com> - 4.26-5
417a11
- fix #470811 - Spurious perl auto-requires
417a11
417a11
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.26-4
417a11
- Rebuild for Python 2.6
417a11
417a11
* Thu Oct 16 2008 Daniel Novotny <dnovotny@redhat.com> 4.26-3
417a11
- fix #465994 file --mime-encoding seems broken
417a11
417a11
* Tue Oct 07 2008 Daniel Novotny <dnovotny@redhat.com> 4.26-2
417a11
- fix #463809: rpmbuild rpmfcClassify: Assertion fails on some binary files
417a11
  (false positive test on "DOS device driver" crashed file(1)
417a11
   and rpmbuild(8) failed)  
417a11
417a11
* Mon Sep 15 2008 Daniel Novotny <dnovotny@redhat.com> 4.26-1
417a11
- new upstream version: fixes #462064
417a11
417a11
* Mon Jul 21 2008 Tomas Smetana <tsmetana@redhat.com> - 4.25-1
417a11
- new upstream version; drop upstreamed patches
417a11
417a11
* Fri Jun 06 2008 Tomas Smetana <tsmetana@redhat.com> - 4.24-4
417a11
- add GFS2 filesystem magic; thanks to Eric Sandeen
417a11
- add LVM snapshots magic (#449755); thanks to Jason Farrell
417a11
417a11
* Wed Jun 04 2008 Tomas Smetana <tsmetana@redhat.com> - 4.24-3
417a11
- drop patches that do nothing in recent build system
417a11
- create the text magic file during installation
417a11
417a11
* Tue Jun 03 2008 Tomas Smetana <tsmetana@redhat.com> - 4.24-2
417a11
- rebuild because of egg-info
417a11
417a11
* Tue Jun 03 2008 Tomas Smetana <tsmetana@redhat.com> - 4.24-1
417a11
- new upstream version
417a11
417a11
* Tue Mar 11 2008 Tomas Smetana <tsmetana@redhat.com> - 4.23-5
417a11
- fix EFI detection patch
417a11
417a11
* Fri Feb 01 2008 Tomas Smetana <tsmetana@redhat.com> - 4.23-4
417a11
- fix mismatching gzip files and text files as animations
417a11
417a11
* Fri Feb 01 2008 Tomas Smetana <tsmetana@redhat.com> - 4.23-3
417a11
- fix #430927 - detect ext4 filesystems
417a11
417a11
* Thu Jan 31 2008 Tomas Smetana <tsmetana@redhat.com> - 4.23-2
417a11
- fix #430952 - wrong handling of ELF binaries
417a11
417a11
* Tue Jan 29 2008 Tomas Smetana <tsmetana@redhat.com> - 4.23-1
417a11
- new upstream version; update patches; drop unused patches
417a11
417a11
* Thu Jan 24 2008 Tomas Smetana <tsmetana@redhat.com> - 4.21-5
417a11
- build a separate python-magic package; thanks to Terje Rosten
417a11
417a11
* Thu Dec 06 2007 Tomas Smetana <tsmetana@redhat.com> - 4.21-4
417a11
- add PE32/PE32+ magic
417a11
417a11
* Wed Aug 15 2007 Martin Bacovsky <mbacovsk@redhat.com> - 4.21-3
417a11
- resolves: #172015: no longer reports filename of crashed app when run on core files.
417a11
- resolves: #249578: Weird output from "file -i"
417a11
- resolves: #234817: file reports wrong filetype for microsoft word file
417a11
417a11
* Wed Jul  4 2007 Martin Bacovsky <mbacovsk@redhat.com> - 4.21-2
417a11
- resolves: #246700: RPM description isn't related to product
417a11
- resolves: #238789: file-devel depends on %%{version}
417a11
  but not on %%{version}-%%{release}
417a11
- resolves: #235267: for core files, file doesn't display the executable name
417a11
417a11
* Tue May 29 2007 Martin Bacovsky <mbacovsk@redhat.com> - 4.21-1
417a11
- upgrade to new upstream 4.21
417a11
- resolves: #241034: CVE-2007-2799 file integer overflow
417a11
417a11
* Wed Mar  7 2007 Martin Bacovsky <mbacovsk@redhat.com> - 4.20-1
417a11
- upgrade to new upstream 4.20
417a11
417a11
* Tue Feb 20 2007 Martin Bacovsky <mbacovsk@redhat.com> - 4.19-4
417a11
- rpath in file removal
417a11
417a11
* Mon Feb 19 2007 Martin Bacovsky <mbacovsk@redhat.com> - 4.19-3
417a11
- Resolves: #225750 - Merge Review: file
417a11
417a11
* Thu Jan 25 2007 Martin Bacovsky <mbacovsk@redhat.com> - 4.19-2
417a11
- Resolves: #223297 - file does not recognize OpenOffice "native" formats
417a11
- Resolves: #224344 - Magic rules should be in file-libs
417a11
417a11
* Tue Jan  9 2007 Martin Bacovsky <mbacovsk@redhat.com> - 4.19-1
417a11
- Resolves: #208880 - Pointless file(1) error message while detecting ELF 64-bit file
417a11
    thanks to <jakub@redhat.com> for patch
417a11
- Resolves: #214992 - file-devel should own %%_includedir/* %%_libdir/lib*.so
417a11
- Resolves: #203548 - a -devel package should be split out for libmagic
417a11
- upgrade to new upstream 4.19
417a11
- patch revision and cleaning
417a11
- split package to file, file-devel and file-libs
417a11
417a11
* Wed Aug 23 2006 Martin Bacovsky <mbacovsky@redhat.com> - 4.17-8
417a11
- fix recognition of perl script with embed awk (#203610) 
417a11
417a11
* Fri Aug 18 2006 Martin Bacovsky <mbacovsk@redhat.com> - 4.17-7
417a11
- fix recognition of bash script with embed awk (#202185)
417a11
417a11
* Thu Aug 03 2006 Martin Bacovsky <mbacovsk@redhat.com> - 4.17-6
417a11
- fix gziped empty file (#72986)
417a11
417a11
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.17-5.1
417a11
- rebuild
417a11
417a11
* Mon Jul 10 2006 Radek Vokal <rvokal@redhat.com> 4.17-5
417a11
- fix powerpoint mine (#190373) <vonsch@gmail.com>
417a11
417a11
* Wed May 24 2006 Radek Vokal <rvokal@redhat.com> 4.17-4
417a11
- /usr/share/file is owned by package (#192858)
417a11
- fix magic for Clamav files (#192406)
417a11
417a11
* Fri Apr 21 2006 Radek Vokal <rvokal@redhat.com> 4.17-3
417a11
- add support for OCFS or ASM (#189017)
417a11
417a11
* Tue Mar 14 2006 Radek Vokal <rvokal@redhat.com> 4.17-2
417a11
- fix segfault when compiling magic
417a11
- add check for wctype.h
417a11
- fix for flac and mp3 files
417a11
417a11
* Mon Mar 13 2006 Radek Vokal <rvokal@redhat.com> 4.17-1
417a11
- upgrade to file-4.17, patch clean-up
417a11
417a11
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.16-6.2
417a11
- bump again for double-long bug on ppc(64)
417a11
417a11
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.16-6.1
417a11
- rebuilt for new gcc4.1 snapshot and glibc changes
417a11
417a11
* Sun Feb 04 2006 Radek Vokal <rvokal@redhat.com> 4.16-6
417a11
- xen patch, recognizes Xen saved domain
417a11
417a11
* Fri Jan 13 2006 Radek Vokal <rvokal@redhat.com> 4.16-5
417a11
- fix for 64bit arrays
417a11
417a11
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
417a11
- rebuilt
417a11
417a11
* Tue Nov 29 2005 Radek Vokal <rvokal@redhat.com> - 4.16-4
417a11
- printf utf8 filenames and don't use isprint() (#174348)
417a11
417a11
* Tue Nov 08 2005 Radek Vokal <rvokal@redhat.com> - 4.16-3
417a11
- remove .la files (#172633)
417a11
417a11
* Mon Oct 31 2005 Radek Vokal <rvokal@redhat.com> - 4.16-2
417a11
- fix core files output, show "from" (#172015)
417a11
417a11
* Tue Oct 18 2005 Radek Vokal <rvokal@redhat.com> - 4.16-1
417a11
- upgrade to upstream
417a11
417a11
* Mon Oct 03 2005 Radek Vokal <rvokal@redhat.com> - 4.15-4
417a11
- file output for Berkeley DB gains Cracklib (#168917)
417a11
417a11
* Mon Sep 19 2005 Radek Vokal <rvokal@redhat.com> - 4.15-3
417a11
- small fix in previously added patch, now it works for multiple params
417a11
417a11
* Mon Sep 19 2005 Radek Vokal <rvokal@redhat.com> - 4.15-2
417a11
- print xxx-style only once (#168617)
417a11
417a11
* Thu Aug 09 2005 Radek Vokal <rvokal@redhat.com> - 4.15-1
417a11
- upgrade to upstream 
417a11
417a11
* Tue Aug 09 2005 Radek Vokal <rvokal@redhat.com> - 4.14-4
417a11
- mime for mpeg and aac files fixed (#165323)
417a11
417a11
* Fri Aug 05 2005 Radek Vokal <rvokal@redhat.com> - 4.14-3
417a11
- mime for 3ds files removed, conflicts with text files (#165165)
417a11
417a11
* Fri Jul 22 2005 Radek Vokal <rvokal@redhat.com> - 4.14-2
417a11
- fixed mime types recognition (#163866) <mandriva.org>
417a11
417a11
* Thu Jul 14 2005 Radek Vokal <rvokal@redhat.com> - 4.14-1
417a11
- sync with upstream, patch clean-up
417a11
417a11
* Mon Jul 04 2005 Radek Vokal <rvokal@redhat.com> - 4.13-5
417a11
- fixed reiserfs check (#162378)
417a11
417a11
* Mon Apr 11 2005 Radek Vokal <rvokal@redhat.com> - 4.13-4
417a11
- check Cyrus files before Apple Quicktime movies (#154342) 
417a11
417a11
* Mon Mar 07 2005 Radek Vokal <rvokal@redhat.com> - 4.13-3
417a11
- check for shared libs before fs dump files (#149868)
417a11
417a11
* Fri Mar 04 2005 Radek Vokal <rvokal@redhat.com> - 4.13-2
417a11
- gcc4 rebuilt
417a11
417a11
* Tue Feb 15 2005 Radek Vokal <rvokal@redhat.com> - 4.13-1
417a11
- new version, fixing few bugs, patch clean-up
417a11
- consistent output for bzip files (#147440)
417a11
417a11
* Mon Jan 24 2005 Radek Vokal <rvokal@redhat.com> - 4.12-3
417a11
- core64 patch fixing output on core files (#145354) <kzak@redhat.com>
417a11
- minor change in magic patch
417a11
417a11
* Mon Jan 03 2005 Radek Vokal <rvokal@redhat.com> - 4.12-2
417a11
- fixed crashes in threaded environment (#143871) <arjanv@redhat.com>
417a11
417a11
* Thu Dec 02 2004 Radek Vokal <rvokal@redhat.com> - 4.12-1
417a11
- upgrade to file-4.12
417a11
- removed Tim's patch, tuned magic patch
417a11
417a11
* Sat Nov 20 2004 Miloslav Trmac <mitr@redhat.com> - 4.10-4
417a11
- Convert libmagic.3 to UTF-8
417a11
417a11
* Thu Nov 18 2004 Radek Vokal <rvokal@redhat.com> 4.10-3
417a11
- set of patches from debian.org
417a11
- new magic types (#128763)
417a11
- zlib added to BuildReq (#125294)
417a11
417a11
* Tue Oct 12 2004 Tim Waugh <twaugh@redhat.com> 4.10-2
417a11
- Fixed occasional segfault (bug #131892).
417a11
417a11
* Wed Aug 11 2004 Radek Vokal <rvokal@redhat.com>
417a11
- zlib patch deleted, note patch deleted, rh patch updated, debian patch updated
417a11
- upgrade to file-4.10
417a11
417a11
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
417a11
- rebuilt
417a11
417a11
* Mon May 10 2004 Jakub Jelinek <jakub@redhat.com>
417a11
- fix ELF note handling (#109495)
417a11
417a11
* Tue Mar 23 2004 Karsten Hopp <karsten@redhat.de> 4.07-3 
417a11
- add docs (#115966)
417a11
417a11
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
417a11
- rebuilt
417a11
417a11
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
417a11
- rebuilt
417a11
417a11
* Sun Jan 18 2004 Jeff Johnson <jbj@jbj.org> 4.07-1
417a11
- upgrade to 4.07.
417a11
- deal gracefully with unreadable files (#113207).
417a11
- detect PO files (from Debian).
417a11
417a11
* Tue Dec 16 2003 Jeff Johnson <jbj@jbj.org> 4.06-1
417a11
- upgrade to file-4.06.
417a11
417a11
* Mon Nov 10 2003 Tim Waugh <twaugh@redhat.com> 4.02-4
417a11
- Minimal fix for busy loop problem (bug #109495).
417a11
417a11
* Mon Oct 13 2003 Jeff Johnson <jbj@jbj.org> 4.05-1
417a11
- upgrade to 4.05.
417a11
417a11
* Thu Oct  9 2003 Jeff Johnson <jbj@jbj.org> 4.02-3
417a11
- use zlib rather than exec'ing gzip.
417a11
417a11
-* Thu Aug 28 2003 Dan Walsh <dwalsh@redhat.com>
417a11
-- Add Selinux support.
417a11
417a11
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
417a11
- rebuilt
417a11
417a11
* Sat May 24 2003 Florian La Roche <Florian.LaRoche@redhat.de>
417a11
- add ldconfig to post/postun
417a11
417a11
* Mon Apr 21 2003 Jeff Johnson <jbj@redhat.com> 4.02-1
417a11
- upgrade to file-4.02.
417a11
417a11
* Thu Feb 27 2003 Jeff Johnson <jbj@redhat.com> 3.39-9
417a11
- check size read from elf header (#85297).
417a11
417a11
* Tue Feb 18 2003 Matt Wilson <msw@redhat.com> 3.39-8
417a11
- add FHS compatibility symlink from /usr/share/misc/magic -> ../magic
417a11
  (#84509)
417a11
417a11
* Fri Feb 14 2003 Jeff Johnson <jbj@redhat.com> 3.39-7
417a11
- the "real" fix to the vorbis/ogg magic details (#82810).
417a11
417a11
* Mon Jan 27 2003 Jeff Johnson <jbj@redhat.com> 3.39-6
417a11
- avoid vorbis/ogg magic details (#82810).
417a11
417a11
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 3.39-5
417a11
- rebuilt
417a11
417a11
* Sun Jan 12 2003 Nalin Dahyabhai <nalin@redhat.com> 3.39-4
417a11
- PT_NOTE, take 3
417a11
417a11
* Fri Jan 10 2003 Nalin Dahyabhai <nalin@redhat.com> 3.39-3
417a11
- don't barf in ELF headers with align = 0
417a11
417a11
* Tue Jan  7 2003 Nalin Dahyabhai <nalin@redhat.com> 3.39-2
417a11
- don't get lost when looking at PT_NOTE sections
417a11
417a11
* Sat Oct 26 2002 Jeff Johnson <jbj@redhat.com> 3.39-1
417a11
- update to 3.39.
417a11
417a11
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
417a11
- automated rebuild
417a11
417a11
* Thu May 23 2002 Tim Powers <timp@redhat.com>
417a11
- automated rebuild
417a11
417a11
* Mon May  6 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.37-6
417a11
- Don't use an old magic.mime 
417a11
- Add mng detection (#64229)
417a11
417a11
* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.37-5
417a11
- Rebuild
417a11
417a11
* Mon Jan 14 2002 Trond Eivind Glomsrød <teg@redhat.com> 3.37-4
417a11
- Fix missing include of <stdint.h> (#58209)
417a11
417a11
* Tue Dec 11 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.37-2
417a11
- Add CFLAGS to handle large files (#53576)
417a11
417a11
* Mon Dec 10 2001 Trond Eivind Glomsrød <teg@redhat.com> 3.37-1
417a11
- 3.37
417a11
- s/Copyright/License/
417a11
- build with --enable-fsect-man5, drop patch
417a11
- disable two old patches
417a11
417a11
* Fri Jul 06 2001 Florian La Roche <Florian.LaRoche@redhat.de>
417a11
- revert a patch to Magdir/elf, which breaks many libtool scripts
417a11
  in several rpm packages
417a11
417a11
* Mon Jun 25 2001 Crutcher Dunnavant <crutcher@redhat.com>
417a11
- iterate to 3.35
417a11
417a11
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
417a11
- Bump release + rebuild.
417a11
417a11
* Sun Nov 26 2000 Jeff Johnson <jbj@redhat.com>
417a11
- update to 3.33.
417a11
417a11
* Mon Aug 14 2000 Preston Brown <pbrown@redhat.com>
417a11
- Bill made the patch but didn't apply it. :)
417a11
417a11
* Mon Aug 14 2000 Bill Nottingham <notting@redhat.com>
417a11
- 'ASCII text', not 'ASCII test' (#16168)
417a11
417a11
* Mon Jul 31 2000 Jeff Johnson <jbj@redhat.com>
417a11
- fix off-by-1 error when creating filename for use with -i.
417a11
- include a copy of GNOME /etc/mime-types in %%{_datadir}/magic.mime (#14741).
417a11
417a11
* Sat Jul 22 2000 Jeff Johnson <jbj@redhat.com>
417a11
- install magic as man5/magic.5 with other formats (#11172).
417a11
417a11
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
417a11
- automatic rebuild
417a11
417a11
* Wed Jun 14 2000 Jeff Johnson <jbj@redhat.com>
417a11
- FHS packaging.
417a11
417a11
* Tue Apr 14 2000 Bernhard Rosenkraenzer <bero@redhat.com>
417a11
- 3.30
417a11
417a11
* Wed Feb 16 2000 Cristian Gafton <gafton@redhat.com>
417a11
- add ia64 patch from rth
417a11
417a11
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
417a11
- handle compressed manpages
417a11
- update to 3.28
417a11
417a11
* Mon Aug 23 1999 Jeff Johnson <jbj@redhat.com>
417a11
- identify ELF stripped files correctly (#4665).
417a11
- use SPARC (not sparc) consistently throughout (#4665).
417a11
- add entries for MS Office files (#4665).
417a11
417a11
* Thu Aug 12 1999 Jeff Johnson <jbj@redhat.com>
417a11
- diddle magic so that *.tfm files are identified correctly.
417a11
417a11
* Tue Jul  6 1999 Jeff Johnson <jbj@redhat.com>
417a11
- update to 3.27.
417a11
417a11
* Mon Mar 22 1999 Preston Brown <pbrown@redhat.com>
417a11
- experimental support for realmedia files added
417a11
417a11
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
417a11
- auto rebuild in the new build environment (release 5)
417a11
417a11
* Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com>
417a11
- strip binary.
417a11
417a11
* Fri Nov 27 1998 Jakub Jelinek <jj@ultra.linux.cz>
417a11
- add SPARC V9 magic.
417a11
417a11
* Tue Nov 10 1998 Jeff Johnson <jbj@redhat.com>
417a11
- update to 3.26.
417a11
417a11
* Mon Aug 24 1998 Jeff Johnson <jbj@redhat.com>
417a11
- update to 3.25.
417a11
- detect gimp XCF versions.
417a11
417a11
* Thu May 07 1998 Prospector System <bugs@redhat.com>
417a11
- translations modified for de, fr, tr
417a11
417a11
* Wed Apr 08 1998 Erik Troan <ewt@redhat.com>
417a11
- updated to 3.24
417a11
- buildrooted
417a11
417a11
* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
417a11
- built against glibc
417a11
417a11
* Mon Mar 31 1997 Erik Troan <ewt@redhat.com>
417a11
- Fixed problems caused by 64 bit time_t.
417a11
417a11
* Thu Mar 06 1997 Michael K. Johnson <johnsonm@redhat.com>
417a11
- Improved recognition of Linux kernel images.