]> git.pld-linux.org Git - packages/perl-MIME-Lite.git/blobdiff - perl-MIME-Lite.spec
- rel. 2
[packages/perl-MIME-Lite.git] / perl-MIME-Lite.spec
index 0993916e2f078529725171e1a15db580d6b97fdf..15b390c08f779aee8182790a68d8e5b38fb618eb 100644 (file)
@@ -1,16 +1,22 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    MIME
 %define        pnam    Lite
 Summary:       MIME::Lite perl module
 Summary(pl):   Modu³ perla MIME::Lite
 Name:          perl-MIME-Lite
-Version:       2.117
-Release:       3
-License:       GPL
+Version:       3.01
+Release:       2
+# same as perl
+License:       GPL v1+ or Artisric
 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
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: b41eb689819775fd8df360458fc2d507
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: perl-libnet
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -26,19 +32,23 @@ wiadomo
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?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
 
 %files
 %defattr(644,root,root,755)
-%doc README docs/MIME/*
-%{perl_sitelib}/MIME/Lite.pm
+%doc README examples
+%{perl_vendorlib}/MIME/Lite.pm
 %{_mandir}/man3/*
This page took 0.056394 seconds and 4 git commands to generate.