]>
Commit | Line | Data |
---|---|---|
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 |
8 | Summary: MIME::Lite - low-calorie MIME generator |
9 | Summary(pl.UTF-8): MIME::Lite - niskokaloryczny generator MIME | |
22511b34 | 10 | Name: perl-MIME-Lite |
d330f85b | 11 | Version: 3.030 |
89f5bb62 | 12 | Release: 1 |
1cf5d55d | 13 | # same as perl |
14 | License: GPL v1+ or Artisric | |
22511b34 | 15 | Group: Development/Languages/Perl |
2a32b115 | 16 | Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz |
d330f85b | 17 | # Source0-md5: 5a6d90329e049eee77248d667343acc7 |
2a32b115 | 18 | URL: http://search.cpan.org/dist/MIME-Lite/ |
366ee46e | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
70d2d4c7 TP |
20 | %if %{with tests} |
21 | BuildRequires: perl-Email-Date-Format | |
22 | BuildRequires: perl-MIME-Types | |
23 | BuildRequires: perl-Test-Pod >= 1.14 | |
24 | BuildRequires: perl-Test-Pod-Coverage >= 1.08 | |
25 | %endif | |
e75facb3 | 26 | BuildRequires: perl-libnet |
70d2d4c7 TP |
27 | BuildRequires: rpm-perlprov >= 4.1-13 |
28 | Requires: perl-Email-Date-Format | |
29 | Suggests: perl-MailTools | |
30 | Suggests: perl-MIME-Base64 | |
31 | Suggests: perl-MIME-Types | |
75bd37f8 | 32 | BuildArch: noarch |
6b78f350 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22511b34 | 34 | |
35 | %description | |
3990834d | 36 | MIME::Lite is a simple, standalone module for generating MIME messages. |
22511b34 | 37 | |
7746f697 JR |
38 | %description -l pl.UTF-8 |
39 | MIME::Lite jest prostym, samodzielnym modułem służącym do generowania | |
40 | wiadomości w formacie MIME. | |
22511b34 | 41 | |
42 | %prep | |
4f28b1c0 | 43 | %setup -q -n %{pdir}-%{pnam}-%{version} |
22511b34 | 44 | |
45 | %build | |
70d2d4c7 | 46 | PERL_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 |
54 | rm -rf $RPM_BUILD_ROOT | |
2a32b115 | 55 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
22511b34 | 56 | |
d40802db | 57 | %{__make} install \ |
58 | DESTDIR=$RPM_BUILD_ROOT | |
2a32b115 | 59 | install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
70d2d4c7 TP |
60 | |
61 | # package it or not? | |
62 | rm -f $RPM_BUILD_ROOT%{perl_vendorlib}/MIME/changes.pod | |
22511b34 | 63 | |
22511b34 | 64 | %clean |
65 | rm -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/* |