[521] | 1 | %define __libtoolize : |
---|
| 2 | Summary: A utility for determining file types. |
---|
| 3 | Summary(ja): ファイルの種類を判別するユーティリティー |
---|
| 4 | Name: file |
---|
| 5 | Version: 4.21 |
---|
[1926] | 6 | Release: 3%{?_dist_release} |
---|
[521] | 7 | License: Distributable |
---|
| 8 | Group: Applications/System |
---|
| 9 | URL: http://www.darwinsys.com/file/ |
---|
| 10 | |
---|
| 11 | Source: ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz |
---|
| 12 | Source1: magic.mime |
---|
| 13 | # Source for Vine |
---|
| 14 | Source6: printer-j.magic2 |
---|
| 15 | |
---|
| 16 | Patch1: file-4.19-debian.patch |
---|
| 17 | Patch3: file-4.21-magic.patch |
---|
| 18 | Patch5: file-4.13-fsdump.patch |
---|
| 19 | Patch6: file-4.13-quick.patch |
---|
| 20 | Patch8: file-4.15-berkeley.patch |
---|
| 21 | Patch12: file-4.16-xen.patch |
---|
| 22 | Patch16: file-4.21-oracle.patch |
---|
| 23 | Patch17: file-4.17-clamav.patch |
---|
| 24 | Patch20: file-4.17-bash.patch |
---|
| 25 | Patch21: file-4.19-ELF.patch |
---|
| 26 | Patch22: file-4.19-ooffice.patch |
---|
| 27 | patch23: file-4.21-core_from.patch |
---|
| 28 | patch24: file-4.21-msoffice.patch |
---|
| 29 | |
---|
| 30 | # Vine patch |
---|
| 31 | Patch100: file-4.21-jtext.patch |
---|
| 32 | Patch110: file-4.21-vinemagic.patch |
---|
| 33 | Patch120: file-4.09-vinenames.patch |
---|
| 34 | |
---|
| 35 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 36 | BuildRequires: automake, autoconf, zlib-devel |
---|
| 37 | |
---|
| 38 | Vendor: Project Vine |
---|
| 39 | Distribution: Vine Linux |
---|
| 40 | |
---|
| 41 | %description |
---|
| 42 | The file command is used to identify a particular file according to the |
---|
| 43 | type of data contained by the file. File can identify many different |
---|
| 44 | file types, including ELF binaries, system libraries, RPM packages, and |
---|
| 45 | different graphics formats. |
---|
| 46 | |
---|
| 47 | You should install the file package, since the file command is such a |
---|
| 48 | useful utility. |
---|
| 49 | |
---|
| 50 | %description -l ja |
---|
| 51 | ファイルコマンドは、ファイルに含まれるデータの種類によって各ファイルが |
---|
| 52 | どのようなファイルかを判定するために使います。file は ELF バイナリ、シ |
---|
| 53 | ステムライブラリ、RPM パッケージ、そして様々なグラフィックフォーマット |
---|
| 54 | を含む、多くの異なるファイルの種類を見分けることができます。 |
---|
| 55 | |
---|
| 56 | file コマンドは大変役に立つユーティリティーなので、必ずインストールして |
---|
| 57 | ください。 |
---|
| 58 | |
---|
| 59 | %prep |
---|
| 60 | %setup -q |
---|
| 61 | |
---|
| 62 | %patch1 -p1 -b .debian |
---|
| 63 | %patch3 -p1 -b .magic |
---|
| 64 | %patch5 -p1 -b .fsdump |
---|
| 65 | %patch6 -p1 -b .quick |
---|
| 66 | %patch8 -p1 -b .berkeley |
---|
| 67 | %patch12 -p1 -b .xen |
---|
| 68 | %patch16 -p1 -b .oracle |
---|
| 69 | %patch17 -p1 -b .clamav |
---|
| 70 | %patch20 -p1 -b .bash |
---|
| 71 | %patch21 -p1 -b .ELF |
---|
| 72 | %patch22 -p1 -b .ooffice |
---|
| 73 | %patch23 -p1 -b .core_from |
---|
| 74 | %patch24 -p1 -b .msoffice |
---|
| 75 | |
---|
| 76 | %patch100 -p1 -b .vinejtext |
---|
| 77 | %patch110 -p1 -b .vinemagic |
---|
| 78 | %patch120 -p1 -b .vinenames |
---|
| 79 | |
---|
| 80 | cp -p %{SOURCE6} ./magic/Magdir/printer-j |
---|
| 81 | |
---|
| 82 | %build |
---|
| 83 | autoreconf |
---|
| 84 | CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \ |
---|
| 85 | %configure --enable-fsect-man5 |
---|
[1926] | 86 | make LIBTOOL=/usr/bin/libtool |
---|
[521] | 87 | |
---|
| 88 | %install |
---|
| 89 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 90 | mkdir -p ${RPM_BUILD_ROOT}%{_bindir} |
---|
| 91 | mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1 |
---|
| 92 | mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man5 |
---|
| 93 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/misc |
---|
| 94 | |
---|
[1926] | 95 | make install DESTDIR=$RPM_BUILD_ROOT LIBTOOL=/usr/bin/libtool |
---|
[521] | 96 | ln -s file/magic ${RPM_BUILD_ROOT}%{_datadir}/magic |
---|
| 97 | ln -s file/magic.mime ${RPM_BUILD_ROOT}%{_datadir}/magic.mime |
---|
| 98 | |
---|
| 99 | ln -s ../magic ${RPM_BUILD_ROOT}%{_datadir}/misc/magic |
---|
| 100 | |
---|
| 101 | { cd ${RPM_BUILD_ROOT} |
---|
| 102 | strip .%{_bindir}/file |
---|
| 103 | cp %SOURCE1 .%{_datadir}/magic.mime |
---|
| 104 | } |
---|
| 105 | ## remove unuse files |
---|
| 106 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | %clean |
---|
| 110 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 111 | |
---|
| 112 | %files |
---|
| 113 | %defattr(-,root,root) |
---|
| 114 | %doc LEGAL.NOTICE README |
---|
| 115 | %{_bindir}/* |
---|
| 116 | %{_libdir}/libmagic.so.* |
---|
| 117 | %{_datadir}/file/* |
---|
| 118 | %{_datadir}/magic* |
---|
| 119 | %{_datadir}/misc/* |
---|
| 120 | %{_mandir}/man[15]/* |
---|
| 121 | |
---|
| 122 | %{_includedir}/magic.h |
---|
| 123 | %{_libdir}/libmagic.a |
---|
| 124 | %{_libdir}/libmagic.so |
---|
| 125 | %{_mandir}/man3/* |
---|
| 126 | |
---|
| 127 | |
---|
| 128 | %changelog |
---|
[1926] | 129 | * Mon Sep 27 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.21-3 |
---|
| 130 | - rebuils with rpm-4.8.1 |
---|
| 131 | - add environment variable LIBTOOL for make command |
---|
| 132 | |
---|
[521] | 133 | * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 4.21-2 |
---|
| 134 | - spec in utf-8 |
---|
| 135 | - removed *.la |
---|
| 136 | |
---|
| 137 | * Mon May 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.21-1 |
---|
| 138 | - applied new versioning policy |
---|
| 139 | |
---|
| 140 | * Tue Dec 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.21-0vl1 |
---|
| 141 | - new upstream release |
---|
| 142 | - import debian/fedora patches |
---|
| 143 | - drop obsolete vine magic. |
---|
| 144 | |
---|
| 145 | * Thu Jun 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.09-0vl3 |
---|
| 146 | - rebuild for VineSeed with new tool chain |
---|
| 147 | |
---|
| 148 | * Thu May 31 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.09-0vl2.2 |
---|
| 149 | - add patch110 for fix CVE-2007-2799 |
---|
| 150 | - add zlib-devel to BuildPreReq tag |
---|
| 151 | |
---|
| 152 | * Mon Mar 26 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.09-0vl2.1 |
---|
| 153 | - add patch100 for fix CVE-2007-1536 |
---|
| 154 | |
---|
| 155 | * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.09-0vl2 |
---|
| 156 | - changed Group to Applications/System |
---|
| 157 | |
---|
| 158 | * Sun Apr 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 4.09-0vl1 |
---|
| 159 | - new upstream release |
---|
| 160 | - update vine patches |
---|
| 161 | |
---|
| 162 | * Wed Sep 10 2003 Tomoya TAKA <taka@vinelinux.org> 4.03-0vl2 |
---|
| 163 | - update Patch10, use 'size_t' in src/jcode.[ch] |
---|
| 164 | |
---|
| 165 | * Tue Sep 09 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.03-0vl1 |
---|
| 166 | - update to 4.03 |
---|
| 167 | - update Patch0, 1, 10 for 4.03 |
---|
| 168 | - s/Copyright/License/ |
---|
| 169 | |
---|
| 170 | * Mon May 12 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.02-1vl1 |
---|
| 171 | - update to 4.02 |
---|
| 172 | - update Vine patches for 4.02 |
---|
| 173 | |
---|
| 174 | * Sun Mar 9 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 3.41-0vl1 |
---|
| 175 | - new upstream release |
---|
| 176 | - fixed security bug (http://www.idefense.com/advisory/03.04.03.txt) |
---|
| 177 | - remove unneeded patches. |
---|
| 178 | - update Vine patches for 3.41 |
---|
| 179 | |
---|
| 180 | * Mon Apr 1 2002 Jun Nishii <jun@vinelinux.org> 3.37-0vl2 |
---|
| 181 | - added NPDL2 data [Vine:02348] |
---|
| 182 | |
---|
| 183 | * Fri Feb 08 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.37-0vl1 |
---|
| 184 | - update to 3.37 |
---|
| 185 | |
---|
| 186 | * Sun Jul 15 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
| 187 | - 3.35-0vl3 |
---|
| 188 | - disable some entries in elf for problems on big-endian archs |
---|
| 189 | |
---|
| 190 | * Wed Jun 6 2001 Jun Nishii <jun@vinelinux.org> |
---|
| 191 | - file-3.35-0vl1 |
---|
| 192 | - ver.up |
---|
| 193 | - added %doc |
---|
| 194 | |
---|
| 195 | * Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org> |
---|
| 196 | - file-3.33-1vl4 |
---|
| 197 | - more fix and clean up jtext patch (file-3.33-vinejtext.patch) |
---|
| 198 | |
---|
| 199 | * Thu Jan 11 2001 Jun Nishii <jun@vinelinux.org> |
---|
| 200 | - file-3.33-1vl3 |
---|
| 201 | - fix again jtext patch (file-3.33-vinejtext.patch) |
---|
| 202 | - added file-3.33-vinenames.patch to avoid miss-judgement |
---|
| 203 | |
---|
| 204 | * Wed Jan 10 2001 Jun Nishii <jun@vinelinux.org> |
---|
| 205 | - file-3.33-1vl2 |
---|
| 206 | - update jtext patch (file-3.33-vinejtext.patch) |
---|
| 207 | |
---|
| 208 | * Mon Jan 8 2001 Jun Nishii <jun@vinelinux.org> |
---|
| 209 | - file-3.33-1vl1 |
---|
| 210 | - modify description-ja and spec |
---|
| 211 | |
---|
| 212 | * Sun Jul 09 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 213 | - file-3.28-2vl2 |
---|
| 214 | - fixed %files section to handle compressed man pages |
---|
| 215 | |
---|
| 216 | * Tue Jun 13 2000 Lisa Sagami <czs14350@nifty.ne.jp> |
---|
| 217 | - marged RH 3.28-2 and Vine 3.27-3vl3 |
---|
| 218 | |
---|
| 219 | * Wed Feb 16 2000 Cristian Gafton <gafton@redhat.com> |
---|
| 220 | - add ia64 patch from rth |
---|
| 221 | |
---|
| 222 | * Mon Feb 7 2000 Bill Nottingham <notting@redhat.com> |
---|
| 223 | - handle compressed manpages |
---|
| 224 | - update to 3.28 |
---|
| 225 | |
---|
| 226 | * Mon Sep 6 1999 Norihito Ohmori <ohmori@flatout.org> |
---|
| 227 | - Japanese Text detection bug fix. (by Toru Hoshina <hoshina@best.com>) |
---|
| 228 | |
---|
| 229 | * Fri Aug 27 1999 Norihito Ohmori <ohmori@flatout.org> |
---|
| 230 | - patch dues not apply bug. |
---|
| 231 | |
---|
| 232 | * Wed Aug 26 1999 Norihito Ohmori <ohmori@flatout.org> |
---|
| 233 | - not need kcc (Thanks for Toru Hoshina <hoshina@best.com>) |
---|
| 234 | - ASCII data and Shift JIS data detected in Japanese Text Detection bug fix. |
---|
| 235 | |
---|
| 236 | * Mon Aug 23 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 237 | - identify ELF stripped files correctly (#4665). |
---|
| 238 | - use SPARC (not sparc) consistently throughout (#4665). |
---|
| 239 | - add entries for MS Office files (#4665). |
---|
| 240 | |
---|
| 241 | * Thu Aug 12 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 242 | - diddle magic so that *.tfm files are identified correctly. |
---|
| 243 | |
---|
| 244 | * Tue Jul 6 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 245 | - update to 3.27. |
---|
| 246 | |
---|
| 247 | * Mon Mar 22 1999 Preston Brown <pbrown@redhat.com> |
---|
| 248 | - experimental support for realmedia files added |
---|
| 249 | |
---|
| 250 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 251 | - auto rebuild in the new build environment (release 5) |
---|
| 252 | |
---|
| 253 | * Fri Mar 19 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 254 | - strip binary. |
---|
| 255 | |
---|
| 256 | * Fri Nov 27 1998 Jakub Jelinek <jj@ultra.linux.cz> |
---|
| 257 | - add SPARC V9 magic. |
---|
| 258 | |
---|
| 259 | * Tue Nov 10 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 260 | - update to 3.26. |
---|
| 261 | |
---|
| 262 | * Mon Aug 24 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 263 | - update to 3.25. |
---|
| 264 | - detect gimp XCF versions. |
---|
| 265 | |
---|
| 266 | * Thu May 07 1998 Prospector System <bugs@redhat.com> |
---|
| 267 | - translations modified for de, fr, tr |
---|
| 268 | |
---|
| 269 | * Wed Apr 08 1998 Erik Troan <ewt@redhat.com> |
---|
| 270 | - updated to 3.24 |
---|
| 271 | - buildrooted |
---|
| 272 | |
---|
| 273 | * Mon Jun 02 1997 Erik Troan <ewt@redhat.com> |
---|
| 274 | - built against glibc |
---|
| 275 | |
---|
| 276 | * Mon Mar 31 1997 Erik Troan <ewt@redhat.com> |
---|
| 277 | - Fixed problems caused by 64 bit time_t. |
---|
| 278 | |
---|
| 279 | * Thu Mar 06 1997 Michael K. Johnson <johnsonm@redhat.com> |
---|
| 280 | - Improved recognition of Linux kernel images. |
---|