Blame SPECS/perl-DateTime-Format-Builder.spec

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