3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Format-Mail
8 Summary: DateTime::Format::Mail - Convert between DateTime and RFC 2822/822 formats
9 Summary(pl.UTF-8): DateTime::Format::Mail - konwersja między formatami DateTime a RFC 2822/822
10 Name: perl-DateTime-Format-Mail
15 License: GPL v1+ or Artistic
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: b34a52d96290c42cf53e8db0a8f16ecd
19 URL: http://search.cpan.org/dist/DateTime-Format-Mail/
20 BuildRequires: perl-Module-Build
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRequires: perl-DateTime
25 BuildRequires: perl-Params-Validate >= 0.67
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 RFCs 2822 and 822 specify date formats to be used by email. This
32 module parses and emits such dates.
34 %description -l pl.UTF-8
35 RFC 2822 i 822 określają formaty daty przeznaczone do używania w
36 poczcie elektronicznej. Ten moduł analizuje i tworzy takie daty.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
59 %doc Changes CREDITS README
60 %{perl_vendorlib}/DateTime/Format/Mail.pm
61 %{_mandir}/man3/DateTime::Format::Mail.3pm*