1 | Name: perl-TimeDate
|
---|
2 | Version: 2.30
|
---|
3 | Epoch: 1
|
---|
4 | Release: 1%{?dist}
|
---|
5 | Summary: A Perl module for time and date manipulation
|
---|
6 | Group: Development/Libraries
|
---|
7 | License: GPL+ or Artistic
|
---|
8 | URL: http://search.cpan.org/dist/TimeDate/
|
---|
9 | Vendor: bww bitwise works GmbH
|
---|
10 | Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz
|
---|
11 | BuildArch: noarch
|
---|
12 | BuildRequires: perl-generators
|
---|
13 | BuildRequires: perl(base)
|
---|
14 | BuildRequires: perl(Carp)
|
---|
15 | BuildRequires: perl(Exporter)
|
---|
16 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
17 | BuildRequires: perl(strict)
|
---|
18 | #BuildRequires: perl(Test::More)
|
---|
19 | BuildRequires: perl(Time::Local)
|
---|
20 | BuildRequires: perl(utf8)
|
---|
21 | BuildRequires: perl(vars)
|
---|
22 | BuildRequires: perl(warnings)
|
---|
23 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
24 |
|
---|
25 | %description
|
---|
26 | This module includes a number of smaller modules suited for
|
---|
27 | manipulation of time and date strings with Perl. In particular, the
|
---|
28 | Date::Format and Date::Parse modules can display and read times and
|
---|
29 | dates in various formats, providing a more reliable interface to
|
---|
30 | textual representations of points in time.
|
---|
31 |
|
---|
32 | %prep
|
---|
33 | %setup -q -n TimeDate-%{version}
|
---|
34 | # ChangeLog is ISO-8859-1 encoded
|
---|
35 | #iconv -f iso-8859-1 -t utf8 < ChangeLog > ChangeLog.utf8
|
---|
36 | #mv ChangeLog.utf8 ChangeLog
|
---|
37 | # Bogus exec permissions on some language modules
|
---|
38 | chmod -x lib/Date/Language/Russian_cp1251.pm
|
---|
39 | chmod -x lib/Date/Language/Russian_koi8r.pm
|
---|
40 | chmod -x lib/Date/Language/Turkish.pm
|
---|
41 |
|
---|
42 | %build
|
---|
43 | perl Makefile.PL INSTALLDIRS=vendor
|
---|
44 | make %{?_smp_mflags}
|
---|
45 | make manifypods
|
---|
46 |
|
---|
47 | %install
|
---|
48 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
---|
49 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
---|
50 | %{_fixperms} $RPM_BUILD_ROOT/*
|
---|
51 |
|
---|
52 | %check
|
---|
53 | #make test
|
---|
54 |
|
---|
55 | %files
|
---|
56 | %doc README ChangeLog
|
---|
57 | %{perl_vendorlib}/Date/
|
---|
58 | %{perl_vendorlib}/Time/
|
---|
59 | %{_mandir}/man3/*.3*
|
---|
60 |
|
---|
61 | %changelog
|
---|
62 | * Mon May 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.30-1
|
---|
63 | - initial version
|
---|