parent
e456b55ebc
commit
90916d03fd
@ -0,0 +1 @@
|
||||
DateTime-Format-Pg-0.16002.tar.gz
|
@ -0,0 +1 @@
|
||||
perl-DateTime-Format-Pg-0_16002-1_fc9:HEAD:perl-DateTime-Format-Pg-0.16002-1.fc9.src.rpm:1220482480
|
@ -0,0 +1,69 @@
|
||||
Name: perl-DateTime-Format-Pg
|
||||
Version: 0.16002
|
||||
Release: 1%{?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
|
||||
* Sun Aug 24 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.16002-1
|
||||
- Specfile autogenerated by cpanspec 1.77.
|
Loading…
Reference in new issue