auto-import perl-DateTime-Format-Builder-0.7807-2.fc5 on branch devel from
perl-DateTime-Format-Builder-0.7807-2.fc5.src.rpm
This commit is contained in:
parent
ee6b4aee3e
commit
36116f16c1
@ -0,0 +1 @@
|
|||||||
|
DateTime-Format-Builder-0.7807.tar.gz
|
100
perl-DateTime-Format-Builder.spec
Normal file
100
perl-DateTime-Format-Builder.spec
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
# Note: Some tests for this package are disabled by default, as they
|
||||||
|
# require network access and would thus fail in the buildsys' mock
|
||||||
|
# environments. To build locally while enabling tests, either:
|
||||||
|
#
|
||||||
|
# rpmbuild ... --define '_with_network_tests 1' ...
|
||||||
|
# rpmbuild ... --with network_tests ...
|
||||||
|
# define _with_network_tests 1 in your ~/.rpmmacros
|
||||||
|
#
|
||||||
|
# Note that right now, the only way to run tests locally from a cvs sandbox
|
||||||
|
# "make noarch" type scenario is the third one.
|
||||||
|
|
||||||
|
|
||||||
|
Name: perl-DateTime-Format-Builder
|
||||||
|
Version: 0.7807
|
||||||
|
Release: 2%{?dist}
|
||||||
|
Summary: Create DateTime parser classes and objects
|
||||||
|
|
||||||
|
Group: Development/Libraries
|
||||||
|
License: Artistic or GPL
|
||||||
|
URL: http://search.cpan.org/dist/DateTime-Format-Builder
|
||||||
|
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Builder-%{version}.tar.gz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
## core
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
## non-core
|
||||||
|
BuildRequires: perl(Module::Build), perl(Class::Factory::Util)
|
||||||
|
BuildRequires: perl(DateTime::Format::Strptime), perl(Test::Pod)
|
||||||
|
BuildRequires: perl(Params::Validate) >= 0.73
|
||||||
|
BuildRequires: perl
|
||||||
|
## For extended testing
|
||||||
|
BuildRequires: perl(DateTime::Format::HTTP), perl(DateTime::Format::Mail)
|
||||||
|
BuildRequires: perl(DateTime::Format::IBeat)
|
||||||
|
|
||||||
|
# for signature checking
|
||||||
|
%{?_with_network_tests:BuildRequires: perl(Module::Signature) }
|
||||||
|
|
||||||
|
%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}
|
||||||
|
|
||||||
|
# digital signature checking. Not essential, but nice
|
||||||
|
%{?_with_network_tests: cpansign -v }
|
||||||
|
|
||||||
|
# POD doesn't like E<copy> very much...
|
||||||
|
perl -pi -e 's/E<copy>/(C)/' `find lib/ -type f`
|
||||||
|
|
||||||
|
mv LICENCE LICENSE
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||||
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
||||||
|
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||||
|
chmod -R u+w %{buildroot}/*
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
# signature checked above
|
||||||
|
rm t/00sig.t
|
||||||
|
make test
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc COPYING Artistic Changes AUTHORS CREDITS LICENSE README
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Aug 08 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.7807-2
|
||||||
|
- additional br's
|
||||||
|
|
||||||
|
* Fri Aug 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.7807-1
|
||||||
|
- Initial spec file for F-E
|
Loading…
Reference in New Issue
Block a user