diff --git a/README.md b/README.md index e3dd64a..6ee2106 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-DateTime-Format-ISO8601 +Parses almost all ISO8601 date and time formats. +ISO8601 time-intervals will be supported in a later release. + diff --git a/perl-DateTime-Format-ISO8601.spec b/perl-DateTime-Format-ISO8601.spec new file mode 100644 index 0000000..a33b45f --- /dev/null +++ b/perl-DateTime-Format-ISO8601.spec @@ -0,0 +1,65 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-DateTime-Format-ISO8601 +Epoch: 1 +Version: 0.08 +Release: 2mamba +Summary: DateTime::Format::ISO8601 - Parses ISO8601 formats +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/J/JH/JHOBLITT/DateTime-Format-ISO8601-%{version}.tar.gz +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-DateTime +BuildRequires: perl-DateTime-Format-Builder +BuildRequires: perl-devel +BuildRequires: perl-Params-Validate +## AUTOBUILDREQ-END +BuildRequires: perl(Module::Build::Compat) +BuildRequires: perl(Test::Distribution) +BuildRequires: perl(Test::More) +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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.gz +%doc LICENSE +#Changes LICENSE README Todo + +%changelog +* Tue May 14 2013 Silvan Calarco 0.08-2mamba +- bump epoch up + +* Thu Aug 16 2012 Silvan Calarco 0.08-1mamba +- update to 0.08 + +* Mon Mar 07 2011 gil 0.07-1mamba +- package created by autospec