blob: 0d2636b0a1be512f3d43f51df9b93723e3f73506 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#
Name: perl-TimeDate
Version: 1.20
Release: 1
Summary: A Perl module for time and date manipulation
License: GPL+ or Artistic
Url: http://search.cpan.org/dist/TimeDate/
Group: Development/Libraries
Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl
BuildArch: noarch
%description
This module includes a number of smaller modules suited for
manipulation of time and date strings with Perl. In particular, the
Date::Format and Date::Parse modules can display and read times and
dates in various formats, providing a more reliable interface to
textual representations of points in time.
%prep
%setup -q -n TimeDate-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
make test
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%files
%defattr(-,root,root,-)
%{perl_vendorlib}/Date/*
%{perl_vendorlib}/Time/*
%doc %{_mandir}/man3/*.3*
|