# # Conditional build: %bcond_without tests # do not perform "make test" # %define pdir Email %define pnam Date Summary: Email::Date - find and format Date headers Summary(pl.UTF-8): Email::Date - znajdywanie i formatowanie nagłówków Date Name: perl-Email-Date Version: 1.104 Release: 1 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 4df8d2025e24ffc37217b678ec7e4cb3 URL: http://search.cpan.org/dist/Email-Date/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl-Email-Abstract >= 2.10 BuildRequires: perl-Email-Date-Format >= 1.000 BuildRequires: perl-Email-Simple >= 1.9 BuildRequires: perl-Test-Pod >= 1.14 BuildRequires: perl-Test-Pod-Coverage >= 1.08 BuildRequires: perl-Time-Piece >= 1.08 BuildRequires: perl-TimeDate >= 2.27 %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description RFC 2822 defines the Date: header. It declares the header a required part of an email message. The syntax for date headers is clearly laid out. Still, even a perfectly planned world has storms. The truth is, many programs get it wrong. Very wrong. Or, they don't include a Date: header at all. This often forces you to look elsewhere for the date, and hoping to find something. For this reason, the tedious process of looking for a valid date has been encapsulated in this software. Further, the process of creating RFC compliant date strings is also found in this software. %description -l pl.UTF-8 RFC 2822 definiuje nagłówek Date: (zawierający datę). Określa ten nagłówek jako obowiązkową część listu. Składnia nagłówków daty jest jasno opisana. Mimo to wiele programów źle tworzy ten nagłówek. Bardzo źle. Albo nie dołącza go w ogóle. Zwykle zmusza to do szukania daty gdzieś indziej z nadzieją znalezienia czegoś. Z tego powodu nudny proces poszukiwania poprawnej daty został opakowany w ten pakiet. Co więcej, proces tworzenia łańcuchów daty zgodnych z RFC także można tu znaleźć. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes %{perl_vendorlib}/Email/*.pm %{_mandir}/man3/*