Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 1ff1beacf7bc52cba13c7c19f55aab7f > files > 2

perl-Data-FormValidator-Constraints-DateTime-1.11-1.fc14.src.rpm

Name:           perl-Data-FormValidator-Constraints-DateTime
Version:        1.11
Release:        1%{?dist}
Summary:        D::FV constraints for dates and times
License:        GPL+ or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Data-FormValidator-Constraints-DateTime/
Source0:        http://www.cpan.org/authors/id/W/WO/WONKO/Data-FormValidator-Constraints-DateTime-%{version}.tar.gz

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  perl(Data::FormValidator)
BuildRequires:  perl(DateTime)
BuildRequires:  perl(DateTime::Format::Builder)
BuildRequires:  perl(DateTime::Format::MySQL)
BuildRequires:  perl(DateTime::Format::Pg)
BuildRequires:  perl(DateTime::Format::Strptime)
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# undetected requires
Requires:       perl(DateTime::Format::MySQL)
Requires:       perl(DateTime::Format::Pg)

%description
This package provides constraint routines for Data::FormValidator for
dealing with dates and times. It provides an easy mechanism for validating
dates of any format (using strptime(3)) and transforming those dates (as
long as you 'untaint' the fields) into valid DateTime objects, or into
strings that would be properly formatted for various database engines.

%prep
%setup -q -n Data-FormValidator-Constraints-DateTime-%{version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%install
rm -rf $RPM_BUILD_ROOT

./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

%check
./Build test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Mon Jun 14 2010 Iain Arnell <iarnell@gmail.com> 1.11-1
- update to latest upstream (license clarification)

* Fri May 14 2010 Iain Arnell <iarnell@gmail.com> 1.10-1
- update to latest upstream
- drop 03-03-2010.patch

* Thu May 13 2010 Iain Arnell <iarnell@gmail.com> 1.09-5
- fix FTBFS - tests fail after 03/03/2010

* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.09-4
- Mass rebuild with perl-5.12.0

* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.09-3
- rebuild against perl 5.10.1

* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.09-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Mon May 04 2009 Iain Arnell <iarnell@gmail.com> 1.09-1
- Specfile autogenerated by cpanspec 1.77.
- Tweak requires/buildrequires