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