forked from pool/perl-DateTime-Format-MySQL
- initial version 0.04
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-Format-MySQL?expand=0&rev=1
This commit is contained in:
59
perl-DateTime-Format-MySQL.spec
Normal file
59
perl-DateTime-Format-MySQL.spec
Normal 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
|
Reference in New Issue
Block a user