|
Chris Weyl |
b1877a4 |
Name: perl-DateTime-Format-Flexible
|
|
Chris Weyl |
dfe4c4e |
Version: 0.09
|
|
|
6a33743 |
Release: 4%{?dist}
|
|
Chris Weyl |
ba411c8 |
# see LICENSE
|
|
Chris Weyl |
ba411c8 |
License: GPL+ or Artistic
|
|
Chris Weyl |
ba411c8 |
Group: Development/Libraries
|
|
Chris Weyl |
ba411c8 |
Summary: Flexibly parse strings and turn them into DateTime objects
|
|
Chris Weyl |
b1877a4 |
Source: http://search.cpan.org/CPAN/authors/id/T/TH/THINC/DateTime-Format-Flexible-%{version}.tar.gz
|
|
Chris Weyl |
ba411c8 |
Url: http://search.cpan.org/dist/DateTime-Format-Flexible
|
|
Chris Weyl |
b1877a4 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Chris Weyl |
ba411c8 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
Chris Weyl |
ba411c8 |
BuildArch: noarch
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
b1877a4 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
Chris Weyl |
ba411c8 |
BuildRequires: perl(DateTime)
|
|
Chris Weyl |
ba411c8 |
BuildRequires: perl(DateTime::Format::Builder) >= 0.74
|
|
Chris Weyl |
ba411c8 |
BuildRequires: perl(Readonly) >= 0.06
|
|
Chris Weyl |
ba411c8 |
BuildRequires: perl(Test::Simple) >= 0.44
|
|
Chris Weyl |
ba411c8 |
BuildRequires: perl(Test::More)
|
|
Chris Weyl |
ba411c8 |
BuildRequires: perl(File::Spec::Functions)
|
|
Chris Weyl |
ba411c8 |
# optional tests...
|
|
Chris Weyl |
ba411c8 |
BuildRequires: perl(Test::Pod)
|
|
Chris Weyl |
ba411c8 |
BuildRequires: perl(Test::Pod::Coverage)
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
b1877a4 |
### auto-added brs!
|
|
Chris Weyl |
b1877a4 |
BuildRequires: perl(DateTime::TimeZone)
|
|
Chris Weyl |
b1877a4 |
|
|
Chris Weyl |
ba411c8 |
%description
|
|
Chris Weyl |
ba411c8 |
If you have ever had to use a program that made you type in the date a
|
|
Chris Weyl |
ba411c8 |
certain way and thought "Why can't the computer just figure out what date I
|
|
Chris Weyl |
ba411c8 |
wanted?", this module is for you.
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
DateTime::Format::Flexible attempts to take any string you give it and
|
|
Chris Weyl |
ba411c8 |
parse it into a DateTime object.
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
The test file tests 2500+ variations of date/time strings. If you can think
|
|
Chris Weyl |
ba411c8 |
of any that I do not cover, please let me know.
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%prep
|
|
Chris Weyl |
ba411c8 |
%setup -q -n DateTime-Format-Flexible-%{version}
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%build
|
|
Chris Weyl |
ba411c8 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
Chris Weyl |
ba411c8 |
make %{?_smp_mflags}
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%install
|
|
Chris Weyl |
ba411c8 |
rm -rf %{buildroot}
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
Chris Weyl |
ba411c8 |
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
Chris Weyl |
ba411c8 |
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%{_fixperms} %{buildroot}/*
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%check
|
|
Chris Weyl |
ba411c8 |
TEST_POD=1 make test
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%clean
|
|
Chris Weyl |
b1877a4 |
rm -rf %{buildroot}
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%files
|
|
Chris Weyl |
ba411c8 |
%defattr(-,root,root,-)
|
|
Chris Weyl |
b1877a4 |
%doc LICENSE README Changes example/
|
|
Chris Weyl |
ba411c8 |
%{perl_vendorlib}/*
|
|
Chris Weyl |
ba411c8 |
%{_mandir}/man3/*.3*
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%changelog
|
|
|
6a33743 |
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.09-4
|
|
|
6a33743 |
- Mass rebuild with perl-5.12.0
|
|
|
6a33743 |
|
|
|
e553af6 |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.09-3
|
|
|
e553af6 |
- rebuild against perl 5.10.1
|
|
|
e553af6 |
|
|
|
929115a |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09-2
|
|
|
929115a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
929115a |
|
|
Chris Weyl |
dfe4c4e |
* Mon Jun 08 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.09-1
|
|
Chris Weyl |
dfe4c4e |
- auto-update to 0.09 (by cpan-spec-update 0.01)
|
|
Chris Weyl |
dfe4c4e |
|
|
Chris Weyl |
b1877a4 |
* Tue May 19 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.08-1
|
|
Chris Weyl |
b1877a4 |
- auto-update to 0.08 (by cpan-spec-update 0.01)
|
|
Chris Weyl |
b1877a4 |
- added a new br on perl(DateTime::TimeZone) (version 0)
|
|
Chris Weyl |
b1877a4 |
|
|
|
253e7fa |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.05-2
|
|
|
253e7fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
253e7fa |
|
|
Chris Weyl |
ba411c8 |
* Wed Jan 07 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.05-1
|
|
Chris Weyl |
ba411c8 |
- brush up for submission
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
* Sun Dec 07 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.05-0.1
|
|
Chris Weyl |
ba411c8 |
- initial RPM packaging
|
|
Chris Weyl |
ba411c8 |
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.6)
|