3 %bcond_without tests # do not perform "make test"
6 %define pnam Date-Format
7 Summary: Email::Date::Format - format Date headers
8 Summary(pl.UTF-8): Email::Date::Format - formatowanie nagłówków Date
9 Name: perl-Email-Date-Format
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Email/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 030dcee3bc1a44674900b0132925bd03
17 URL: http://search.cpan.org/dist/Email-Date-Format/
18 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: perl-Test-Pod >= 1.14
21 BuildRequires: perl-Test-Pod-Coverage >= 1.08
23 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 RFC 2822 defines the Date: header. It declares the header a required
29 part of an email message. The syntax for date headers is clearly laid
30 out. Still, even a perfectly planned world has storms. The truth is,
31 many programs get it wrong. Very wrong. Or, they don't include a Date:
32 header at all. This often forces you to look elsewhere for the date,
33 and hoping to find something.
35 For this reason, the tedious process of looking for a valid date has
36 been encapsulated in this software. Further, the process of creating
37 RFC compliant date strings is also found in this software.
39 %description -l pl.UTF-8
40 RFC 2822 definiuje nagłówek Date: (zawierający datę). Określa ten
41 nagłówek jako obowiązkową część listu. Składnia nagłówków daty jest
42 jasno opisana. Mimo to wiele programów źle tworzy ten nagłówek. Bardzo
43 źle. Albo nie dołącza go w ogóle. Zwykle zmusza to do szukania daty
44 gdzieś indziej z nadzieją znalezienia czegoś.
46 Z tego powodu nudny proces poszukiwania poprawnej daty został
47 opakowany w ten pakiet. Co więcej, proces tworzenia łańcuchów daty
48 zgodnych z RFC także można tu znaleźć.
51 %setup -q -n %{pdir}-%{pnam}-%{version}
54 %{__perl} Makefile.PL \
58 %{?with_tests:%{__make} test}
61 rm -rf $RPM_BUILD_ROOT
63 %{__make} pure_install \
64 DESTDIR=$RPM_BUILD_ROOT
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %dir %{perl_vendorlib}/Email/Date
73 %{perl_vendorlib}/Email/Date/*.pm