From b4be4307dbb2a3a710f75e5cabe9727ae926f338 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 08:50:28 +0100 Subject: [PATCH] automatic update by autodist [release 0.81-1mamba;Mon Apr 14 2014] --- README.md | 4 ++ perl-DateTime-Format-Builder.spec | 90 +++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 perl-DateTime-Format-Builder.spec diff --git a/README.md b/README.md index 6742d38..083945e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # perl-DateTime-Format-Builder +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. + diff --git a/perl-DateTime-Format-Builder.spec b/perl-DateTime-Format-Builder.spec new file mode 100644 index 0000000..2fa9cea --- /dev/null +++ b/perl-DateTime-Format-Builder.spec @@ -0,0 +1,90 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-DateTime-Format-Builder +Epoch: 1 +Version: 0.81 +Release: 1mamba +Summary: DateTime::Format::Builder - Create DateTime parser classes and objects +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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/(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 +* Mon Apr 14 2014 Automatic Build System 0.81-1mamba +- automatic update by autodist + +* Fri Feb 08 2013 Automatic Build System 0.80-1mamba +- update to 0.80 + +* Wed Aug 22 2012 Automatic Build System 0.7901-1mamba +- automatic version update by autodist + +* Thu Aug 16 2012 Silvan Calarco 0.80-2mamba +- imported in devel + +* Mon Mar 07 2011 gil 0.80-1mamba +- package created by autospec