]> git.pld-linux.org Git - packages/perl-File-MMagic.git/blobdiff - perl-File-MMagic.spec
- new style bconds
[packages/perl-File-MMagic.git] / perl-File-MMagic.spec
index 60df22e716228a5a3dd49e06f41c44eccac48912..055522ec8020fd5d08787a8dd2da765ab17e224c 100644 (file)
@@ -1,6 +1,6 @@
 #
 # 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
@@ -20,12 +20,13 @@ Summary(ru):        
 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)
@@ -91,9 +92,10 @@ fungerar.
 %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
@@ -106,5 +108,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README.en ChangeLog
-%{perl_sitelib}/File/*
+%{perl_vendorlib}/File/*
 %{_mandir}/man3/*
This page took 0.023616 seconds and 4 git commands to generate.