Summary(zh_TW.UTF-8): 用於決定檔案類型的一個工具程式。
Name: file
Version: 5.22
-Release: 1
+Release: 2
License: distributable
Group: Applications/File
Source0: ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
Patch1: searchpath.patch
Patch2: automake.patch
Patch3: %{name}-perl.patch
+Patch4: name-use-count.patch
URL: http://www.darwinsys.com/file/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%if "%{cc_version}" < "3.4"
%{__sed} -i -e 's,-Wextra,,' configure.ac
--- /dev/null
+--- file-5.22/src/file.h~ 2015-01-01 18:07:34.000000000 +0100
++++ file-5.22/src/file.h 2015-02-19 20:58:10.783901201 +0100
+@@ -412,7 +412,7 @@
+ uint16_t elf_phnum_max;
+ uint16_t elf_notes_max;
+ #define FILE_INDIR_MAX 15
+-#define FILE_NAME_MAX 30
++#define FILE_NAME_MAX 256
+ #define FILE_ELF_SHNUM_MAX 32768
+ #define FILE_ELF_PHNUM_MAX 128
+ #define FILE_ELF_NOTES_MAX 256