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

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