forked from pool/perl-DateTime-Format-MySQL
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-Format-MySQL?expand=0&rev=3
60 lines
1.4 KiB
RPMSpec
60 lines
1.4 KiB
RPMSpec
#
|
|
# 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)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%{perl_requires}
|
|
|
|
%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
|