66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
|
%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 <silvan.calarco@mambasoft.it>
|
||
|
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 <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
|