8
0
Files
perl-DateTime-Format-MySQL/perl-DateTime-Format-MySQL.spec

60 lines
1.4 KiB
RPMSpec
Raw Normal View History

#
# 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)
%{perl_requires}
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