2024-01-06 08:50:28 +01:00
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name : perl-DateTime-Format-Builder
Epoch : 1
2024-01-06 08:50:28 +01:00
Version : 0.82
2024-01-06 08:50:28 +01:00
Release : 1mamba
Summary : DateTime::Format::Builder - Create DateTime parser classes and objects
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/D/DR/DROLSKY/DateTime-Format-Builder-%{version} .tar.gz
License : GPL, Artistic
BuildRequires : perl(Class::Factory::Util)
BuildRequires : perl(Class::ISA)
BuildRequires : perl(DateTime)
BuildRequires : perl(DateTime::Format::HTTP)
BuildRequires : perl(DateTime::Format::IBeat)
BuildRequires : perl(DateTime::Format::Mail)
BuildRequires : perl(DateTime::Format::Strptime)
BuildRequires : perl(Devel::Cycle)
BuildRequires : perl(Module::Build)
BuildRequires : perl(Params::Validate)
BuildRequires : perl(Task::Weaken)
BuildRequires : perl(Test::Memory::Cycle)
BuildRequires : perl(Test::More)
BuildRequires : perl(Test::Pod)
BuildRequires : perl-devel
Requires : perl >= %perl_major_ver
Provides : perl(DateTime::Format::Builder) = 0.8000
BuildRoot : %{_tmppath} /%{name} -%{version} -root
%description
DateTime::Format::Builder creates DateTime parsers. Many string formats of dates and times are simple and just require a basic regular expression to extract the relevant information. Builder provides a simple way to do this without writing reams of structural code.
Builder provides a number of methods, most of which you'll never need, or at least rarely need. They' re provided more for exposing of the module's innards to any subclasses, or for when you need to do something slightly beyond what is expected.
%prep
%setup -q -n DateTime-Format-Builder-%{version}
cat << \EOF > %{name} -req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(DateTime::Format::HTTP)/d;/perl(DateTime::Format::IBeat)/d' \
-e '/perl(DateTime::Format::Mail)/d'
EOF
%define __perl_requires %{_builddir}/DateTime-Format-Builder-%{version}/%{name}-req
chmod +x %{__perl_requires}
perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
%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
#%doc Changes README examples/ t/
%changelog
2024-01-06 08:50:28 +01:00
* Mon Jul 29 2019 Automatic Build System <autodist@mambasoft.it> 0.82-1mamba
- automatic update by autodist
2024-01-06 08:50:28 +01:00
* Mon Apr 14 2014 Automatic Build System <autodist@mambasoft.it> 0.81-1mamba
- automatic update by autodist
* Fri Feb 08 2013 Automatic Build System <autodist@mambasoft.it> 0.80-1mamba
- update to 0.80
* Wed Aug 22 2012 Automatic Build System <autodist@mambasoft.it> 0.7901-1mamba
- automatic version update by autodist
* Thu Aug 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.80-2mamba
- imported in devel
* Mon Mar 07 2011 gil <puntogil@libero.it> 0.80-1mamba
- package created by autospec