8
0
Lars Vogdt
2010-05-09 13:50:07 +00:00
committed by Git OBS Bridge
commit 7a608c6948
6 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
#
# spec file for package perl-DateTime-Format-MySQL
#
# norootforbuild
Name: perl-DateTime-Format-MySQL
%define cpan_name %( %{__sed} -e 's,perl-,,' <<< %{name} )
Summary: Parse and format MySQL dates and times
Url: http://search.cpan.org/perldoc?DateTime::Format::MySQL
Group: Development/Libraries/Perl
License: Artistic License
Version: 0.04
Release: 1
Source: %{cpan_name}-%{version}.tar.bz2
Patch1: perl-DateTime-Format-MySQL-vendor.patch
BuildRequires: perl-macros
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::Builder)
Requires: perl(DateTime)
Requires: perl(DateTime::Format::Builder)
Requires: perl = %{perl_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This module understands the formats used by MySQL for its DATE, DATETIME, TIME,
and TIMESTAMP data types. It can be used to parse these formats in order to
create DateTime objects, and it can take a DateTime object and produce a string
representing it in the MySQL format.
Author:
-------
Dave Rolsky <autarch@urth.org>
%prep
%setup -n %{cpan_name}-%{version}
%patch1 -p1
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%doc Changes README MANIFEST
%changelog