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