]> git.pld-linux.org Git - packages/perl-DateTime-Format-Mail.git/blob - perl-DateTime-Format-Mail.spec
cf3a9241080fa839c8446b7875959de2f24bec9f
[packages/perl-DateTime-Format-Mail.git] / perl-DateTime-Format-Mail.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    DateTime
7 %define pnam    Format-Mail
8 Summary:        DateTime::Format::Mail - Convert between DateTime and RFC 2822/822 formats
9 Summary(pl.UTF-8):      DateTime::Format::Mail - konwersja między formatami DateTime a RFC 2822/822
10 Name:           perl-DateTime-Format-Mail
11 Version:        0.403
12 Release:        1
13 Epoch:          1
14 # same as perl
15 License:        GPL v1+ or Artistic
16 Group:          Development/Languages/Perl
17 Source0:        http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5:  b34a52d96290c42cf53e8db0a8f16ecd
19 URL:            http://search.cpan.org/dist/DateTime-Format-Mail/
20 BuildRequires:  perl-Module-Build
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 %if %{with tests}
24 BuildRequires:  perl-DateTime
25 BuildRequires:  perl-Params-Validate >= 0.67
26 %endif
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 RFCs 2822 and 822 specify date formats to be used by email. This
32 module parses and emits such dates.
33
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.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
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*
This page took 0.043689 seconds and 2 git commands to generate.