#
# Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
%define pdir File
Summary(it): Modulo Perl per individuare i tipi di file in base al contenuto
Summary(ja): ¥Õ¥¡¥¤¥ë¤ÎÆâÍƤ˴ð¤Å¤¤¤Æ¥Õ¥¡¥¤¥ë¥¿¥¤¥×¤ò¿ä¬¤¹¤ë Perl ¥â¥¸¥å¡¼¥ë
Summary(ko): Perl ¸ðÁÙÀº ÆÄÀÏÀÇ ³»¿ë¿¡ ±âÃÊÇؼ ÆÄÀÏ ÇüŸ¦ ÃßÃàÇÕ´Ï´Ù
-Summary(pl): Modu³ perla odgaduj±cy typ pliku na podstawie jego zawarto¶ci
+Summary(pl): Modu³ Perla odgaduj±cy typ pliku na podstawie jego zawarto¶ci
Summary(pt): Um módulo de Perl que adivinha o tipo dos ficheiros a partir do conteúdo
Summary(ru): íÏÄÕÌØ ÄÌÑ Perl, ËÏÔÏÒÙÊ ÏÐÒÅÄÅÌÑÅÔ ÔÉÐ ÆÁÊÌÁ ÐÏ ÅÇÏ ÓÏÄÅÒÖÉÍÏÍÕ
Summary(sv): En Perl-modul som gissar filtyper utgående från deras innehåll
Summary(zh_CN): Ò»¸ö¸ù¾ÄÚȲ²âÎļþÀàÐ굀 Perl Ä£¿é¡£
Name: perl-File-MMagic
-Version: 1.20
+Version: 1.27
Release: 1
-License: GPL
+License: BSD-like/Apache
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 8f1f7189c9f2a2c19157a756a0d177e5
+Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 4ffb13b6587888e6e455c22988abce5e
+URL: http://search.cpan.org/dist/File-MMagic/
+BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
-BuildRequires: perl-devel >= 5.6.1
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT