]>
Commit | Line | Data |
---|---|---|
76e54b9c | 1 | # |
89a87771 | 2 | # Conditional build: |
779e000d ER |
3 | %bcond_without python2 # don't build python-magic module for Python 2.x |
4 | %bcond_without python3 # don't build python-magic module for Python 3.x | |
8dc89ef2 | 5 | %bcond_without static_libs # don't build static libraries |
79b0e2bc | 6 | %bcond_without tests # don't perform "make check" |
7abc2151 | 7 | |
c76db868 | 8 | Summary: A utility for determining file types |
17c387d7 ER |
9 | Summary(cs.UTF-8): Program pro zjišťování typu souborů |
10 | Summary(da.UTF-8): Et værktøj til bestemmelse af filtyper | |
11 | Summary(de.UTF-8): Ein Befehl zur Bestimmung von Dateitypen | |
12 | Summary(es.UTF-8): Utilidad para determinar el tipo de fichero | |
13 | Summary(fr.UTF-8): Utilitaire permettant d'identifier des types de fichier | |
14 | Summary(id.UTF-8): Utility untuk menentukan tipe file | |
15 | Summary(is.UTF-8): Tól til þess að komast að tegund skráar | |
16 | Summary(it.UTF-8): Utility per determinare il tipo di file | |
17 | Summary(ja.UTF-8): ファイルの種類を判断するためのユーティリティ | |
18 | Summary(ko.UTF-8): 파일 종류를 결정하는 유틸리티 | |
19 | Summary(nb.UTF-8): Et verktøy for å bestemme filtyper | |
20 | Summary(pl.UTF-8): Polecenie określające rodzaj pliku | |
21 | Summary(pt.UTF-8): Um utilitário para determinar o tipo dos ficheiros | |
22 | Summary(pt_BR.UTF-8): Um utilitário para determinar tipos de arquivos | |
23 | Summary(ru.UTF-8): Утилита для определения типов файлов | |
24 | Summary(sk.UTF-8): Pomocný program pre určenie typu súboru | |
25 | Summary(sl.UTF-8): Pripomoček za ugotavljanje vrste datotek | |
26 | Summary(sv.UTF-8): Ett verktyg för att bestämma filtyper | |
27 | Summary(tr.UTF-8): Dosya türünü öğrenmek için bir araç | |
28 | Summary(uk.UTF-8): Утиліта для визначення типів файлів | |
29 | Summary(zh_CN.UTF-8): 判定文件类型的工具。 | |
30 | Summary(zh_TW.UTF-8): 用於決定檔案類型的一個工具程式。 | |
c21622ad | 31 | Name: file |
547c006e | 32 | Version: 5.18 |
67ffc518 | 33 | Release: 2 |
521d0b82 | 34 | License: distributable |
a8857009 | 35 | Group: Applications/File |
7fb84ed4 | 36 | Source0: ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz |
547c006e | 37 | # Source0-md5: d420d8f2990cd344673acfbf8d76ff5a |
b8b920bf | 38 | Source1: http://ftp1.pld-linux.org/people/glen/%{name}-non-english-man-pages.tar.bz2 |
494623d0 | 39 | # Source1-md5: 6a45bcaefd19b94db36a1b2b7c5b806b |
0c98141b JB |
40 | Source2: %{name}-zisofs.magic |
41 | Source3: %{name}-mscompress.magic | |
411fb922 | 42 | Source4: %{name}-magic.mime-gen.awk |
1ddfea46 JB |
43 | Patch0: %{name}-sparc.patch |
44 | Patch1: %{name}-selinux.patch | |
45 | Patch2: searchpath.patch | |
46 | Patch3: automake.patch | |
b94947b2 | 47 | URL: http://www.darwinsys.com/file/ |
148db065 | 48 | BuildRequires: autoconf >= 2.50 |
f8bfd976 | 49 | BuildRequires: automake |
49d7bd2c | 50 | BuildRequires: libtool >= 2:2.0 |
7fb84ed4 | 51 | BuildRequires: rpmbuild(macros) >= 1.453 |
779e000d | 52 | %if %{with python2} |
7abc2151 ER |
53 | BuildRequires: python-devel |
54 | BuildRequires: python-modules | |
09b88bf5 | 55 | BuildRequires: rpm-pythonprov |
76e54b9c | 56 | %endif |
779e000d ER |
57 | %if %{with python3} |
58 | BuildRequires: python3-devel | |
59 | BuildRequires: python3-modules | |
60 | BuildRequires: rpm-pythonprov | |
61 | %endif | |
49d7bd2c | 62 | BuildRequires: zlib-devel |
67ffc518 | 63 | Requires(pretrans): coreutils |
a272f0a4 | 64 | Requires: libmagic = %{version}-%{release} |
d8acffac | 65 | Conflicts: rpm-build < 4.4.1-9 |
c21622ad | 66 | Conflicts: xdelta < 1.0.0 |
69564887 | 67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3db42c15 | 68 | |
69 | %description | |
4055376c | 70 | This package is useful for finding out what type of file you are |
71 | looking at on your system. For example, if an fsck results in a file | |
72 | being stored in lost+found, you can run file on it to find out if it's | |
73 | safe to 'more' it or if it's a binary. It recognizes many file types, | |
74 | including ELF binaries, system libraries, RPM packages, and many | |
75 | different graphics formats. | |
3db42c15 | 76 | |
87044beb JR |
77 | %description -l cs.UTF-8 |
78 | Příkaz file se používá pro identifikaci zadaného souboru podle jeho | |
79 | obsahu. Je schopen identifikovat množství různých typů souborů včetně | |
80 | binárních souborů ELF, systémových knihoven, RPM balíčků a různých | |
81 | grafických formátů. | |
c76db868 | 82 | |
87044beb JR |
83 | %description -l da.UTF-8 |
84 | Programmet "file" bruges til at identificere filer baseret på indhold. | |
c76db868 | 85 | "file" kan identificere mange forskellige filtyper, inkl. ELF-filer, |
86 | systembiblioteker, RPM-pakker og billedfiler i forskellige formater. | |
87 | ||
87044beb JR |
88 | %description -l de.UTF-8 |
89 | Sie können dieses Paket verwenden, um zu bestimmen, welches Format | |
4055376c | 90 | eine bestimmte Datei hat. Wird durch fsck eine Datei in lost+found |
87044beb JR |
91 | gespeichert, können Sie 'file' ausführen, um herauszufinden, ob Sie |
92 | sie mit 'more' einsehen können, oder ob es sich um ein Binärprogramm | |
93 | handelt Das Programm erkennt u.a. ELF-Binärprogramme, | |
4055376c | 94 | System-Libraries, RPM-Pakete und viele Grafikformate. |
3db42c15 | 95 | |
87044beb JR |
96 | %description -l es.UTF-8 |
97 | Este paquete es útil para descubrir que tipo de archivo estás buscando | |
9a139dfa | 98 | en tu sistema. Por ejemplo, si fsck resulta un archivo que fue |
87044beb | 99 | almacenado en el "lost+found", tu puedes ejecutar file en él para |
9a139dfa | 100 | descubrir si es seguro leerlo con el "more" o si es un binario. |
101 | Reconoce varios tipos de archivos, incluyendo binarios ELF, | |
87044beb | 102 | bibliotecas de sistema, paquetes RPM y varios formatos gráficos |
9a139dfa | 103 | diferentes. |
104 | ||
87044beb JR |
105 | %description -l fr.UTF-8 |
106 | Ce paquetage sert à trouver le type du fichier que vous recherchez sur | |
107 | votre système. Par exemple, si un fsck fait qu'un fichier a été stocké | |
4055376c | 108 | dans lost+found, vous pouvez lancer file dessus pour savoir si on peut |
87044beb JR |
109 | faire un more, ou s'il s'agit d'un binaire. Il reconnaît de nombreux |
110 | types de fichiers dont les binaires ELF, les bibliothèques systèmes, | |
111 | les paquetages RPM et de nombreux formats graphiques différents. | |
3db42c15 | 112 | |
87044beb JR |
113 | %description -l it.UTF-8 |
114 | Il comando file è utilizzato per identificare il tipo di file in base | |
115 | ai tipi di dati che contiene. File può identificare molti tipi di | |
c76db868 | 116 | file, tra cui i binari ELF, le librerie di sistema, i pacchetti RPM e |
117 | vari formati grafici. | |
118 | ||
87044beb JR |
119 | %description -l ja.UTF-8 |
120 | ファイルコマンドはファイルに含まれるデータの種類により個々のファイルを | |
121 | 見分けるために使われる。file は ELF バイナリ、システムライブラリ、 RPM | |
122 | パッケージ、そして種々のグラフィックフォーマットを含む、多くの異なる | |
123 | ファイルの種類を見分けることが可能である。 | |
f8911847 | 124 | |
87044beb JR |
125 | %description -l ko.UTF-8 |
126 | 파일에 저장된 자료 유형에 따라 파일을 식별하는 file 명령. File은 ELF | |
127 | 바이너리, 시스템 라이브러리, RPM 패키지와 다른 그래픽 유형을 포함한 | |
128 | 여러 많은 파일 유형을 식별 가능합니다. | |
c76db868 | 129 | |
87044beb JR |
130 | %description -l nb.UTF-8 |
131 | Programmet "file" brukes for å identifisere filer basert på innhold. | |
c76db868 | 132 | "file" kan identifisere mange ulike filtyper, inkl. ELF-filer, |
133 | systembibliotek, RPM-pakker og bildefiler i ulike formater. | |
134 | ||
87044beb JR |
135 | %description -l pl.UTF-8 |
136 | Pakiet ten jest przydatny jeżeli chcesz rozpoznać typ plików w twoim | |
137 | systemie. Na przykład jeżeli fsck zdeponuje jakieś pliki w katalogu | |
138 | lost+found, możesz uruchomić file na zdeponowanym pliku i zobaczyć | |
139 | jaki to jest typ pliku, jest to metoda bezpieczniejsza niż 'more', ze | |
140 | względu na to, że to może być plik binarny. File potrafi rozpoznać | |
141 | wiele typów plików np. binarny ELF, biblioteki systemowe, pakiety RPM | |
142 | oraz wiele różnych formatów graficznych i dźwiękowych. | |
143 | ||
144 | %description -l pt.UTF-8 | |
145 | O comando file é usado para identificar um ficheiro em particular de | |
146 | acordo com o tipo de dados que contém. O file pode identificar vários | |
147 | formatos de ficheiros, incluindo binários ELF, bibliotecas de sistema, | |
148 | pacotes RPM e vários formatos gráficos diferentes. | |
149 | ||
150 | %description -l pt_BR.UTF-8 | |
151 | Este pacote é útil para descobrir que tipo de arquivo você está | |
9a139dfa | 152 | procurando em seu sistema. Por exemplo, se um fsck resulta em um |
87044beb JR |
153 | arquivo forem armazenado no "lost+found", você pode rodar file nele |
154 | para descobrir se é seguro lê-lo com o "more" ou se ele é um binário. | |
155 | Ele reconhece vários tipos de arquivos, incluindo binários ELF, | |
156 | bibliotecas de sistema, pacotes RPM e vários formatos gráficos | |
9a139dfa | 157 | diferentes. |
158 | ||
87044beb JR |
159 | %description -l ru.UTF-8 |
160 | Команда file используется для определения типа файла по данным, в нем | |
161 | содержащимся. Она может определить множество разнообразных типов | |
162 | файлов, включая бинарные файлы формата ELF, системные библиотеки, | |
163 | пакеты RPM, различные графические форматы и много других. | |
efcbb1e3 | 164 | |
87044beb JR |
165 | %description -l sv.UTF-8 |
166 | Kommandot file används för att identifera en fil vad avser vilken typ | |
167 | av data filen innehåller. File kan identifiera många olika filtyper, | |
168 | inklusive ELF-binärer, systembibliotek, RPM-paket och olika | |
c76db868 | 169 | grafikformat. |
170 | ||
87044beb JR |
171 | %description -l tr.UTF-8 |
172 | file, bir dosyayı inceleyerek ne tür bir dosya olduğu konusunda size | |
173 | bir fikir verebilir. Böylece uzantısından ve adından ne olduğunu | |
174 | çıkaramadığınız bir dosyayı hangi yazılım ile kullanabileceğinize ya | |
175 | da ne yapacağınıza karar verebilisiniz. file, temel dosya tiplerini, | |
176 | çoğu grafik formatını, çalıştırılabilir dosyaları, sistem | |
177 | kitaplıklarını vs. tanıyabilir. | |
178 | ||
179 | %description -l uk.UTF-8 | |
180 | Команда file використовується для визначення типу файлу по даних, які | |
181 | він містить. Вона може визначити велику кількість різноманітних типів | |
182 | файлів, у тому числі бінарні файли формату ELF, системні бібліотеки, | |
183 | пакети RPM, різноманітні графічні формати та багато інших. | |
184 | ||
185 | %description -l zh_CN.UTF-8 | |
186 | file 命令用来根据文件中包含的数据类型来识别文件类型。 file | |
187 | 可以识别许多不同的文件类型,包括 ELF 二进制、系统 库、RPM | |
188 | 软件包、和不同的图形格式。 | |
189 | ||
190 | %description -l zh_TW.UTF-8 | |
191 | file 指令是根據檔案包含的資料類型來辨認檔案。 File | |
192 | 可以辨認許多不同的檔案類型, 包含 ELF binaries,系統函式庫,RPM | |
193 | 套件,以及不同的 圖像格式。 | |
c76db868 | 194 | |
27de5dec | 195 | %package -n libmagic |
196 | Summary: libmagic library | |
17c387d7 | 197 | Summary(pl.UTF-8): Biblioteka libmagic |
27de5dec | 198 | Group: Libraries |
199 | ||
200 | %description -n libmagic | |
201 | Library of functions which operate on magic database file. | |
202 | ||
87044beb JR |
203 | %description -n libmagic -l pl.UTF-8 |
204 | Biblioteka funkcji operujących na pliku bazy danych magic. | |
4902119c | 205 | |
27de5dec | 206 | %package -n libmagic-devel |
4902119c | 207 | Summary: Header files for libmagic library |
17c387d7 | 208 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmagic |
27de5dec | 209 | Group: Development/Libraries |
a272f0a4 | 210 | Requires: libmagic = %{version}-%{release} |
49d7bd2c | 211 | Requires: zlib-devel |
27de5dec | 212 | |
213 | %description -n libmagic-devel | |
214 | Library of functions which operate on magic database file. | |
215 | ||
216 | This package contains the header files needed to develop programs that | |
217 | use these libmagic. | |
218 | ||
87044beb JR |
219 | %description -n libmagic-devel -l pl.UTF-8 |
220 | Biblioteka funkcji operujących na pliku bazy danych magic. | |
4902119c | 221 | |
87044beb JR |
222 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów |
223 | używających libmagic. | |
4902119c | 224 | |
27de5dec | 225 | %package -n libmagic-static |
4902119c | 226 | Summary: Static libmagic library |
17c387d7 | 227 | Summary(pl.UTF-8): Statyczna biblioteka libmagic |
27de5dec | 228 | Group: Development/Libraries |
a272f0a4 | 229 | Requires: libmagic-devel = %{version}-%{release} |
27de5dec | 230 | |
231 | %description -n libmagic-static | |
232 | Library of functions which operate on magic database file. | |
233 | ||
234 | This package contains the static libmagic. | |
235 | ||
87044beb JR |
236 | %description -n libmagic-static -l pl.UTF-8 |
237 | Biblioteka funkcji operujących na pliku bazy danych magic. | |
4902119c | 238 | |
87044beb | 239 | Ten pakiet zawiera statyczną wersję biblioteki. |
4902119c | 240 | |
76e54b9c | 241 | %package -n python-magic |
55d8f9c1 JB |
242 | Summary: Python 2 bindings for libmagic |
243 | Summary(pl.UTF-8): Wiązania Pythona 2 do biblioteki libmagic | |
76e54b9c AF |
244 | Group: Libraries/Python |
245 | Requires: libmagic = %{version}-%{release} | |
779e000d | 246 | Requires: python-libs |
76e54b9c AF |
247 | |
248 | %description -n python-magic | |
55d8f9c1 | 249 | Python 2 bindings for libmagic. |
76e54b9c | 250 | |
87044beb | 251 | %description -n python-magic -l pl.UTF-8 |
55d8f9c1 | 252 | Wiązania Pythona 2 do biblioteki libmagic. |
89a87771 | 253 | |
779e000d | 254 | %package -n python3-magic |
55d8f9c1 JB |
255 | Summary: Python 3 bindings for libmagic |
256 | Summary(pl.UTF-8): Wiązania Pythona 3 do biblioteki libmagic | |
779e000d ER |
257 | Group: Libraries/Python |
258 | Requires: libmagic = %{version}-%{release} | |
259 | Requires: python-libs | |
260 | ||
261 | %description -n python3-magic | |
55d8f9c1 | 262 | Python 3 bindings for libmagic. |
779e000d ER |
263 | |
264 | %description -n python3-magic -l pl.UTF-8 | |
55d8f9c1 | 265 | Wiązania Pythona 3 do biblioteki libmagic. |
779e000d | 266 | |
3db42c15 | 267 | %prep |
7d7e9909 | 268 | %setup -q |
1ddfea46 | 269 | %patch0 -p1 |
6bcdf757 | 270 | %patch1 -p1 |
148db065 JB |
271 | %patch2 -p1 |
272 | %patch3 -p1 | |
3db42c15 | 273 | |
aa747f51 | 274 | %if "%{cc_version}" < "3.4" |
7fb84ed4 ER |
275 | %{__sed} -i -e 's,-Wextra,,' configure.ac |
276 | %endif | |
277 | ||
640647bd ER |
278 | cp -p %{SOURCE3} magic/Magdir/mscompress |
279 | cp -p %{SOURCE2} magic/Magdir/zisofs | |
280 | ||
e7680839 | 281 | rm -f magic/Magdir/{*.orig,*~} |
e3f0414c | 282 | |
779e000d ER |
283 | %if %{with python3} |
284 | cp -a python py3 | |
285 | %endif | |
286 | ||
3db42c15 | 287 | %build |
27de5dec | 288 | %{__libtoolize} |
54bcd485 | 289 | %{__aclocal} |
290 | %{__autoheader} | |
d846d5a6 | 291 | %{__autoconf} |
292 | %{__automake} | |
4b9ca3cc | 293 | %configure \ |
a284f482 | 294 | --disable-silent-rules \ |
ae310f23 | 295 | --enable-fsect-man5 \ |
49d7bd2c | 296 | %{?with_static_libs:--enable-static} |
e855616e | 297 | |
9ee0e0b5 | 298 | %{__make} |
3db42c15 | 299 | |
779e000d | 300 | %if %{with python2} |
76e54b9c | 301 | cd python |
e3acf3ba | 302 | %{__python} setup.py build |
76e54b9c AF |
303 | cd .. |
304 | %endif | |
779e000d ER |
305 | %if %{with python3} |
306 | cd py3 | |
307 | %{__python3} setup.py build | |
308 | cd .. | |
309 | %endif | |
76e54b9c | 310 | |
916aadc7 AM |
311 | %if %{with tests} |
312 | %{__make} check | |
313 | %endif | |
314 | ||
3db42c15 | 315 | %install |
316 | rm -rf $RPM_BUILD_ROOT | |
55ad3894 | 317 | install -d $RPM_BUILD_ROOT/%{_lib} |
e74cb2dc | 318 | |
a1cfb053 PG |
319 | %{__make} install \ |
320 | DESTDIR=$RPM_BUILD_ROOT | |
2e653634 | 321 | |
f9961c0f JB |
322 | mv $RPM_BUILD_ROOT%{_libdir}/libmagic.so.* $RPM_BUILD_ROOT/%{_lib} |
323 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libmagic.so.*.*.*) \ | |
ae33d63f AM |
324 | $RPM_BUILD_ROOT%{_libdir}/libmagic.so |
325 | ||
779e000d | 326 | %if %{with python2} |
76e54b9c | 327 | cd python |
7abc2151 | 328 | %{__python} setup.py install \ |
779e000d ER |
329 | --optimize=2 \ |
330 | --root=$RPM_BUILD_ROOT | |
ae310f23 | 331 | cd .. |
7abc2151 | 332 | %py_postclean |
76e54b9c AF |
333 | %endif |
334 | ||
779e000d ER |
335 | %if %{with python3} |
336 | cd py3 | |
337 | %{__python3} setup.py install \ | |
338 | --optimize=2 \ | |
339 | --skip-build \ | |
340 | --root=$RPM_BUILD_ROOT | |
341 | cd .. | |
342 | %endif | |
343 | ||
148db065 | 344 | awk -f %{SOURCE4} < $RPM_BUILD_ROOT%{_datadir}/misc/magic > $RPM_BUILD_ROOT%{_datadir}/misc/magic.mime |
e3acf3ba ER |
345 | ln -s misc $RPM_BUILD_ROOT%{_datadir}/file |
346 | ||
347 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} | |
aa747f51 ER |
348 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/README.file-non-english-man-pages |
349 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/file-magic4.diff | |
b8b920bf | 350 | |
3db42c15 | 351 | %clean |
352 | rm -rf $RPM_BUILD_ROOT | |
353 | ||
27de5dec | 354 | %post -n libmagic -p /sbin/ldconfig |
355 | %postun -n libmagic -p /sbin/ldconfig | |
356 | ||
55ad3894 AM |
357 | %pretrans |
358 | # it used to be directory | |
b2cca602 | 359 | if [ -d %{_datadir}/file -a ! -L %{_datadir}/file ]; then |
55ad3894 | 360 | mv -b %{_datadir}/file{,.dir} |
9e4bf8c8 | 361 | ln -sn misc %{_datadir}/file |
55ad3894 | 362 | %banner -e %{name} <<EOF |
55c2baa7 | 363 | Check %{_datadir}/file.dir for your own files and remove it when done. |
55ad3894 AM |
364 | EOF |
365 | fi | |
366 | ||
3db42c15 | 367 | %files |
4f023001 | 368 | %defattr(644,root,root,755) |
bc21903a | 369 | %doc ChangeLog COPYING README |
09b88bf5 | 370 | %attr(755,root,root) %{_bindir}/file |
4902119c | 371 | %{_datadir}/file |
969ab84e SP |
372 | %{_datadir}/misc/magic |
373 | %{_datadir}/misc/magic.mgc | |
55ad3894 | 374 | %{_datadir}/misc/magic.mime |
4653b295 | 375 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/magic |
e3f0414c JB |
376 | %{_mandir}/man1/file.1* |
377 | %{_mandir}/man5/magic.5* | |
e2cdad8f | 378 | %lang(de) %{_mandir}/de/man[15]/* |
379 | %lang(es) %{_mandir}/es/man[15]/* | |
380 | %lang(fr) %{_mandir}/fr/man[15]/* | |
381 | %lang(hu) %{_mandir}/hu/man[15]/* | |
382 | %lang(it) %{_mandir}/it/man[15]/* | |
383 | %lang(ja) %{_mandir}/ja/man[15]/* | |
384 | %lang(nl) %{_mandir}/nl/man[15]/* | |
4b9ca3cc | 385 | %lang(pl) %{_mandir}/pl/man[15]/* |
ca0f057f | 386 | %lang(pt_BR) %{_mandir}/pt_BR/man[15]/* |
27de5dec | 387 | |
388 | %files -n libmagic | |
389 | %defattr(644,root,root,755) | |
09b88bf5 | 390 | %attr(755,root,root) /%{_lib}/libmagic.so.*.*.* |
f9961c0f | 391 | %attr(755,root,root) %ghost /%{_lib}/libmagic.so.1 |
27de5dec | 392 | |
393 | %files -n libmagic-devel | |
f7bf36fb | 394 | %defattr(644,root,root,755) |
09b88bf5 JB |
395 | %attr(755,root,root) %{_libdir}/libmagic.so |
396 | %{_libdir}/libmagic.la | |
cc7e8ae4 | 397 | %{_includedir}/magic.h |
f9961c0f | 398 | %{_mandir}/man3/libmagic.3* |
27de5dec | 399 | |
ae310f23 | 400 | %if %{with static_libs} |
27de5dec | 401 | %files -n libmagic-static |
402 | %defattr(644,root,root,755) | |
09b88bf5 | 403 | %{_libdir}/libmagic.a |
ae310f23 | 404 | %endif |
76e54b9c | 405 | |
779e000d | 406 | %if %{with python3} |
76e54b9c AF |
407 | %files -n python-magic |
408 | %defattr(644,root,root,755) | |
7abc2151 ER |
409 | %doc python/README python/example.py |
410 | %if "%{py_ver}" > "2.4" | |
411 | %{py_sitescriptdir}/Magic_file_extensions-*.egg-info | |
412 | %endif | |
413 | %{py_sitescriptdir}/magic.py[co] | |
76e54b9c | 414 | %endif |
779e000d ER |
415 | |
416 | %if %{with_python3} | |
417 | %files -n python3-magic | |
418 | %defattr(644,root,root,755) | |
419 | %doc python/README python/example.py | |
420 | %{py3_sitescriptdir}/magic.py | |
421 | %{py3_sitescriptdir}/__pycache__/magic.*.py[co] | |
422 | %{py3_sitescriptdir}/Magic_file_extensions-*.egg-info | |
423 | %endif |