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