]>
Commit | Line | Data |
---|---|---|
14043361 | 1 | # |
2 | # Conditional build: | |
98fdf770 | 3 | %bcond_without tests # do not perform "make test" |
14043361 | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
799f41da | 6 | %define pdir Email |
7 | %define pnam Simple | |
29bfb2d7 | 8 | Summary: Email::Simple - email handling, simply |
f13fb62c | 9 | Summary(pl.UTF-8): Email::Simple - obsługa poczty elektronicznej, po prostu |
14043361 | 10 | Name: perl-Email-Simple |
026851c4 | 11 | Version: 2.216 |
037ea022 | 12 | Release: 1 |
3b388c3e | 13 | Epoch: 1 |
14043361 | 14 | # same as perl |
0eac7ba9 | 15 | License: GPL v1+ or Artistic |
14043361 | 16 | Group: Development/Languages/Perl |
31fc2a74 | 17 | Source0: http://www.cpan.org/modules/by-module/Email/%{pdir}-%{pnam}-%{version}.tar.gz |
026851c4 | 18 | # Source0-md5: 9520e2073ca7f3bffb3282f6e6e3dc3f |
31fc2a74 | 19 | URL: http://search.cpan.org/dist/Email-Simple/ |
8165c057 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
14043361 | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
9302b979 | 22 | %{?with_tests:BuildRequires: perl-Email-Date-Format} |
3b388c3e | 23 | Obsoletes: perl-Email-Simple-Creator |
c5e511cc | 24 | Requires: perl-Email-Date-Format |
14043361 | 25 | BuildArch: noarch |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29bfb2d7 JB |
29 | Email::Simple is the first deliverable of the "Perl Email Project", a |
30 | reaction against the complexity and increasing bugginess of the | |
31 | Mail::* modules. In contrast, Email::* modules are meant to be simple | |
32 | to use and to maintain, pared to the bone, fast, minimal in their | |
14043361 | 33 | external dependencies, and correct. |
34 | ||
3b388c3e | 35 | Methods are deliberately kept to a minimum. This is meant to be |
36 | simple. No, I will not add method X. This is meant to be simple. Why | |
37 | doesn't it have feature Y? Because it's meant to be simple. | |
14043361 | 38 | |
c11a7711 | 39 | %description -l pl.UTF-8 |
29bfb2d7 | 40 | Email::Simple to pierwszy produkt projektu "Perl Email Project", |
c11a7711 JR |
41 | będącego reakcją na złożoność i rosnący współczynnik zapluskwienia |
42 | modułów Mail::*. W przeciwieństwie do Mail::*, moduły Email::* mają | |
43 | być proste w użyciu i w utrzymaniu, jednocześnie być szybkie i mieć | |
44 | minimalne zależności, a także być poprawne. | |
29bfb2d7 | 45 | |
c11a7711 | 46 | Metody są rozmyślnie utrzymywane w minimalnej liczbie. To ma być |
3b388c3e | 47 | proste. Nie, nie dodamy metody X. To ma być proste. Dlaczego nie ma to |
48 | możliwości Y? Ponieważ to ma być proste. | |
14043361 | 49 | |
50 | %prep | |
51 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
b2ace626 | 52 | |
23b890e3 | 53 | %{__perl} -pi -e 's/(use 5.005)(03;)/$1_$2/' lib/Email/Simple.pm |
14043361 | 54 | |
55 | %build | |
56 | %{__perl} Makefile.PL \ | |
57 | INSTALLDIRS=vendor | |
58 | %{__make} | |
59 | ||
98fdf770 | 60 | %{?with_tests:%{__make} test} |
14043361 | 61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %doc Changes | |
23b890e3 JB |
74 | %{perl_vendorlib}/Email/Simple.pm |
75 | %{perl_vendorlib}/Email/Simple/*.pm | |
76 | %{_mandir}/man3/Email::Simple*.3pm* |