]> git.pld-linux.org Git - packages/perl-DateTime-Format-Mail.git/blob - perl-DateTime-Format-Mail.spec
- macros for perl autodeps
[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 %define pdir    DateTime
6 %define pnam    Format-Mail
7 Summary:        DateTime::Format::Mail - Convert between DateTime and RFC 2822/822 formats
8 Summary(pl.UTF-8):      DateTime::Format::Mail - konwersja między formatami DateTime a RFC 2822/822
9 Name:           perl-DateTime-Format-Mail
10 Version:        0.403
11 Release:        1
12 Epoch:          1
13 # same as perl 5
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  b34a52d96290c42cf53e8db0a8f16ecd
18 URL:            https://metacpan.org/release/DateTime-Format-Mail
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildRequires:  rpmbuild(macros) >= 1.745
22 %if %{with tests}
23 BuildRequires:  perl-DateTime >= 1.04
24 BuildRequires:  perl-Params-Validate >= 0.67
25 BuildRequires:  perl-Test-Simple
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.074378 seconds and 4 git commands to generate.