From 19435badf88f2b00b00687d6759aa6af424dcb15 Mon Sep 17 00:00:00 2001 From: Denis Fateyev Date: Fri, 4 Jul 2014 04:20:42 +0600 Subject: [PATCH] perl-Time-ParseDate: initial import (#1067003) --- .gitignore | 1 + perl-Time-ParseDate.spec | 76 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 78 insertions(+) create mode 100644 perl-Time-ParseDate.spec diff --git a/.gitignore b/.gitignore index e69de29..f1a8dc5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Time-ParseDate-2013.1113.tar.gz diff --git a/perl-Time-ParseDate.spec b/perl-Time-ParseDate.spec new file mode 100644 index 0000000..65b95e0 --- /dev/null +++ b/perl-Time-ParseDate.spec @@ -0,0 +1,76 @@ +Name: perl-Time-ParseDate +Version: 2013.1113 +Release: 2%{?dist} +Summary: Perl modules for parsing dates and times +# See https://fedoraproject.org/wiki/Licensing/TPDL +License: TPDL and Public Domain +Group: Development/Libraries +URL: http://search.cpan.org/dist/Time-ParseDate/ + +Source0: http://www.cpan.org/authors/id/M/MU/MUIR/modules/Time-ParseDate-%{version}.tar.gz +%{?el5:BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)} +BuildArch: noarch + +Provides: perl-Time-modules = %{version}-%{release} +Obsoletes: perl-Time-modules <= 2013.0912-3 + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(Exporter) +BuildRequires: perl(integer) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +# Testing +BuildRequires: perl(POSIX) +BuildRequires: perl(Test::More) +BuildRequires: perl(Time::Local) +BuildRequires: perl(warnings) + +%description +Time-ParseDate provides several Perl modules, including Time::CTime, +Time::DaysInMonth, Time::JulianDay, Time::ParseDate, and Time::Timezone. +These modules can be useful for parsing and manipulating dates and times. +There are numerous options to control what is recognized and what is not. + +%prep +%setup -q -n Time-ParseDate-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +%if 0%{?el5} +rm -rf $RPM_BUILD_ROOT +%endif +make pure_install DESTDIR=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%if 0%{?el5} +%clean +rm -rf $RPM_BUILD_ROOT +%endif + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + + +%changelog +* Tue Jul 01 2014 Denis Fateyev - 2013.1113-2 +- Specfile improvements and cleanup + +* Tue Feb 18 2014 Denis Fateyev - 2013.1113-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..a2b6036 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +53c0de57d10af5021f653afe728ba700 Time-ParseDate-2013.1113.tar.gz