]> git.pld-linux.org Git - packages/perl-Email-Simple.git/blame - perl-Email-Simple.spec
- add R: perl-Email-Date-Format
[packages/perl-Email-Simple.git] / perl-Email-Simple.spec
CommitLineData
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 8Summary: Email::Simple - email handling, simply
f13fb62c 9Summary(pl.UTF-8): Email::Simple - obsługa poczty elektronicznej, po prostu
14043361 10Name: perl-Email-Simple
026851c4 11Version: 2.216
037ea022 12Release: 1
3b388c3e 13Epoch: 1
14043361 14# same as perl
0eac7ba9 15License: GPL v1+ or Artistic
14043361 16Group: Development/Languages/Perl
31fc2a74 17Source0: http://www.cpan.org/modules/by-module/Email/%{pdir}-%{pnam}-%{version}.tar.gz
026851c4 18# Source0-md5: 9520e2073ca7f3bffb3282f6e6e3dc3f
31fc2a74 19URL: http://search.cpan.org/dist/Email-Simple/
8165c057 20BuildRequires: perl-devel >= 1:5.8.0
14043361 21BuildRequires: rpm-perlprov >= 4.1-13
9302b979 22%{?with_tests:BuildRequires: perl-Email-Date-Format}
3b388c3e 23Obsoletes: perl-Email-Simple-Creator
c5e511cc 24Requires: perl-Email-Date-Format
14043361 25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29bfb2d7
JB
29Email::Simple is the first deliverable of the "Perl Email Project", a
30reaction against the complexity and increasing bugginess of the
31Mail::* modules. In contrast, Email::* modules are meant to be simple
32to use and to maintain, pared to the bone, fast, minimal in their
14043361 33external dependencies, and correct.
34
3b388c3e 35Methods are deliberately kept to a minimum. This is meant to be
36simple. No, I will not add method X. This is meant to be simple. Why
37doesn't it have feature Y? Because it's meant to be simple.
14043361 38
c11a7711 39%description -l pl.UTF-8
29bfb2d7 40Email::Simple to pierwszy produkt projektu "Perl Email Project",
c11a7711
JR
41będącego reakcją na złożoność i rosnący współczynnik zapluskwienia
42modułów Mail::*. W przeciwieństwie do Mail::*, moduły Email::* mają
43być proste w użyciu i w utrzymaniu, jednocześnie być szybkie i mieć
44minimalne zależności, a także być poprawne.
29bfb2d7 45
c11a7711 46Metody są rozmyślnie utrzymywane w minimalnej liczbie. To ma być
3b388c3e 47proste. Nie, nie dodamy metody X. To ma być proste. Dlaczego nie ma to
48moż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
63rm -rf $RPM_BUILD_ROOT
64
65%{__make} install \
66 DESTDIR=$RPM_BUILD_ROOT
67
68%clean
69rm -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*
This page took 0.096499 seconds and 4 git commands to generate.