2017-12-08 15:16:27 +00:00
|
|
|
# Run optional test
|
2018-04-05 09:54:29 +00:00
|
|
|
%if ! (0%{?rhel})
|
2017-12-08 15:16:27 +00:00
|
|
|
%bcond_without perl_Date_ISO8601_enables_optional_test
|
2018-04-05 09:54:29 +00:00
|
|
|
%else
|
|
|
|
%bcond_with perl_Date_ISO8601_enables_optional_test
|
|
|
|
%endif
|
2017-12-08 15:16:27 +00:00
|
|
|
|
2011-08-16 15:21:51 +00:00
|
|
|
Name: perl-Date-ISO8601
|
2017-07-28 11:09:34 +00:00
|
|
|
Version: 0.005
|
2019-05-31 04:56:00 +00:00
|
|
|
Release: 6%{?dist}
|
2011-08-16 15:21:51 +00:00
|
|
|
Summary: Three ISO 8601 numerical calendars
|
|
|
|
License: GPL+ or Artistic
|
2018-06-04 12:25:10 +00:00
|
|
|
URL: https://metacpan.org/release/Date-ISO8601
|
|
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Date/Date-ISO8601-%{version}.tar.gz
|
2011-08-16 15:21:51 +00:00
|
|
|
BuildArch: noarch
|
2017-07-28 11:09:34 +00:00
|
|
|
# Module Build
|
|
|
|
BuildRequires: coreutils
|
2016-06-24 08:07:11 +00:00
|
|
|
BuildRequires: perl-generators
|
2017-07-28 11:09:34 +00:00
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
# Module Runtime
|
2011-08-16 15:21:51 +00:00
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(constant)
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
BuildRequires: perl(integer)
|
|
|
|
BuildRequires: perl(parent)
|
|
|
|
BuildRequires: perl(strict)
|
2017-07-28 11:09:34 +00:00
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
# Test Suite
|
2011-08-16 15:21:51 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
2017-12-08 15:16:27 +00:00
|
|
|
%if %{with perl_Date_ISO8601_enables_optional_test}
|
2017-07-28 11:09:34 +00:00
|
|
|
# Optional Tests
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
2011-08-16 15:21:51 +00:00
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
2017-12-08 15:16:27 +00:00
|
|
|
%endif
|
2017-07-28 11:09:34 +00:00
|
|
|
# Dependencies
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
2011-08-16 15:21:51 +00:00
|
|
|
Requires: perl(Exporter)
|
|
|
|
|
|
|
|
%description
|
|
|
|
The international standard ISO 8601 "Data elements and interchange formats
|
|
|
|
- Information interchange - Representation of dates and times" defines
|
|
|
|
three distinct calendars by which days can be labeled. It also defines
|
|
|
|
textual formats for the representation of dates in these calendars. This
|
|
|
|
module provides functions to convert dates between these three calendars
|
|
|
|
and Chronological Julian Day Numbers, which is a suitable format to do
|
|
|
|
arithmetic with. It also supplies functions that describe the shape of
|
|
|
|
these calendars, to assist in calendrical calculations. It also supplies
|
|
|
|
functions to represent dates textually in the ISO 8601 formats. ISO 8601
|
|
|
|
also covers time of day and time periods, but this module does nothing
|
|
|
|
relating to those parts of the standard; this is only about labeling days.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Date-ISO8601-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-07-28 11:09:34 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
2011-08-16 15:21:51 +00:00
|
|
|
./Build
|
|
|
|
|
|
|
|
%install
|
2017-07-28 11:09:34 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
|
|
%{_fixperms} -c %{buildroot}
|
2011-08-16 15:21:51 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc Changes README
|
2017-07-28 11:09:34 +00:00
|
|
|
%{perl_vendorlib}/Date/
|
|
|
|
%{_mandir}/man3/Date::ISO8601.3*
|
2011-08-16 15:21:51 +00:00
|
|
|
|
|
|
|
%changelog
|
2019-05-31 04:56:00 +00:00
|
|
|
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.005-6
|
|
|
|
- Perl 5.30 rebuild
|
|
|
|
|
2019-02-01 19:57:50 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.005-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-07-13 16:52:03 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.005-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-28 07:14:19 +00:00
|
|
|
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.005-3
|
|
|
|
- Perl 5.28 rebuild
|
|
|
|
|
2018-02-08 20:24:42 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.005-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-28 11:09:34 +00:00
|
|
|
* Fri Jul 28 2017 Paul Howarth <paul@city-fan.org> - 0.005-1
|
|
|
|
- Update to 0.005
|
|
|
|
- No longer include a Makefile.PL in the distribution
|
|
|
|
- In documentation, use four-column indentation for all verbatim material
|
|
|
|
- In META.{yml,json}, point to public bug tracker
|
|
|
|
- Convert .cvsignore to .gitignore
|
|
|
|
- Classify buildreqs by usage
|
|
|
|
- Don't need to remote empty directories from the buildroot
|
|
|
|
- Make %%files list more explicit
|
|
|
|
- Drop legacy Group: tag
|
|
|
|
|
2017-07-27 03:28:17 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.004-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-04 23:45:14 +00:00
|
|
|
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.004-16
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
2017-02-11 02:36:32 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.004-15
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-05-15 13:36:18 +00:00
|
|
|
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.004-14
|
|
|
|
- Perl 5.24 rebuild
|
|
|
|
|
2016-02-04 13:11:58 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.004-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-06-18 02:32:17 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.004-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-05 12:49:04 +00:00
|
|
|
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.004-11
|
|
|
|
- Perl 5.22 rebuild
|
|
|
|
|
2014-08-27 23:23:01 +00:00
|
|
|
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.004-10
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
2014-06-07 03:04:23 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.004-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-03 19:41:26 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.004-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-20 13:21:32 +00:00
|
|
|
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 0.004-7
|
|
|
|
- Perl 5.18 rebuild
|
|
|
|
|
2013-02-14 11:47:21 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.004-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-20 14:26:56 +00:00
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.004-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-12 16:09:37 +00:00
|
|
|
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.004-4
|
|
|
|
- Perl 5.16 rebuild
|
|
|
|
|
2012-01-13 13:21:11 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.004-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-08-16 15:22:16 +00:00
|
|
|
* Tue Aug 16 2011 Iain Arnell <iarnell@gmail.com> 0.004-2
|
|
|
|
- drop explicit BR perl >= 0:5.006
|
|
|
|
|
2011-08-16 15:21:51 +00:00
|
|
|
* Thu Aug 11 2011 Iain Arnell <iarnell@gmail.com> 0.004-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|