perl-DateTime-Format-HTTP/perl-DateTime-Format-HTTP.spec

88 lines
2.4 KiB
RPMSpec

Name: perl-DateTime-Format-HTTP
Version: 0.38
Release: 1%{?dist}
Summary: HTTP protocol date conversion routines
Group: Development/Libraries
License: GPL+ or Artistic
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(DateTime) >= 0.17
BuildRequires: perl(HTTP::Date) => 1.44
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Module::Build)
BuildRequires: perl(File::Find::Rule)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%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}
%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 ';'
%{_fixperms} %{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 May 17 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.38-1
- auto-update to 0.38 (by cpan-spec-update 0.01)
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.37-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Mar 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.37-3
- rebuild for new perl
* Thu Aug 31 2006 Chris Weyl <cweyl.drew.edu> 0.37-2
- bump for mass rebuild
* Wed Aug 09 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.37-1
- update to 0.37
- nix the SIGNATURE checking bits of the spec file as the author has dropped
it from this version
* Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.36-3
- bump for build & release
* Sun Aug 06 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.36-2
- add missing buildrequires: perl(File::Find::Rule)
* Fri Aug 04 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.36-1
- Initial spec file for F-E