]> git.pld-linux.org Git - packages/perl-MIME-Lite.git/blame - perl-MIME-Lite.spec
- merge from DEVEL
[packages/perl-MIME-Lite.git] / perl-MIME-Lite.spec
CommitLineData
1cf5d55d 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
4f28b1c0 5%include /usr/lib/rpm/macros.perl
b815fe25 6%define pdir MIME
7%define pnam Lite
3990834d 8Summary: MIME::Lite perl module
f0cb0bb4 9Summary(pl.UTF-8): Moduł perla MIME::Lite
22511b34 10Name: perl-MIME-Lite
70d2d4c7
TP
11Version: 3.021
12Release: 1
1cf5d55d 13# same as perl
14License: GPL v1+ or Artisric
22511b34 15Group: Development/Languages/Perl
d4a263ef 16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
70d2d4c7 17# Source0-md5: 7b3f4b9b3f8a0023dbc62859ef9a775f
366ee46e 18BuildRequires: perl-devel >= 1:5.8.0
70d2d4c7
TP
19%if %{with tests}
20BuildRequires: perl-Email-Date-Format
21BuildRequires: perl-MIME-Types
22BuildRequires: perl-Test-Pod >= 1.14
23BuildRequires: perl-Test-Pod-Coverage >= 1.08
24%endif
e75facb3 25BuildRequires: perl-libnet
70d2d4c7
TP
26BuildRequires: rpm-perlprov >= 4.1-13
27Requires: perl-Email-Date-Format
28Suggests: perl-MailTools
29Suggests: perl-MIME-Base64
30Suggests: perl-MIME-Types
75bd37f8 31BuildArch: noarch
6b78f350 32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22511b34 33
34%description
3990834d 35MIME::Lite is a simple, standalone module for generating MIME messages.
22511b34 36
7746f697
JR
37%description -l pl.UTF-8
38MIME::Lite jest prostym, samodzielnym modułem służącym do generowania
39wiadomości w formacie MIME.
22511b34 40
41%prep
4f28b1c0 42%setup -q -n %{pdir}-%{pnam}-%{version}
22511b34 43
44%build
70d2d4c7 45PERL_MM_USE_DEFAULT=yes \
663d5db8 46%{__perl} Makefile.PL \
20515edd 47 INSTALLDIRS=vendor
5d17e9a8 48%{__make}
22511b34 49
1cf5d55d 50%{?with_tests:%{__make} test}
51
22511b34 52%install
53rm -rf $RPM_BUILD_ROOT
70d2d4c7 54install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}
22511b34 55
d40802db 56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
70d2d4c7
TP
58install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}
59
60# package it or not?
61rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/MIME/changes.pod
22511b34 62
22511b34 63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
70d2d4c7 68%doc README contrib
663d5db8 69%{perl_vendorlib}/MIME/Lite.pm
70d2d4c7 70%{_examplesdir}/%{name}
22511b34 71%{_mandir}/man3/*
This page took 0.066502 seconds and 4 git commands to generate.