]> git.pld-linux.org Git - packages/perl-MIME-Lite.git/blame - perl-MIME-Lite.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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#
b815fe25 5%define pdir MIME
6%define pnam Lite
2a32b115
JB
7Summary: MIME::Lite - low-calorie MIME generator
8Summary(pl.UTF-8): MIME::Lite - niskokaloryczny generator MIME
22511b34 9Name: perl-MIME-Lite
4ef728a7 10Version: 3.031
89f5bb62 11Release: 1
1cf5d55d 12# same as perl
13License: GPL v1+ or Artisric
22511b34 14Group: Development/Languages/Perl
2a32b115 15Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz
4ef728a7 16# Source0-md5: 4ff72d8dd5811b8538825fca4b0f133e
2a32b115 17URL: http://search.cpan.org/dist/MIME-Lite/
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
2a32b115 54install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
22511b34 55
d40802db 56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
2a32b115 58install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70d2d4c7
TP
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
2a32b115 70%{_examplesdir}/%{name}-%{version}
22511b34 71%{_mandir}/man3/*
This page took 0.098305 seconds and 4 git commands to generate.