|
Chris Weyl |
36116f1 |
# Note: Some tests for this package are disabled by default, as they
|
|
Chris Weyl |
36116f1 |
# require network access and would thus fail in the buildsys' mock
|
|
Chris Weyl |
36116f1 |
# environments. To build locally while enabling tests, either:
|
|
Chris Weyl |
36116f1 |
#
|
|
Chris Weyl |
36116f1 |
# rpmbuild ... --define '_with_network_tests 1' ...
|
|
Chris Weyl |
36116f1 |
# rpmbuild ... --with network_tests ...
|
|
Chris Weyl |
36116f1 |
# define _with_network_tests 1 in your ~/.rpmmacros
|
|
Chris Weyl |
36116f1 |
#
|
|
Chris Weyl |
36116f1 |
# Note that right now, the only way to run tests locally from a cvs sandbox
|
|
Chris Weyl |
36116f1 |
# "make noarch" type scenario is the third one.
|
|
Petr Šabata |
afd10fd |
%global real_version 0.81
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
Name: perl-DateTime-Format-Builder
|
|
|
9e23e05 |
# 0.80 in reality, but rpm can't get it
|
|
|
b147ddb |
Version: 0.8100
|
|
|
a795ab4 |
Release: 16%{?dist}
|
|
Chris Weyl |
36116f1 |
Summary: Create DateTime parser classes and objects
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
Group: Development/Libraries
|
|
|
ca9fb42 |
License: Artistic 2.0
|
|
|
7c9037f |
URL: https://metacpan.org/release/DateTime-Format-Builder
|
|
|
7c9037f |
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-Builder-%{real_version}.tar.gz
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
BuildArch: noarch
|
|
Chris Weyl |
36116f1 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
## core
|
|
|
f802f6e |
BuildRequires: perl-generators
|
|
Chris Weyl |
36116f1 |
BuildRequires: perl(Test::More)
|
|
Chris Weyl |
36116f1 |
## non-core
|
|
Chris Weyl |
8e91a1c |
BuildRequires: perl(Module::Build)
|
|
|
9e23e05 |
BuildRequires: perl(Class::ISA)
|
|
Chris Weyl |
8e91a1c |
BuildRequires: perl(Class::Factory::Util)
|
|
Chris Weyl |
8e91a1c |
BuildRequires: perl(DateTime)
|
|
Chris Weyl |
8e91a1c |
BuildRequires: perl(DateTime::Format::Strptime)
|
|
Chris Weyl |
36116f1 |
BuildRequires: perl(Params::Validate) >= 0.73
|
|
Chris Weyl |
8e91a1c |
# note -- listed as a BR but _not_ needed with Fedora perl
|
|
Chris Weyl |
8e91a1c |
#BuildRequires: perl(Task::Weaken)
|
|
Chris Weyl |
8e91a1c |
BuildRequires: perl(Test::Pod)
|
|
Chris Weyl |
36116f1 |
## For extended testing
|
|
Chris Weyl |
8e91a1c |
BuildRequires: perl(DateTime::Format::HTTP)
|
|
Chris Weyl |
8e91a1c |
BuildRequires: perl(DateTime::Format::Mail)
|
|
Chris Weyl |
36116f1 |
BuildRequires: perl(DateTime::Format::IBeat)
|
|
|
7defefd |
Provides: perl(DateTime::Format::Builder) = %{version}
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
# for signature checking
|
|
Chris Weyl |
36116f1 |
%{?_with_network_tests:BuildRequires: perl(Module::Signature) }
|
|
Chris Weyl |
36116f1 |
|
|
|
e3eb641 |
%{?perl_default_filter}
|
|
|
e3eb641 |
|
|
Chris Weyl |
36116f1 |
%description
|
|
Chris Weyl |
36116f1 |
DateTime::Format::Builder creates DateTime parsers. Many string formats of
|
|
Chris Weyl |
36116f1 |
dates and times are simple and just require a basic regular expression to
|
|
Chris Weyl |
36116f1 |
extract the relevant information. Builder provides a simple way to do this
|
|
Chris Weyl |
36116f1 |
without writing reams of structural code.
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
Builder provides a number of methods, most of which you'll never need, or at
|
|
Chris Weyl |
36116f1 |
least rarely need. They're provided more for exposing of the module's innards
|
|
Chris Weyl |
36116f1 |
to any subclasses, or for when you need to do something slightly beyond what
|
|
Chris Weyl |
36116f1 |
is expected.
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
%prep
|
|
|
9e23e05 |
%setup -q -n DateTime-Format-Builder-%{real_version}
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
# digital signature checking. Not essential, but nice
|
|
Chris Weyl |
36116f1 |
%{?_with_network_tests: cpansign -v }
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
# POD doesn't like E<copy> very much...
|
|
Chris Weyl |
36116f1 |
perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
|
|
Chris Weyl |
36116f1 |
|
|
|
373b391 |
# silence rpmlint
|
|
|
373b391 |
sed -i '1s~^#!.*perl~#!%{__perl}~' t/*.t
|
|
Chris Weyl |
6157101 |
|
|
Chris Weyl |
36116f1 |
%build
|
|
Chris Weyl |
36116f1 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
Chris Weyl |
36116f1 |
make %{?_smp_mflags}
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
%install
|
|
Chris Weyl |
36116f1 |
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
Chris Weyl |
8e91a1c |
find %{buildroot} -type f -name .packlist -exec rm -f {} +
|
|
Chris Weyl |
8e91a1c |
|
|
Chris Weyl |
8e91a1c |
%{_fixperms} %{buildroot}/*
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
%check
|
|
Chris Weyl |
36116f1 |
make test
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
%files
|
|
|
b147ddb |
%doc Changes LICENSE README examples/ t/
|
|
Chris Weyl |
36116f1 |
%{perl_vendorlib}/*
|
|
Chris Weyl |
36116f1 |
%{_mandir}/man3/*.3*
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
%changelog
|
|
|
a795ab4 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8100-16
|
|
|
a795ab4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
a795ab4 |
|
|
|
5762d9b |
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.8100-15
|
|
|
5762d9b |
- Perl 5.28 rebuild
|
|
|
5762d9b |
|
|
|
97a23e8 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8100-14
|
|
|
97a23e8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
97a23e8 |
|
|
|
5040bb4 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8100-13
|
|
|
5040bb4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
5040bb4 |
|
|
|
9419709 |
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.8100-12
|
|
|
9419709 |
- Perl 5.26 rebuild
|
|
|
9419709 |
|
|
|
014ee95 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8100-11
|
|
|
014ee95 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
014ee95 |
|
|
|
3757720 |
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.8100-10
|
|
|
3757720 |
- Perl 5.24 rebuild
|
|
|
3757720 |
|
|
|
17659da |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8100-9
|
|
|
17659da |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
17659da |
|
|
|
4c45693 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8100-8
|
|
|
4c45693 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
4c45693 |
|
|
|
a0bfd97 |
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.8100-7
|
|
|
a0bfd97 |
- Perl 5.22 rebuild
|
|
|
a0bfd97 |
|
|
|
44e115a |
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.8100-6
|
|
|
44e115a |
- Perl 5.20 rebuild
|
|
|
44e115a |
|
|
|
c638755 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8100-5
|
|
|
c638755 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
c638755 |
|
|
|
2c84e83 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8100-4
|
|
|
2c84e83 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
2c84e83 |
|
|
|
0a5745f |
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 0.8100-3
|
|
|
0a5745f |
- Perl 5.18 rebuild
|
|
|
0a5745f |
|
|
|
ca9fb42 |
* Fri Apr 05 2013 Iain Arnell <iarnell@gmail.com> 0.8100-2
|
|
|
ca9fb42 |
- license change from "same as perl" to Artistic 2.0
|
|
|
ca9fb42 |
|
|
|
b147ddb |
* Fri Apr 05 2013 Iain Arnell <iarnell@gmail.com> 0.8100-1
|
|
|
b147ddb |
- update to latest upstream version
|
|
|
9fb35ee |
- drop dependency filtering
|
|
|
b147ddb |
|
|
|
a42f2e7 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8000-11
|
|
|
a42f2e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
a42f2e7 |
|
|
|
05e1024 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8000-10
|
|
|
05e1024 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
05e1024 |
|
|
|
669de23 |
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 0.8000-9
|
|
|
669de23 |
- Perl 5.16 rebuild
|
|
|
669de23 |
|
|
|
696f8b6 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8000-8
|
|
|
696f8b6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
696f8b6 |
|
|
Petr Sabata |
b18aa18 |
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.8000-7
|
|
Petr Sabata |
b18aa18 |
- Perl mass rebuild
|
|
Petr Sabata |
b18aa18 |
|
|
Petr Sabata |
8a1ee7c |
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.8000-6
|
|
Petr Sabata |
8a1ee7c |
- Perl mass rebuild
|
|
Petr Sabata |
8a1ee7c |
|
|
|
821363d |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8000-5
|
|
|
821363d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
821363d |
|
|
|
5cb40bb |
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.8000-4
|
|
|
5cb40bb |
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
5cb40bb |
|
|
|
e3eb641 |
* Sun Dec 12 2010 Iain Arnell <iarnell@gmail.com> 0.8000-3
|
|
|
e3eb641 |
- use perl_default_filter
|
|
|
e3eb641 |
- clean up spec for modern rpmbuild
|
|
|
e3eb641 |
|
|
|
7defefd |
* Fri May 14 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.8000-2
|
|
|
7defefd |
- add provides with rpm version for other packages
|
|
|
7defefd |
|
|
|
9e23e05 |
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.8000-1
|
|
|
77a44d7 |
- Mass rebuild with perl-5.12.0
|
|
|
77a44d7 |
|
|
|
f017000 |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.7901-5
|
|
|
f017000 |
- rebuild against perl 5.10.1
|
|
|
f017000 |
|
|
|
d45cf73 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7901-4
|
|
|
d45cf73 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
d45cf73 |
|
|
|
5e20031 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7901-3
|
|
|
5e20031 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
5e20031 |
|
|
|
538c792 |
* Tue Mar 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.7901-2
|
|
|
538c792 |
- rebuild for new perl
|
|
|
538c792 |
|
|
Chris Weyl |
8e91a1c |
* Sat Jan 26 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.7901-1
|
|
Chris Weyl |
8e91a1c |
- update to 0.7901
|
|
Chris Weyl |
8e91a1c |
- additional docs
|
|
Chris Weyl |
8e91a1c |
- some spec rework
|
|
Chris Weyl |
8e91a1c |
|
|
Chris Weyl |
8e91a1c |
* Thu Aug 31 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.7807-4
|
|
Chris Weyl |
66ffd9e |
- bump for mass rebuild
|
|
Chris Weyl |
66ffd9e |
|
|
Chris Weyl |
6157101 |
* Tue Aug 08 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.7807-3
|
|
Chris Weyl |
6157101 |
- bump for release & build, not in that order
|
|
Chris Weyl |
6157101 |
|
|
Chris Weyl |
36116f1 |
* Tue Aug 08 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.7807-2
|
|
Chris Weyl |
36116f1 |
- additional br's
|
|
Chris Weyl |
36116f1 |
|
|
Chris Weyl |
36116f1 |
* Fri Aug 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.7807-1
|
|
Chris Weyl |
36116f1 |
- Initial spec file for F-E
|