Compare commits

..

No commits in common. "c9s" and "c8s" have entirely different histories.
c9s ... c8s

5 changed files with 60 additions and 130 deletions

4
.gitignore vendored
View File

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

View File

@ -1 +0,0 @@
d2e450801ab59daeb2052769adb10565dda22d1d DateTime-Format-Builder-0.83.tar.gz

View File

@ -1,6 +0,0 @@
from Config import *
addFilter("spelling-error %description -l en_US parsers -> ")
# RPM and upstream version numbers are different because RPM and perl versioning schemes are different
# We have provides for both, to cover all eventualities
addFilter("useless-provides perl\(DateTime::Format::Builder\)")

View File

@ -1,60 +1,53 @@
%if 0%{?rhel} >= 9
%bcond_with perl_DateTime_Format_Builder_enable_optional_tests
%else
%bcond_without perl_DateTime_Format_Builder_enable_optional_tests
%endif
%global real_version 0.83
# Note: Some tests for this package are disabled by default, as they
# 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
# 0.83 in reality, but rpm can't get it
Version: 0.8300
Release: 5%{?dist}
# 0.80 in reality, but rpm can't get it
Version: 0.8100
Release: 15%{?dist}
Summary: Create DateTime parser classes and objects
Group: Development/Libraries
# examples/W3CDTF.pm: GPL+ or Artistic
# examples/MySQL.pm: GPL+ or Artistic
# lib/DateTime/Format/Builder.pm: Artistic 2.0
# LICENSE: Artistic 2.0 text
License: Artistic 2.0 and (GPL+ or Artistic)
URL: https://metacpan.org/release/DateTime-Format-Builder
Source0: https://cpan.metacpan.org/modules/by-module/DateTime/DateTime-Format-Builder-%{real_version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
URL: http://search.cpan.org/dist/DateTime-Format-Builder
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Builder-%{real_version}.tar.gz
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
## core
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: sed
# Module Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(DateTime) >= 1.00
BuildRequires: perl(DateTime::Format::Strptime) >= 1.04
BuildRequires: perl(Params::Validate) >= 0.72
BuildRequires: perl(parent)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(File::Spec)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More) >= 0.88
# Optional Tests
%if %{with perl_DateTime_Format_Builder_enable_optional_tests}
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(Test::More)
## non-core
BuildRequires: perl(Module::Build)
BuildRequires: perl(Class::ISA)
BuildRequires: perl(Class::Factory::Util)
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::Strptime)
BuildRequires: perl(Params::Validate) >= 0.73
# note -- listed as a BR but _not_ needed with Fedora perl
#BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Test::Pod)
## For extended testing
BuildRequires: perl(DateTime::Format::HTTP)
BuildRequires: perl(DateTime::Format::Mail)
BuildRequires: perl(DateTime::Format::IBeat)
BuildRequires: perl(Devel::Cycle) >= 1.07
BuildRequires: perl(Test::Memory::Cycle)
BuildRequires: perl(Test::Pod) >= 1.00
%endif
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Provides: perl(DateTime::Format::Builder) = %{version}
# Avoid doc-file dependencies from tests
# for signature checking
%{?_with_network_tests:BuildRequires: perl(Module::Signature) }
%{?perl_default_filter}
%description
@ -65,101 +58,47 @@ without writing reams of structural code.
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
to any sub-classes, or for when you need to do something slightly beyond what
to any subclasses, or for when you need to do something slightly beyond what
is expected.
%prep
%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...
perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
# Silence rpmlint
# silence rpmlint
sed -i '1s~^#!.*perl~#!%{__perl}~' t/*.t
%build
perl Makefile.PL INSTALLDIRS=vendor
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} +
%{_fixperms} %{buildroot}/*
%check
make test
%files
%if 0%{?_licensedir:1}
%license LICENSE
%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*
%doc Changes LICENSE README examples/ t/
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.8300-5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.8300-4
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Thu Mar 25 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.8300-3
- Disable optional tests on ELN
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8300-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Aug 10 2020 Paul Howarth <paul@city-fan.org> - 0.8300-1
- Update to 0.83
- Switched to GitHub issues
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8200-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.8200-6
- Perl 5.32 rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8200-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Nov 1 2019 Paul Howarth <paul@city-fan.org> - 0.8200-4
- Fix License: tag to reflect content of actual shipped files, not just what
the LICENSE file says (#1600504, CPAN RT#125832)
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8200-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.8200-2
- Perl 5.30 rebuild
* 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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8100-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.8100-15
- Perl 5.28 rebuild
* Thu Jul 12 2018 Petr Pisar <ppisar@redhat.com> - 0.8100-15
- Correct license tag (bug #1600504)
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8100-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (DateTime-Format-Builder-0.83.tar.gz) = eb0601dce7bc9adb0b4b6df2058b5f126e36738a9fc1e18c6e09ecf2787fbe7cd9b8ae9a5772590d6fa0df271b5a7fde0f3ab6f2be68e182adaac48ca3ae3837
SHA512 (DateTime-Format-Builder-0.81.tar.gz) = 617cf72e900d9bb17fd5c3cfbfa1874bf1c34de144514ea4cabd7b66eb682696b9c9501e66db1073da59c5e8278e6878b893876a1a7f11a9c011dbae44ebdd57