]> git.pld-linux.org Git - packages/file.git/blob - file.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[packages/file.git] / file.spec
1 Summary:        file(1) command
2 Summary(de):    Befehl file(1)
3 Summary(es):    Comando file
4 Summary(fr):    Commande file(1)
5 Summary(ja):    ¥Õ¥¡¥¤¥ë¤Î¼ïÎà¤òȽÊ̤¹¤ë¥æ¡¼¥Æ¥£¥ê¥Æ¥£¡¼
6 Summary(pl):    Polecenie file(1)
7 Summary(pt_BR): Um utilitário para determinar tipos de arquivos
8 Summary(ru):    õÔÉÌÉÔÁ ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÔÉÐÏ× ÆÁÊÌÏ×
9 Summary(tr):    Dosya tipini belirleme aracý
10 Summary(uk):    õÔÉ̦ÔÁ ÄÌÑ ×ÉÚÎÁÞÅÎÎÑ ÔÉЦנÆÁÊ̦×
11 Name:           file
12 Version:        3.39
13 Release:        1
14 License:        distributable
15 Group:          Applications/File
16 Source0:        ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
17 Source1:        zisofs.magic
18 Source2:        magic.mime
19 Source3:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
20 Source4:        %{name}-magic.mscompress
21 Patch0:         %{name}-sparc.patch
22 Patch1:         %{name}-ia64.patch
23 Patch2:         %{name}-man.patch
24 Patch3:         %{name}-palm.patch
25 Patch4:         %{name}-mime-elf.patch
26 Patch5:         %{name}-unicode.patch
27 BuildRequires:  autoconf
28 BuildRequires:  automake
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Conflicts:      xdelta < 1.0.0
31
32 %define         _datadir        %{_prefix}/share/misc
33
34 %description
35 This package is useful for finding out what type of file you are
36 looking at on your system. For example, if an fsck results in a file
37 being stored in lost+found, you can run file on it to find out if it's
38 safe to 'more' it or if it's a binary. It recognizes many file types,
39 including ELF binaries, system libraries, RPM packages, and many
40 different graphics formats.
41
42 %description -l de
43 Sie können dieses Paket verwenden, um zu bestimmen, welches Format
44 eine bestimmte Datei hat. Wird durch fsck eine Datei in lost+found
45 gespeichert, können Sie 'file' ausführen, um herauszufinden, ob Sie
46 sie mit 'more' einsehen können, oder ob es sich um ein Binärprogramm
47 handelt Das Programm erkennt u.a. ELF-Binärprogramme,
48 System-Libraries, RPM-Pakete und viele Grafikformate.
49
50 %description -l es
51 Este paquete es útil para descubrir que tipo de archivo estás buscando
52 en tu sistema. Por ejemplo, si fsck resulta un archivo que fue
53 almacenado en el "lost+found", tu puedes ejecutar file en él para
54 descubrir si es seguro leerlo con el "more" o si es un binario.
55 Reconoce varios tipos de archivos, incluyendo binarios ELF,
56 bibliotecas de sistema, paquetes RPM y varios formatos gráficos
57 diferentes.
58
59 %description -l fr
60 Ce paquetage sert à trouver le type du fichier que vous recherchez sur
61 votre système. Par exemple, si un fsck fait qu'un fichier a été stocké
62 dans lost+found, vous pouvez lancer file dessus pour savoir si on peut
63 faire un more, ou s'il s'agit d'un binaire. Il reconnaît de nombreux
64 types de fichiers dont les binaires ELF, les bibliothèques systèmes,
65 les paquetages RPM et de nombreux formats graphiques différents.
66
67 %description -l ja
68 ¥Õ¥¡¥¤¥ë¥³¥Þ¥ó¥É¤Ï¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤ë¥Ç¡¼¥¿¤Î¼ïÎà¤Ë¤è¤ê¸Ä¡¹¤Î¥Õ¥¡¥¤¥ë¤ò
69 ¸«Ê¬¤±¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£file ¤Ï ELF ¥Ð¥¤¥Ê¥ê¡¢¥·¥¹¥Æ¥à¥é¥¤¥Ö¥é¥ê¡¢
70 RPM ¥Ñ¥Ã¥±¡¼¥¸¡¢¤½¤·¤Æ¼ï¡¹¤Î¥°¥é¥Õ¥£¥Ã¥¯¥Õ¥©¡¼¥Þ¥Ã¥È¤ò´Þ¤à¡¢Â¿¤¯¤Î°Û¤Ê¤ë
71 ¥Õ¥¡¥¤¥ë¤Î¼ïÎà¤ò¸«Ê¬¤±¤ë¤³¤È¤¬²Äǽ¤Ç¤¢¤ë¡£
72
73 %description -l pl
74 Pakiet ten jest przydatny je¿eli chcesz rozpoznaæ typ plików w twoim
75 systemie. Na przyk³ad je¿eli fsck zdeponuje jakie¶ pliki w katalogu
76 lost+found, mo¿esz uruchomiæ file na zdeponowanym pliku i zobaczyæ
77 jaki to jest typ pliku, jest to metoda bezpieczniejsza ni¿ 'more', ze
78 wzglêdu na to, ¿e to mo¿e byæ plik binarny. File potrafi rozpoznaæ
79 wiele typów plików np. binarny ELF, biblioteki systemowe, pakiety RPM
80 oraz wiele ró¿nych formatów graficznych i d¼wiêkowych.
81
82 %description -l pt_BR
83 Este pacote é útil para descobrir que tipo de arquivo você está
84 procurando em seu sistema. Por exemplo, se um fsck resulta em um
85 arquivo forem armazenado no "lost+found", você pode rodar file nele
86 para descobrir se é seguro lê-lo com o "more" ou se ele é um binário.
87 Ele reconhece vários tipos de arquivos, incluindo binários ELF,
88 bibliotecas de sistema, pacotes RPM e vários formatos gráficos
89 diferentes.
90
91 %description -l ru
92 ëÏÍÁÎÄÁ file ÉÓÐÏÌØÚÕÅÔÓÑ ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÔÉÐÁ ÆÁÊÌÁ ÐÏ ÄÁÎÎÙÍ, × ÎÅÍ
93 ÓÏÄÅÒÖÁÝÉÍÓÑ. ïÎÁ ÍÏÖÅÔ ÏÐÒÅÄÅÌÉÔØ ÍÎÏÖÅÓÔ×Ï ÒÁÚÎÏÏÂÒÁÚÎÙÈ ÔÉÐÏ×
94 ÆÁÊÌÏ×, ×ËÌÀÞÁÑ ÂÉÎÁÒÎÙÅ ÆÁÊÌÙ ÆÏÒÍÁÔÁ ELF, ÓÉÓÔÅÍÎÙÅ ÂÉÂÌÉÏÔÅËÉ,
95 ÐÁËÅÔÙ RPM, ÒÁÚÌÉÞÎÙÅ ÇÒÁÆÉÞÅÓËÉÅ ÆÏÒÍÁÔÙ É ÍÎÏÇÏ ÄÒÕÇÉÈ.
96
97 %description -l tr
98 file, bir dosyayý inceleyerek ne tür bir dosya olduðu konusunda size
99 bir fikir verebilir. Böylece uzantýsýndan ve adýndan ne olduðunu
100 çýkaramadýðýnýz bir dosyayý hangi yazýlým ile kullanabileceðinize ya
101 da ne yapacaðýnýza karar verebilisiniz. file, temel dosya tiplerini,
102 çoðu grafik formatýný, çalýþtýrýlabilir dosyalarý, sistem
103 kitaplýklarýný vs. tanýyabilir.
104
105 %description -l uk
106 ëÏÍÁÎÄÁ file ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ÄÌÑ ×ÉÚÎÁÞÅÎÎÑ ÔÉÐÕ ÆÁÊÌÕ ÐÏ ÄÁÎÉÈ, Ñ˦
107 צΠͦÓÔÉÔØ. ÷ÏÎÁ ÍÏÖÅ ×ÉÚÎÁÞÉÔÉ ×ÅÌÉËՠ˦ÌØ˦ÓÔØ Ò¦ÚÎÏÍÁΦÔÎÉÈ ÔÉЦ×
108 ÆÁÊ̦×, Õ ÔÏÍÕ ÞÉÓ̦ Â¦ÎÁÒΦ ÆÁÊÌÉ ÆÏÒÍÁÔÕ ELF, ÓÉÓÔÅÍΦ Â¦Â̦ÏÔÅËÉ,
109 ÐÁËÅÔÉ RPM, Ò¦ÚÎÏÍÁΦÔΦ ÇÒÁƦÞΦ ÆÏÒÍÁÔÉ ÔÁ ÂÁÇÁÔÏ ¦ÎÛÉÈ.
110
111 %prep
112 %setup  -q
113 %patch0 -p1
114 %patch1 -p1
115 %patch2 -p0
116 %patch3 -p1
117 %patch4 -p1
118 %patch5 -p1
119
120 %build
121 rm -f install-sh missing mkinstalldirs
122 %{__aclocal}
123 %{__autoheader}
124 %{__autoconf}
125 %{__automake}
126 %configure \
127         --enable-fsect-man5
128
129 %{__make}
130
131 %install
132 rm -rf $RPM_BUILD_ROOT
133
134 %{__make} install DESTDIR=$RPM_BUILD_ROOT
135
136 cat %{SOURCE1} %{SOURCE4} >>$RPM_BUILD_ROOT%{_datadir}/magic
137 # install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}
138
139 bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
140
141 ./file -m $RPM_BUILD_ROOT%{_datadir}/magic -c -C
142
143 %clean
144 rm -rf $RPM_BUILD_ROOT
145
146 %files
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_bindir}/*
149 %{_datadir}/*
150 %{_mandir}/man[15]/*
151 %lang(de) %{_mandir}/de/man[15]/*
152 %lang(es) %{_mandir}/es/man[15]/*
153 %lang(fr) %{_mandir}/fr/man[15]/*
154 %lang(hu) %{_mandir}/hu/man[15]/*
155 %lang(it) %{_mandir}/it/man[15]/*
156 %lang(ja) %{_mandir}/ja/man[15]/*
157 %lang(nl) %{_mandir}/nl/man[15]/*
158 %lang(pl) %{_mandir}/pl/man[15]/*
This page took 0.041792 seconds and 4 git commands to generate.