|
|
|
Name: perl-DateTime-Format-Pg
|
|
|
|
Version: 0.16002
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: Parse and format PostgreSQL dates and times
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://search.cpan.org/dist/DateTime-Format-Pg/
|
|
|
|
Source0: http://www.cpan.org/authors/id/D/DM/DMAKI/DateTime-Format-Pg-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
BuildRequires: perl(DateTime) >= 0.10
|
|
|
|
BuildRequires: perl(DateTime::Format::Builder) >= 0.72
|
|
|
|
BuildRequires: perl(DateTime::TimeZone) >= 0.05
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
# tests
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
# optional tests
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
|
|
|
|
#Requires: perl(DateTime) >= 0.10
|
|
|
|
#Requires: perl(DateTime::Format::Builder) >= 0.72
|
|
|
|
#Requires: perl(DateTime::TimeZone) >= 0.05
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module understands the formats used by PostgreSQL for its DATE, TIME,
|
|
|
|
TIMESTAMP, and INTERVAL data types. It can be used to parse these formats
|
|
|
|
in order to create DateTime or DateTime::Duration objects, and it can take
|
|
|
|
a DateTime or DateTime::Duration object and produce a string representing
|
|
|
|
it in a format accepted by PostgreSQL.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n DateTime-Format-Pg-%{version}
|
|
|
|
|
|
|
|
cat README | iconv -f iso8859-1 -t utf8 > foo ; mv foo README
|
|
|
|
|
|
|
|
perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*.t
|
|
|
|
|
|
|
|
%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} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes LICENSE README t/
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16002-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Sep 03 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.16002-2
|
|
|
|
- bump
|
|
|
|
|
|
|
|
* Sun Aug 24 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.16002-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.77.
|