]>
Commit | Line | Data |
---|---|---|
f4c843f9 | 1 | # |
2 | # Conditional build: | |
eb175b15 | 3 | %bcond_without tests # do not perform "make test" |
f4c843f9 | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
62c77445 | 6 | %define pdir Email |
7 | %define pnam LocalDelivery | |
183d7e7c | 8 | Summary: Email::LocalDelivery - deliver a piece of email - simply |
07e59b5f | 9 | Summary(pl.UTF-8): Email::LocalDelivery - po prostu dostarczanie poczty |
f4c843f9 | 10 | Name: perl-Email-LocalDelivery |
bd68a4fa | 11 | Version: 0.217 |
f8fa1a1e | 12 | Release: 1 |
f4c843f9 | 13 | # same as perl |
59687419 | 14 | License: GPL v1+ or Artistic |
f4c843f9 | 15 | Group: Development/Languages/Perl |
bd68a4fa | 16 | Source0: http://www.cpan.org/modules/by-module/Email/%{pdir}-%{pnam}-%{version}.tar.gz |
17 | # Source0-md5: 10c70424179010bf9fb2f1b03ab92527 | |
f8fa1a1e | 18 | URL: http://search.cpan.org/dist/Email-LocalDelivery/ |
b8b4f49e | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
f4c843f9 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
eb175b15 | 21 | %if %{with tests} |
f4c843f9 | 22 | # the issue of different interpretation of version numbers between perl |
23 | # and rpm comes back again... Here should be ">= 0.11", but the newest | |
24 | # perl-Email-Foldertype is 0.5. | |
25 | BuildRequires: perl-Email-FolderType | |
bd68a4fa | 26 | BuildRequires: perl-Email-Simple >= 1:1.998 |
96aeb2f0 | 27 | BuildRequires: perl-File-Path-Expand |
28 | BuildRequires: perl-Test-Simple | |
f4c843f9 | 29 | %endif |
30 | BuildArch: noarch | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
c9e35d2c JB |
34 | This is the second module produced by the "Perl Email Project", a |
35 | reaction against the complexity and increasing bugginess of the | |
36 | Mail::* modules. It delivers an email to a list of mailboxes. | |
f4c843f9 | 37 | |
45047fdd JR |
38 | %description -l pl.UTF-8 |
39 | To jest drugi moduł wyprodukowany przez "Perl Email Project", będący | |
40 | reakcją na złożoność i rosnący współczynnik zapluskwienia modułów | |
41 | Mail::*. Moduł dostarcza pocztę do listy skrzynek. | |
f4c843f9 | 42 | |
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
45 | ||
46 | %build | |
47 | %{__perl} Makefile.PL \ | |
48 | INSTALLDIRS=vendor | |
49 | %{__make} | |
50 | ||
eb175b15 | 51 | %{?with_tests:%{__make} test} |
f4c843f9 | 52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes | |
65 | %{perl_vendorlib}/%{pdir}/*.pm | |
66 | %{perl_vendorlib}/%{pdir}/%{pnam} | |
67 | %{_mandir}/man3/* |