]>
Commit | Line | Data |
---|---|---|
24e5e9dd | 1 | # |
2 | # Conditional build: | |
50061497 | 3 | %bcond_without tests # do not perform "make test" |
0ce03d69 | 4 | |
2133d105 | 5 | %define pdir File |
6 | %define pnam MMagic | |
715012f1 | 7 | Summary: A Perl module that guesses file types based on their contents |
21fa072f ER |
8 | Summary(cs.UTF-8): Modul pro Perl na zjišťování typu souboru podle jeho obsahu |
9 | Summary(da.UTF-8): En Perl-modul som gissar filtyper utgående fra deras indhold | |
10 | Summary(de.UTF-8): Ein Perl Modul, das eine Datei an ihrem Inhalt erkennt | |
11 | Summary(es.UTF-8): Módulo Perl que conjetura tipos de ficheros basados en su contenido | |
12 | Summary(fr.UTF-8): Un module Perl qui devine les types de fichier en fonction de leur contenu | |
13 | Summary(it.UTF-8): Modulo Perl per individuare i tipi di file in base al contenuto | |
14 | Summary(ja.UTF-8): ファイルの内容に基づいてファイルタイプを推測する Perl モジュール | |
15 | Summary(ko.UTF-8): Perl 모줄은 파일의 내용에 기초해서 파일 형태를 추축합니다 | |
16 | Summary(pl.UTF-8): Moduł Perla odgadujący typ pliku na podstawie jego zawartości | |
17 | Summary(pt.UTF-8): Um módulo de Perl que adivinha o tipo dos ficheiros a partir do conteúdo | |
18 | Summary(ru.UTF-8): Модуль для Perl, который определяет тип файла по его содержимому | |
19 | Summary(sv.UTF-8): En Perl-modul som gissar filtyper utgående från deras innehåll | |
20 | Summary(zh_CN.UTF-8): 一个根灸谌猜测文件类型的 Perl 模块。 | |
a2ff89c0 | 21 | Name: perl-File-MMagic |
0ce03d69 | 22 | Version: 1.30 |
eefd607d | 23 | Release: 2 |
4b98e81d | 24 | License: BSD-like/Apache |
a2ff89c0 | 25 | Group: Development/Languages/Perl |
3a20fcb7 | 26 | Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz |
0ce03d69 | 27 | # Source0-md5: a0157c71d5872fa07102a2ffaf7979ec |
3a20fcb7 | 28 | URL: http://search.cpan.org/dist/File-MMagic/ |
b6557985 | 29 | BuildRequires: perl-devel >= 1:5.8.0 |
3a20fcb7 | 30 | BuildRequires: rpm-perlprov >= 4.1-13 |
a2ff89c0 | 31 | BuildArch: noarch |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
715012f1 | 35 | The perl-File-MMagic package provides a Perl module for guessing a |
36 | file type from the contents of the file, similar to how the file(1) | |
37 | command works. | |
38 | ||
c000b492 JR |
39 | %description -l cs.UTF-8 |
40 | Balíček obsahuje modul pro Perl, který umožňuje zjišťovat typ souboru | |
41 | podle jeho obsahu. Jeho činnost je podobná programu file(1). | |
715012f1 | 42 | |
c000b492 JR |
43 | %description -l da.UTF-8 |
44 | Pakken perl-File-MMagic tillhandahåller en Perl-modul for at gissa | |
715012f1 | 45 | filtypen fra indholdet i filen, lignende hvordan kommandoen file(1) |
46 | fungerar. | |
47 | ||
c000b492 | 48 | %description -l de.UTF-8 |
715012f1 | 49 | Das Paket perl-File-MMagic liefert ein Perl-Modul zum Herausfinden |
c000b492 | 50 | eines Dateityps an Hand des Inhalts der Datei, ähnlich wie die file(1) |
715012f1 | 51 | arbeitet. |
52 | ||
c000b492 JR |
53 | %description -l es.UTF-8 |
54 | El conjunto de perl-File-MMagic proporciona a un módulo del Perl para | |
715012f1 | 55 | adivinar un tipo de fichero por el contenido del fichero, similar a |
56 | como el comando de file(1) funciona. | |
57 | ||
c000b492 | 58 | %description -l fr.UTF-8 |
715012f1 | 59 | Le paquetage Perl-File-MMagic fournit un module Perl permettant de |
c000b492 JR |
60 | deviner le type d'un fichier à partir de son contenu, semblable à la |
61 | façon dont fonctionne la commande du file(1). | |
715012f1 | 62 | |
c000b492 | 63 | %description -l it.UTF-8 |
715012f1 | 64 | Il pacchetto perl-File-MMagic fornisce un modulo Perl per individuare |
65 | un tipo di file dal suo contenuto, in modo simile al comando file(1). | |
a2ff89c0 | 66 | |
c000b492 JR |
67 | %description -l ja.UTF-8 |
68 | perl-File-MMagic パッケージは、ファイルの内容からファイルのタイプを推 | |
69 | 測するための Perl モジュールを提供し、file(1) コマンドと同様の役割を | |
70 | 果たします。 | |
0e018445 | 71 | |
c000b492 JR |
72 | %description -l pl.UTF-8 |
73 | Moduł ten rozpoznaje typ pliku na podstawie jego zawartości podobnie | |
715012f1 | 74 | jak polecenie file(1). |
75 | ||
c000b492 JR |
76 | %description -l pt.UTF-8 |
77 | O pacote perl-File-MMagic oferece um módulo de Perl para adivinhar o | |
78 | tipo dum ficheiro a partir do seu conteúdo, de maneira semelhante à | |
715012f1 | 79 | que o comando file(1) funciona. |
80 | ||
c000b492 JR |
81 | %description -l ru.UTF-8 |
82 | Пакет perl-File-MMagic содержит модуль для Perl, которые пытается | |
83 | определить тип файла, по содержимому файла, подобно тому как работает | |
84 | команда file(1). | |
715012f1 | 85 | |
c000b492 JR |
86 | %description -l sv.UTF-8 |
87 | Paketet perl-File-MMagic tillhandahåller en Perl-modul för att gissa | |
88 | filtypen från innehållet i filen, liknande hur kommandot file(1) | |
715012f1 | 89 | fungerar. |
a2ff89c0 | 90 | |
91 | %prep | |
12bf0e89 | 92 | %setup -q -n %{pdir}-%{pnam}-%{version} |
a2ff89c0 | 93 | |
94 | %build | |
97baa33e | 95 | %{__perl} Makefile.PL \ |
c48b767a | 96 | INSTALLDIRS=vendor |
a2ff89c0 | 97 | %{__make} |
9c486bbe | 98 | |
50061497 | 99 | %{?with_tests:%{__make} test} |
a2ff89c0 | 100 | |
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
9c486bbe | 104 | %{__make} install \ |
105 | DESTDIR=$RPM_BUILD_ROOT | |
a2ff89c0 | 106 | |
a2ff89c0 | 107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
715012f1 | 112 | %doc README.en ChangeLog |
b2718af5 JB |
113 | %{perl_vendorlib}/File/MMagic.pm |
114 | %{_mandir}/man3/File::MMagic.3pm* |