]> git.pld-linux.org Git - packages/perl-Email-Date-Format.git/blob - perl-Email-Date-Format.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Email-Date-Format.git] / perl-Email-Date-Format.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Email
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
10 Version:        1.005
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/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
19 %if %{with tests}
20 BuildRequires:  perl-Test-Pod >= 1.14
21 BuildRequires:  perl-Test-Pod-Coverage >= 1.08
22 %endif
23 BuildRequires:  rpm-perlprov >= 4.1-13
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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.
34
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.
38
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ś.
45
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źć.
49
50 %prep
51 %setup -q -n %{pdir}-%{pnam}-%{version}
52
53 %build
54 %{__perl} Makefile.PL \
55         INSTALLDIRS=vendor
56 %{__make}
57
58 %{?with_tests:%{__make} test}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} pure_install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc Changes README
72 %dir %{perl_vendorlib}/Email/Date
73 %{perl_vendorlib}/Email/Date/*.pm
74 %{_mandir}/man3/*
This page took 0.105889 seconds and 4 git commands to generate.