3 %bcond_without tests # do not perform "make test"
6 %define pnam Format-Mail
7 Summary: DateTime::Format::Mail - Convert between DateTime and RFC 2822/822 formats
8 Summary(pl.UTF-8): DateTime::Format::Mail - konwersja między formatami DateTime a RFC 2822/822
9 Name: perl-DateTime-Format-Mail
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: b34a52d96290c42cf53e8db0a8f16ecd
18 URL: https://metacpan.org/release/DateTime-Format-Mail
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: rpmbuild(macros) >= 1.745
23 BuildRequires: perl-DateTime >= 1.04
24 BuildRequires: perl-Params-Validate >= 0.67
25 BuildRequires: perl-Test-Simple
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*