You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
232 lines
7.9 KiB
232 lines
7.9 KiB
3 years ago
|
Name: perl-DateTime-Format-ISO8601
|
||
|
Version: 0.16
|
||
|
Release: 3%{?dist}
|
||
|
# LICENSE, lib/DateTime/Format/ISO8601.pod -> GPL+ or Artistic
|
||
|
License: GPL+ or Artistic
|
||
|
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-interpreter
|
||
|
BuildRequires: perl(Config)
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||
|
BuildRequires: perl(strict)
|
||
|
BuildRequires: perl(warnings)
|
||
|
# Run-time:
|
||
|
BuildRequires: perl(Carp)
|
||
|
BuildRequires: perl(DateTime) >= 1.45
|
||
|
BuildRequires: 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\\(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 NO_PACKLIST=1 NO_PERLLOCAL=1
|
||
|
%{make_build}
|
||
|
|
||
|
%install
|
||
|
%{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
|
||
|
%license LICENSE
|
||
|
%doc CONTRIBUTING.md README.md Changes Todo
|
||
|
%{perl_vendorlib}/*
|
||
|
%{_mandir}/man3/*.3*
|
||
|
|
||
|
%files tests
|
||
|
%{_libexecdir}/%{name}
|
||
|
|
||
|
%changelog
|
||
|
* 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
|
||
|
|
||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-15
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||
|
|
||
|
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-14
|
||
|
- Perl 5.26 rebuild
|
||
|
|
||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-13
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||
|
|
||
|
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-12
|
||
|
- Perl 5.24 rebuild
|
||
|
|
||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.08-11
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||
|
|
||
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-10
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||
|
|
||
|
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-9
|
||
|
- Perl 5.22 rebuild
|
||
|
|
||
|
* Mon Sep 01 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.08-8
|
||
|
- Perl 5.20 rebuild
|
||
|
|
||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-7
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||
|
|
||
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-6
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||
|
|
||
|
* Wed Jul 31 2013 Petr Pisar <ppisar@redhat.com> - 0.08-5
|
||
|
- Perl 5.18 rebuild
|
||
|
|
||
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-4
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||
|
|
||
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-3
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||
|
|
||
|
* Thu Jun 21 2012 Petr Pisar <ppisar@redhat.com> - 0.08-2
|
||
|
- Perl 5.16 rebuild
|
||
|
|
||
|
* Mon Feb 13 2012 Petr Pisar <ppisar@redhat.com> - 0.08-1
|
||
|
- 0.08 bump
|
||
|
|
||
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-8
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||
|
|
||
|
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.07-7
|
||
|
- Perl mass rebuild
|
||
|
|
||
|
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 0.07-6
|
||
|
- Perl mass rebuild
|
||
|
|
||
|
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.07-5
|
||
|
- Perl mass rebuild
|
||
|
|
||
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-4
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||
|
|
||
|
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.07-3
|
||
|
- 661697 rebuild for fixing problems with vendorach/lib
|
||
|
|
||
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.07-2
|
||
|
- Mass rebuild with perl-5.12.0
|
||
|
|
||
|
* Sat Feb 13 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.07-1
|
||
|
- update to 0.07
|
||
|
|
||
|
* Sat Feb 13 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.06-4
|
||
|
- PERL_INSTALL_ROOT => DESTDIR
|
||
|
- add perl_default_filter, _subpackage_tests
|
||
|
|
||
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.06-3
|
||
|
- rebuild against perl 5.10.1
|
||
|
|
||
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-2
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||
|
|
||
|
* Thu Feb 05 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.06-1
|
||
|
- update for submission
|
||
|
|
||
|
* Thu Feb 05 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.06-0
|
||
|
- initial RPM packaging
|
||
|
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
|
||
|
|