perl-DateTime-Format-ISO8601/perl-DateTime-Format-ISO8601.spec

70 lines
2.0 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-DateTime-Format-ISO8601
Epoch: 1
Version: 0.16
Release: 1mamba
Summary: DateTime::Format::ISO8601 - Parses ISO8601 formats
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-ISO8601-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-DateTime
BuildRequires: perl-DateTime-Format-Builder
BuildRequires: perl-Params-ValidationCompiler
BuildRequires: perl-Specio
BuildRequires: perl-devel
BuildRequires: perl-namespace-autoclean
## 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
%{_mandir}/man3/*.3pm*
%doc LICENSE
#Changes LICENSE README Todo
%changelog
* Sat Mar 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16-1mamba
- update to 0.16
* 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