#
# 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(sv): En Perl-modul som gissar filtyper utgående från deras innehåll
Summary(zh_CN): Ò»¸ö¸ù¾ÄÚȲ²âÎļþÀàÐ굀 Perl Ä£¿é¡£
Name: perl-File-MMagic
-Version: 1.16
+Version: 1.22
Release: 1
License: GPL
Group: Development/Languages/Perl
-Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: de4fc586de7629483196bea11c898bfc
+BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: perl-devel >= 5.6.1
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%setup -q -n %{pdir}-%{pnam}-%{version}
%build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.en ChangeLog
-%{perl_sitelib}/File/*
+%{perl_vendorlib}/File/*
%{_mandir}/man3/*