From 569fe7506de7d8e0f457d6e7bffd51514368e9c4 Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Mon, 7 Aug 2006 01:25:39 +0000 Subject: [PATCH] auto-import perl-DateTime-Format-HTTP-0.36-2.fc5 on branch devel from perl-DateTime-Format-HTTP-0.36-2.fc5.src.rpm --- .cvsignore | 1 + perl-DateTime-Format-HTTP.spec | 88 ++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 90 insertions(+) create mode 100644 perl-DateTime-Format-HTTP.spec diff --git a/.cvsignore b/.cvsignore index e69de29..5053a00 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +DateTime-Format-HTTP-0.36.tar.gz diff --git a/perl-DateTime-Format-HTTP.spec b/perl-DateTime-Format-HTTP.spec new file mode 100644 index 0000000..0bd8517 --- /dev/null +++ b/perl-DateTime-Format-HTTP.spec @@ -0,0 +1,88 @@ +# 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-HTTP +Version: 0.36 +Release: 2%{?dist} +Summary: HTTP protocol date conversion routines + +Group: Development/Libraries +License: Artistic or GPL +URL: http://search.cpan.org/dist/DateTime-Format-HTTP +Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-HTTP-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(DateTime) >= 0.17, perl(HTTP::Date) => 1.44 +BuildRequires: perl(Test::More) >= 0.47, perl(Module::Build) +BuildRequires: perl(File::Find::Rule) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# for signature checking +%{?_with_network_tests:BuildRequires: perl(Module::Signature) } + + +%description +This module provides functions that deal with the date formats used by the +HTTP protocol (and then some). + + +%prep +%setup -q -n DateTime-Format-HTTP-%{version} + +# digital signature checking. Not essential, but nice +# +# Note we disable it entirely right now, as the signing key has expired. +# See http://rt.cpan.org/Public/Bug/Display.html?id=17839 +%{?_with_network_tests_BROKEN: cpansign -v } + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +# American English, bitte +mv LICENCE LICENSE + + +%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 +# These will be VERY noisy. Don't Panic. +make test + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc LICENSE AUTHORS Changes COPYING Artistic CREDITS README +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + + +%changelog +* Sun Aug 06 2006 Chris Weyl 0.36-2 +- add missing buildrequires: perl(File::Find::Rule) + +* Fri Aug 04 2006 Chris Weyl 0.36-1 +- Initial spec file for F-E diff --git a/sources b/sources index e69de29..aeb684e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8f40176f012e293743ffbdb42791e40c DateTime-Format-HTTP-0.36.tar.gz