]> git.pld-linux.org Git - packages/perl-Email-Date.git/blob - perl-Email-Date.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Email-Date.git] / perl-Email-Date.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Email
6 %define pnam    Date
7 Summary:        Email::Date - find and format Date headers
8 Summary(pl.UTF-8):      Email::Date - znajdywanie i formatowanie nagłówków Date
9 Name:           perl-Email-Date
10 Version:        1.104
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  4df8d2025e24ffc37217b678ec7e4cb3
17 URL:            http://search.cpan.org/dist/Email-Date/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Email-Abstract >= 2.10
22 BuildRequires:  perl-Email-Date-Format >= 1.000
23 BuildRequires:  perl-Email-Simple >= 1.9
24 BuildRequires:  perl-Test-Pod >= 1.14
25 BuildRequires:  perl-Test-Pod-Coverage >= 1.08
26 BuildRequires:  perl-Time-Piece >= 1.08
27 BuildRequires:  perl-TimeDate >= 2.27
28 %endif
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 RFC 2822 defines the Date: header. It declares the header a required
34 part of an email message. The syntax for date headers is clearly laid
35 out. Still, even a perfectly planned world has storms. The truth is,
36 many programs get it wrong. Very wrong. Or, they don't include a Date:
37 header at all. This often forces you to look elsewhere for the date,
38 and hoping to find something.
39
40 For this reason, the tedious process of looking for a valid date has
41 been encapsulated in this software. Further, the process of creating
42 RFC compliant date strings is also found in this software.
43
44 %description -l pl.UTF-8
45 RFC 2822 definiuje nagłówek Date: (zawierający datę). Określa ten
46 nagłówek jako obowiązkową część listu. Składnia nagłówków daty jest
47 jasno opisana. Mimo to wiele programów źle tworzy ten nagłówek. Bardzo
48 źle. Albo nie dołącza go w ogóle. Zwykle zmusza to do szukania daty
49 gdzieś indziej z nadzieją znalezienia czegoś.
50
51 Z tego powodu nudny proces poszukiwania poprawnej daty został
52 opakowany w ten pakiet. Co więcej, proces tworzenia łańcuchów daty
53 zgodnych z RFC także można tu znaleźć.
54
55 %prep
56 %setup -q -n %{pdir}-%{pnam}-%{version}
57
58 %build
59 %{__perl} Makefile.PL \
60         INSTALLDIRS=vendor
61 %{__make}
62
63 %{?with_tests:%{__make} test}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %doc Changes
77 %{perl_vendorlib}/Email/*.pm
78 %{_mandir}/man3/*
This page took 0.058217 seconds and 4 git commands to generate.