]> 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 990566a0107cd5b4583f629e8402f413949f44f7..15b390c08f779aee8182790a68d8e5b38fb618eb 100644 (file)
@@ -1,46 +1,54 @@
+#
+# 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
+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)
 
 %description
-MIME-Lite is a simple, standalone module for generating MIME messages.
+MIME::Lite is a simple, standalone module for generating MIME messages.
 
 %description -l pl
-MIME-Lite jest prostym, samodzielnym modu³em s³u¿±cym do generowania
+MIME::Lite jest prostym, samodzielnym modu³em s³u¿±cym do generowania
 wiadomo¶ci w formacie MIME.
 
 %prep
 %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
-
-gzip -9nf README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz docs/MIME/*
-%{perl_sitelib}/MIME/Lite.pm
+%doc README examples
+%{perl_vendorlib}/MIME/Lite.pm
 %{_mandir}/man3/*
This page took 0.07336 seconds and 4 git commands to generate.