2024-01-06 08:50:51 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-DateTime-Format-ISO8601
|
|
|
|
Epoch: 1
|
2024-01-06 08:50:51 +01:00
|
|
|
Version: 0.16
|
|
|
|
Release: 1mamba
|
2024-01-06 08:50:51 +01:00
|
|
|
Summary: DateTime::Format::ISO8601 - Parses ISO8601 formats
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 08:50:51 +01:00
|
|
|
URL: https://www.cpan.org/
|
|
|
|
Source: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-ISO8601-%{version}.tar.gz
|
2024-01-06 08:50:51 +01:00
|
|
|
License: GPL, Artistic
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: perl-DateTime
|
|
|
|
BuildRequires: perl-DateTime-Format-Builder
|
2024-01-06 08:50:51 +01:00
|
|
|
BuildRequires: perl-Params-ValidationCompiler
|
|
|
|
BuildRequires: perl-Specio
|
2024-01-06 08:50:51 +01:00
|
|
|
BuildRequires: perl-devel
|
2024-01-06 08:50:51 +01:00
|
|
|
BuildRequires: perl-namespace-autoclean
|
2024-01-06 08:50:51 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: perl(Module::Build::Compat)
|
|
|
|
BuildRequires: perl(Test::Distribution)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
|
|
|
|
%description
|
|
|
|
Parses almost all ISO8601 date and time formats.
|
|
|
|
ISO8601 time-intervals will be supported in a later release.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n DateTime-Format-ISO8601-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
%make
|
|
|
|
%make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall_perl
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
chmod -R u+w %{buildroot}/*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{perl_vendorlib}/DateTime
|
2024-01-06 08:50:51 +01:00
|
|
|
%{_mandir}/man3/*.3pm*
|
2024-01-06 08:50:51 +01:00
|
|
|
%doc LICENSE
|
|
|
|
#Changes LICENSE README Todo
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 08:50:51 +01:00
|
|
|
* Sat Mar 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16-1mamba
|
|
|
|
- update to 0.16
|
|
|
|
|
2024-01-06 08:50:51 +01:00
|
|
|
* Tue May 14 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.08-2mamba
|
|
|
|
- bump epoch up
|
|
|
|
|
|
|
|
* Thu Aug 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.08-1mamba
|
|
|
|
- update to 0.08
|
|
|
|
|
|
|
|
* Mon Mar 07 2011 gil <puntogil@libero.it> 0.07-1mamba
|
|
|
|
- package created by autospec
|