source: spec/trunk/SPECS/perl-TimeDate.spec

Last change on this file was 1134, checked in by Silvan Scherrer, 8 years ago

spec: perl-TimeDate: Release version 2.30-1.

File size: 2.0 KB
Line 
1Name: perl-TimeDate
2Version: 2.30
3Epoch: 1
4Release: 1%{?dist}
5Summary: A Perl module for time and date manipulation
6Group: Development/Libraries
7License: GPL+ or Artistic
8URL: http://search.cpan.org/dist/TimeDate/
9Vendor: bww bitwise works GmbH
10Source0: http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz
11BuildArch: noarch
12BuildRequires: perl-generators
13BuildRequires: perl(base)
14BuildRequires: perl(Carp)
15BuildRequires: perl(Exporter)
16BuildRequires: perl(ExtUtils::MakeMaker)
17BuildRequires: perl(strict)
18#BuildRequires: perl(Test::More)
19BuildRequires: perl(Time::Local)
20BuildRequires: perl(utf8)
21BuildRequires: perl(vars)
22BuildRequires: perl(warnings)
23Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
24
25%description
26This module includes a number of smaller modules suited for
27manipulation of time and date strings with Perl. In particular, the
28Date::Format and Date::Parse modules can display and read times and
29dates in various formats, providing a more reliable interface to
30textual 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
38chmod -x lib/Date/Language/Russian_cp1251.pm
39chmod -x lib/Date/Language/Russian_koi8r.pm
40chmod -x lib/Date/Language/Turkish.pm
41
42%build
43perl Makefile.PL INSTALLDIRS=vendor
44make %{?_smp_mflags}
45make manifypods
46
47%install
48make pure_install DESTDIR=$RPM_BUILD_ROOT
49find $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
Note: See TracBrowser for help on using the repository browser.