|
|
2db1811 |
# Execute extra test
|
|
|
2db1811 |
%bcond_with perl_DateTime_Format_Flexible_enables_extra_test
|
|
|
2db1811 |
|
|
Chris Weyl |
b1877a4 |
Name: perl-DateTime-Format-Flexible
|
|
|
7b85f21 |
Version: 0.34
|
|
|
9cc0342 |
Release: 5%{?dist}
|
|
Chris Weyl |
ba411c8 |
License: GPL+ or Artistic
|
|
Chris Weyl |
ba411c8 |
Summary: Flexibly parse strings and turn them into DateTime objects
|
|
|
9a62d24 |
Source: https://cpan.metacpan.org/authors/id/T/TH/THINC/DateTime-Format-Flexible-%{version}.tar.gz
|
|
|
9a62d24 |
Url: https://metacpan.org/release/DateTime-Format-Flexible
|
|
Chris Weyl |
ba411c8 |
BuildArch: noarch
|
|
|
24738b2 |
BuildRequires: coreutils
|
|
|
f704e40 |
BuildRequires: make
|
|
|
5d4baee |
BuildRequires: perl-generators
|
|
|
d34f99b |
BuildRequires: perl-interpreter
|
|
|
77e2258 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
cc84c83 |
# Run-time:
|
|
|
251d6bc |
BuildRequires: perl(base)
|
|
|
251d6bc |
BuildRequires: perl(Carp)
|
|
|
251d6bc |
BuildRequires: perl(DateTime)
|
|
|
251d6bc |
BuildRequires: perl(DateTime::Format::Builder) >= 0.74
|
|
|
251d6bc |
BuildRequires: perl(DateTime::Infinite)
|
|
Chris Weyl |
b1877a4 |
BuildRequires: perl(DateTime::TimeZone)
|
|
|
251d6bc |
BuildRequires: perl(List::MoreUtils)
|
|
|
cc84c83 |
BuildRequires: perl(strict)
|
|
|
cc84c83 |
BuildRequires: perl(warnings)
|
|
|
77e2258 |
# Tests:
|
|
|
251d6bc |
BuildRequires: perl(File::Spec::Functions)
|
|
|
77e2258 |
BuildRequires: perl(lib)
|
|
|
2db1811 |
BuildRequires: perl(Test::Exception)
|
|
|
251d6bc |
BuildRequires: perl(Test::MockTime)
|
|
|
251d6bc |
BuildRequires: perl(Test::More)
|
|
|
2db1811 |
BuildRequires: perl(Test::NoWarnings)
|
|
|
2db1811 |
%if %{with perl_DateTime_Format_Flexible_enables_extra_test}
|
|
|
2db1811 |
# Extra tests:
|
|
|
251d6bc |
BuildRequires: perl(Test::Pod) >= 1.14
|
|
|
251d6bc |
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
2db1811 |
%endif
|
|
|
c336fbc |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Chris Weyl |
b1877a4 |
|
|
|
ef243d6 |
# Remove private modules
|
|
|
ef243d6 |
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(t::lib::helper\\)
|
|
|
ef243d6 |
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(t::lib::helper\\)
|
|
|
ef243d6 |
|
|
Chris Weyl |
ba411c8 |
%description
|
|
|
251d6bc |
If you have ever had to use a program that made you type in the date a certain
|
|
|
251d6bc |
way and thought "Why can't the computer just figure out what date I wanted?",
|
|
|
251d6bc |
this module is for you.
|
|
Chris Weyl |
ba411c8 |
|
|
|
251d6bc |
DateTime::Format::Flexible attempts to take any string you give it and parse
|
|
|
251d6bc |
it into a DateTime object.
|
|
Chris Weyl |
ba411c8 |
|
|
|
ef243d6 |
%package tests
|
|
|
ef243d6 |
Summary: Tests for %{name}
|
|
|
ef243d6 |
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
ef243d6 |
Requires: perl-Test-Harness
|
|
|
ef243d6 |
|
|
|
ef243d6 |
%description tests
|
|
|
ef243d6 |
Tests from %{name}. Execute them
|
|
|
ef243d6 |
with "%{_libexecdir}/%{name}/test".
|
|
|
ef243d6 |
|
|
Chris Weyl |
ba411c8 |
%prep
|
|
Chris Weyl |
ba411c8 |
%setup -q -n DateTime-Format-Flexible-%{version}
|
|
|
ef243d6 |
chmod +x t/*.t
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%build
|
|
|
597e774 |
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
|
|
597e774 |
%{make_build}
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%install
|
|
|
597e774 |
%{make_install}
|
|
Chris Weyl |
ba411c8 |
%{_fixperms} %{buildroot}/*
|
|
|
ef243d6 |
# Install tests
|
|
|
ef243d6 |
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
|
|
ef243d6 |
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
|
|
ef243d6 |
rm %{buildroot}%{_libexecdir}/%{name}/t/{002_pod,003_podcoverage}.t
|
|
|
ef243d6 |
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
|
|
ef243d6 |
#!/bin/sh
|
|
|
ef243d6 |
unset DFF_DEBUG
|
|
|
ef243d6 |
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
|
|
ef243d6 |
EOF
|
|
|
ef243d6 |
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%check
|
|
|
ef243d6 |
unset DFF_DEBUG
|
|
|
2db1811 |
%if %{with perl_DateTime_Format_Flexible_enables_extra_test}
|
|
|
2db1811 |
export TEST_POD=1
|
|
|
2db1811 |
%else
|
|
|
2db1811 |
export TEST_POD=0
|
|
|
2db1811 |
%endif
|
|
|
ef243d6 |
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
|
|
|
2db1811 |
make test
|
|
Chris Weyl |
ba411c8 |
|
|
Chris Weyl |
ba411c8 |
%files
|
|
|
f704e40 |
%license LICENSE
|
|
|
f704e40 |
%doc Changes example/ README TODO
|
|
Chris Weyl |
ba411c8 |
%{perl_vendorlib}/*
|
|
Chris Weyl |
ba411c8 |
%{_mandir}/man3/*.3*
|
|
Chris Weyl |
ba411c8 |
|
|
|
ef243d6 |
%files tests
|
|
|
ef243d6 |
%{_libexecdir}/%{name}
|
|
|
ef243d6 |
|
|
Chris Weyl |
ba411c8 |
%changelog
|
|
|
9cc0342 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-5
|
|
|
9cc0342 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
9cc0342 |
|
|
|
854771d |
* Wed Jun 01 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.34-4
|
|
|
854771d |
- Perl 5.36 rebuild
|
|
|
854771d |
|
|
|
d414be1 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-3
|
|
|
d414be1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
d414be1 |
|
|
|
a9a87c8 |
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-2
|
|
|
a9a87c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
a9a87c8 |
|
|
|
7b85f21 |
* Wed Jul 07 2021 Petr Pisar <ppisar@redhat.com> - 0.34-1
|
|
|
7b85f21 |
- 0.34 bump
|
|
|
7b85f21 |
|
|
|
24738b2 |
* Thu May 27 2021 Petr Pisar <ppisar@redhat.com> - 0.33-1
|
|
|
24738b2 |
- 0.33 bump
|
|
|
ef243d6 |
- Package the tests
|
|
|
24738b2 |
|
|
|
86f6a4f |
* Sat May 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.32-6
|
|
|
86f6a4f |
- Perl 5.34 rebuild
|
|
|
86f6a4f |
|
|
|
942dc8b |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-5
|
|
|
942dc8b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
942dc8b |
|
|
|
9087939 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-4
|
|
|
9087939 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
9087939 |
|
|
|
4ed69bf |
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.32-3
|
|
|
4ed69bf |
- Perl 5.32 rebuild
|
|
|
4ed69bf |
|
|
|
8178c2e |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.32-2
|
|
|
8178c2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
8178c2e |
|
|
|
597e774 |
* Mon Sep 16 2019 Petr Pisar <ppisar@redhat.com> - 0.32-1
|
|
|
597e774 |
- 0.32 bump
|
|
|
597e774 |
|
|
|
3df8f44 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-4
|
|
|
3df8f44 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
3df8f44 |
|
|
|
6ab92ee |
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.31-3
|
|
|
6ab92ee |
- Perl 5.30 rebuild
|
|
|
6ab92ee |
|
|
|
a71d889 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.31-2
|
|
|
a71d889 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
a71d889 |
|
|
|
fa39070 |
* Wed Sep 19 2018 Petr Pisar <ppisar@redhat.com> - 0.31-1
|
|
|
fa39070 |
- 0.31 bump
|
|
|
fa39070 |
|
|
|
6d1ed7c |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-3
|
|
|
6d1ed7c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
6d1ed7c |
|
|
|
6887a62 |
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-2
|
|
|
6887a62 |
- Perl 5.28 rebuild
|
|
|
6887a62 |
|
|
|
2db1811 |
* Mon Mar 12 2018 Petr Pisar <ppisar@redhat.com> - 0.30-1
|
|
|
2db1811 |
- 0.30 bump
|
|
|
2db1811 |
- Disable extra tests by default
|
|
|
2db1811 |
|
|
|
d34f99b |
* Fri Feb 23 2018 Petr Pisar <ppisar@redhat.com> - 0.29-1
|
|
|
d34f99b |
- 0.29 bump
|
|
|
d34f99b |
|
|
|
fa77065 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-4
|
|
|
fa77065 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
fa77065 |
|
|
|
aab5183 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-3
|
|
|
aab5183 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
aab5183 |
|
|
|
7564697 |
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.28-2
|
|
|
7564697 |
- Perl 5.26 rebuild
|
|
|
7564697 |
|
|
|
77e2258 |
* Fri Mar 24 2017 Petr Pisar <ppisar@redhat.com> - 0.28-1
|
|
|
77e2258 |
- 0.28 bump
|
|
|
77e2258 |
|
|
|
f704e40 |
* Mon Mar 06 2017 Petr Pisar <ppisar@redhat.com> - 0.27-1
|
|
|
f704e40 |
- 0.27 bump
|
|
|
f704e40 |
|
|
|
0b8195b |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-8
|
|
|
0b8195b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0b8195b |
|
|
|
0e74b06 |
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-7
|
|
|
0e74b06 |
- Perl 5.24 rebuild
|
|
|
0e74b06 |
|
|
|
faa2219 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-6
|
|
|
faa2219 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
faa2219 |
|
|
|
1e99c4a |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-5
|
|
|
1e99c4a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
1e99c4a |
|
|
|
97d2651 |
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-4
|
|
|
97d2651 |
- Perl 5.22 rebuild
|
|
|
97d2651 |
|
|
|
5342d27 |
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-3
|
|
|
5342d27 |
- Perl 5.20 rebuild
|
|
|
5342d27 |
|
|
|
877c784 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-2
|
|
|
877c784 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
877c784 |
|
|
|
92deb90 |
* Fri Apr 25 2014 Petr Pisar <ppisar@redhat.com> - 0.26-1
|
|
|
92deb90 |
- 0.26 bump
|
|
|
92deb90 |
|
|
|
c31b0fd |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-3
|
|
|
c31b0fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
c31b0fd |
|
|
|
9c88fad |
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 0.25-2
|
|
|
9c88fad |
- Perl 5.18 rebuild
|
|
|
9c88fad |
|
|
|
cc84c83 |
* Tue Mar 05 2013 Petr Pisar <ppisar@redhat.com> - 0.25-1
|
|
|
cc84c83 |
- 0.25 bump
|
|
|
cc84c83 |
|
|
|
6d7f79e |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24-2
|
|
|
6d7f79e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
6d7f79e |
|
|
|
c336fbc |
* Thu Nov 29 2012 Petr Pisar <ppisar@redhat.com> - 0.24-1
|
|
|
c336fbc |
- 0.24 bump
|
|
|
c336fbc |
|
|
|
5077c77 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-3
|
|
|
5077c77 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
5077c77 |
|
|
|
c5a7948 |
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 0.23-2
|
|
|
c5a7948 |
- Perl 5.16 rebuild
|
|
|
c5a7948 |
|
|
|
0423815 |
* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.23-1
|
|
|
0423815 |
- 0.23 bump
|
|
|
0423815 |
|
|
|
c060dde |
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.22-1
|
|
|
c060dde |
- 0.22 bump
|
|
|
c060dde |
|
|
|
251d6bc |
* Wed Jan 25 2012 Petr Pisar <ppisar@redhat.com> - 0.21-1
|
|
|
251d6bc |
- 0.21 bump
|
|
|
251d6bc |
|
|
|
a38d91d |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-6
|
|
|
a38d91d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
a38d91d |
|
|
Petr Sabata |
721ab23 |
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.15-5
|
|
Petr Sabata |
721ab23 |
- Perl mass rebuild
|
|
Petr Sabata |
721ab23 |
|
|
Petr Sabata |
1a9956f |
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 0.15-4
|
|
Petr Sabata |
1a9956f |
- Perl mass rebuild
|
|
Petr Sabata |
1a9956f |
|
|
|
9079d69 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-3
|
|
|
9079d69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
9079d69 |
|
|
|
58a0c99 |
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.15-2
|
|
|
58a0c99 |
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
58a0c99 |
|
|
|
04a6814 |
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.15-1
|
|
|
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)
|