Compare commits

...

No commits in common. 'c8' and 'c9' have entirely different histories.
c8 ... c9

2
.gitignore vendored

@ -1 +1 @@
SOURCES/DateTime-Format-ISO8601-0.08.tar.gz
SOURCES/DateTime-Format-ISO8601-0.16.tar.gz

@ -1 +1 @@
8ce5223900989394197b5dbae615d1545bb5a4d3 SOURCES/DateTime-Format-ISO8601-0.08.tar.gz
3200c98c2a41d4dc72ad52862ceb11faab836fbb SOURCES/DateTime-Format-ISO8601-0.16.tar.gz

@ -1,71 +1,144 @@
# Run optional test
%if ! (0%{?rhel})
%bcond_without perl_DateTime_Format_ISO8601_enables_optional_test
%else
%bcond_with perl_DateTime_Format_ISO8601_enables_optional_test
%endif
Name: perl-DateTime-Format-ISO8601
Version: 0.08
Release: 17%{?dist}
Version: 0.16
Release: 3%{?dist}
# LICENSE, lib/DateTime/Format/ISO8601.pod -> GPL+ or Artistic
License: GPL+ or Artistic
Group: Development/Libraries
Summary: Parses ISO8601 formats
Url: http://search.cpan.org/dist/DateTime-Format-ISO8601
Source: http://search.cpan.org/CPAN/authors/id/J/JH/JHOBLITT/DateTime-Format-ISO8601-%{version}.tar.gz
Summary: Parses ISO8601 date-time formats
Url: https://metacpan.org/release/DateTime-Format-ISO8601
Source: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-ISO8601-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(Module::Build::Compat) >= 0.02
# Run-time
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(Carp)
BuildRequires: perl(DateTime) >= 0.18
BuildRequires: perl(DateTime) >= 1.45
BuildRequires: perl(DateTime::Format::Builder) >= 0.77
BuildRequires: perl(Params::Validate)
# Tests
BuildRequires: perl(lib)
BuildRequires: perl(Test::More)
# Optional tests
%if %{with perl_DateTime_Format_ISO8601_enables_optional_test}
BuildRequires: perl(File::Find::Rule)
BuildRequires: perl(Test::Distribution)
BuildRequires: perl(Test::Pod) >= 0.95
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(DateTime) >= 0.18
Requires: perl(DateTime::Format::Builder) >= 0.77
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(Params::ValidationCompiler) >= 0.26
BuildRequires: perl(parent)
BuildRequires: perl(Specio) >= 0.18
BuildRequires: perl(Specio::Declare)
BuildRequires: perl(Specio::Exporter)
BuildRequires: perl(Specio::Library::Builtins)
# Tests:
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::More) >= 1.302015
BuildRequires: perl(Test2::V0)
# Optional tests:
# CPAN::Meta not helpful
# CPAN::Meta::Prereqs not helpful
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(DateTime(::Format::Builder)?\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Test::More\\)$
%description
Parses almost all ISO8601 date and time formats. ISO8601 time-intervals
will be supported in a later release.
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
Requires: perl(Test::More) >= 1.302015
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n DateTime-Format-ISO8601-%{version}
# Help file to recognise the Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
chmod +x "$F"
done
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{make_install}
# Install tests
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
cp -a t %{buildroot}/%{_libexecdir}/%{name}
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
unset AUTHOR_TESTING
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
%{_fixperms} %{buildroot}/*
%check
unset AUTHOR_TESTING
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test
%files
%doc README Changes LICENSE Todo
%license LICENSE
%doc CONTRIBUTING.md README.md Changes Todo
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%files tests
%{_libexecdir}/%{name}
%changelog
* Thu Jul 19 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-17
- Do not run optional test on RHEL
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.16-3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.16-2
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Mon Feb 15 2021 Petr Pisar <ppisar@redhat.com> - 0.16-1
- 0.16 bump
- Package tests
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Oct 26 2020 Petr Pisar <ppisar@redhat.com> - 0.15-1
- 0.15 bump
* Tue Aug 18 2020 Petr Pisar <ppisar@redhat.com> - 0.14-1
- 0.14 bump
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-24
- Perl 5.32 rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-21
- Perl 5.30 rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 19 2018 Petr Pisar <ppisar@redhat.com> - 0.08-19
- Modernize spec file
- Build using Module::Build
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-17
- Perl 5.28 rebuild
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

Loading…
Cancel
Save