Update to 0.82

- New upstream release 0.82
  - Removed use of Class::Factory::Util, which isn't really needed
- Package new upstream CODE_OF_CONDUCT.md and CONTRIBUTING.md
- Use %license where possible
- Make %files list more explicit
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Simplify find command using -delete
This commit is contained in:
Paul Howarth 2019-03-04 12:13:46 +00:00
parent 3d764cb683
commit ee7ac591fe
4 changed files with 67 additions and 54 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
DateTime-Format-Builder-0.80.tar.gz DateTime-Format-Builder-0.80.tar.gz
/DateTime-Format-Builder-0.81.tar.gz /DateTime-Format-Builder-0.81.tar.gz
/DateTime-Format-Builder-0.82.tar.gz

View File

@ -0,0 +1,2 @@
from Config import *
addFilter("spelling-error %description -l en_US parsers -> ")

View File

@ -1,50 +1,48 @@
# Note: Some tests for this package are disabled by default, as they %global real_version 0.82
# require network access and would thus fail in the buildsys' mock
# environments. To build locally while enabling tests, either:
#
# rpmbuild ... --define '_with_network_tests 1' ...
# rpmbuild ... --with network_tests ...
# define _with_network_tests 1 in your ~/.rpmmacros
#
# Note that right now, the only way to run tests locally from a cvs sandbox
# "make noarch" type scenario is the third one.
%global real_version 0.81
Name: perl-DateTime-Format-Builder Name: perl-DateTime-Format-Builder
# 0.80 in reality, but rpm can't get it # 0.82 in reality, but rpm can't get it
Version: 0.8100 Version: 0.8200
Release: 17%{?dist} Release: 1%{?dist}
Summary: Create DateTime parser classes and objects Summary: Create DateTime parser classes and objects
License: Artistic 2.0 License: Artistic 2.0
URL: https://metacpan.org/release/DateTime-Format-Builder URL: https://metacpan.org/release/DateTime-Format-Builder
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-Builder-%{real_version}.tar.gz Source0: https://cpan.metacpan.org/modules/by-module/DateTime/DateTime-Format-Builder-%{real_version}.tar.gz
BuildArch: noarch BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # Module Build
BuildRequires: coreutils
## core BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(Test::More) BuildRequires: perl-interpreter
## non-core BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Build) BuildRequires: sed
BuildRequires: perl(Class::ISA) # Module Runtime
BuildRequires: perl(Class::Factory::Util) BuildRequires: perl(Carp)
BuildRequires: perl(DateTime) BuildRequires: perl(DateTime) >= 1.00
BuildRequires: perl(DateTime::Format::Strptime) BuildRequires: perl(DateTime::Format::Strptime) >= 1.04
BuildRequires: perl(Params::Validate) >= 0.73 BuildRequires: perl(Params::Validate) >= 0.72
# note -- listed as a BR but _not_ needed with Fedora perl BuildRequires: perl(parent)
#BuildRequires: perl(Task::Weaken) BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Pod) BuildRequires: perl(strict)
## For extended testing BuildRequires: perl(vars)
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(File::Spec)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More) >= 0.88
# Optional Tests
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(DateTime::Format::HTTP) BuildRequires: perl(DateTime::Format::HTTP)
BuildRequires: perl(DateTime::Format::Mail) BuildRequires: perl(DateTime::Format::Mail)
BuildRequires: perl(DateTime::Format::IBeat) BuildRequires: perl(DateTime::Format::IBeat)
BuildRequires: perl(Devel::Cycle) >= 1.07
BuildRequires: perl(Test::Memory::Cycle)
BuildRequires: perl(Test::Pod) >= 1.00
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Provides: perl(DateTime::Format::Builder) = %{version} Provides: perl(DateTime::Format::Builder) = %{version}
# for signature checking
%{?_with_network_tests:BuildRequires: perl(Module::Signature) }
%{?perl_default_filter} %{?perl_default_filter}
%description %description
@ -55,16 +53,12 @@ without writing reams of structural code.
Builder provides a number of methods, most of which you'll never need, or at Builder provides a number of methods, most of which you'll never need, or at
least rarely need. They're provided more for exposing of the module's innards least rarely need. They're provided more for exposing of the module's innards
to any subclasses, or for when you need to do something slightly beyond what to any sub-classes, or for when you need to do something slightly beyond what
is expected. is expected.
%prep %prep
%setup -q -n DateTime-Format-Builder-%{real_version} %setup -q -n DateTime-Format-Builder-%{real_version}
# digital signature checking. Not essential, but nice
%{?_with_network_tests: cpansign -v }
# POD doesn't like E<copy> very much... # POD doesn't like E<copy> very much...
perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f` perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
@ -72,28 +66,44 @@ perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
sed -i '1s~^#!.*perl~#!%{__perl}~' t/*.t sed -i '1s~^#!.*perl~#!%{__perl}~' t/*.t
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make pure_install PERL_INSTALL_ROOT=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} + find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
%{_fixperms} %{buildroot}/*
%check %check
make test make test
%files %files
%doc Changes LICENSE README examples/ t/ %if 0%{?_licensedir:1}
%{perl_vendorlib}/* %license LICENSE
%{_mandir}/man3/*.3* %else
%doc LICENSE
%endif
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md examples/ t/
%{perl_vendorlib}/DateTime/
%{_mandir}/man3/DateTime::Format::Builder.3*
%{_mandir}/man3/DateTime::Format::Builder::Parser.3*
%{_mandir}/man3/DateTime::Format::Builder::Parser::Dispatch.3*
%{_mandir}/man3/DateTime::Format::Builder::Parser::Quick.3*
%{_mandir}/man3/DateTime::Format::Builder::Parser::Regex.3*
%{_mandir}/man3/DateTime::Format::Builder::Parser::Strptime.3*
%{_mandir}/man3/DateTime::Format::Builder::Parser::generic.3*
%{_mandir}/man3/DateTime::Format::Builder::Tutorial.3*
%changelog %changelog
* Mon Mar 4 2019 Paul Howarth <paul@city-fan.org> - 0.8200-1
- Update to 0.82
- Removed use of Class::Factory::Util, which isn't really needed
- Package new upstream CODE_OF_CONDUCT.md and CONTRIBUTING.md
- Use %%license where possible
- Make %%files list more explicit
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Simplify find command using -delete
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8100-17 * Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8100-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

View File

@ -1 +1 @@
21d950a9425c0173d6191697bf9dc4dc DateTime-Format-Builder-0.81.tar.gz SHA512 (DateTime-Format-Builder-0.82.tar.gz) = e89becd9875f84df8f83ea2081bf6b08cad4a62af6f8d193ce6735ae8442881ca826e68c894879d3c5e90d1fcc60b7b5fa5ba4b7f9dbba92a4c2e26fc54dca1e