2010-05-09 13:50:07 +00:00
|
|
|
#
|
2011-05-18 08:08:01 +00:00
|
|
|
# spec file for package perl-DateTime-Format-MySQL
|
2011-02-17 16:26:09 +00:00
|
|
|
#
|
2015-04-20 05:21:36 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-02-17 16:26:09 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2010-05-09 13:50:07 +00:00
|
|
|
#
|
|
|
|
|
2011-05-18 08:08:01 +00:00
|
|
|
|
2011-02-17 16:26:09 +00:00
|
|
|
Name: perl-DateTime-Format-MySQL
|
2015-04-20 05:21:36 +00:00
|
|
|
Version: 0.05
|
|
|
|
Release: 0
|
|
|
|
%define cpan_name DateTime-Format-MySQL
|
2011-02-17 16:26:09 +00:00
|
|
|
Summary: Parse and format MySQL dates and times
|
2015-04-20 05:21:36 +00:00
|
|
|
License: GPL-2.0+ or Artistic-1.0+
|
2011-02-17 16:26:09 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-04-20 05:21:36 +00:00
|
|
|
Url: http://search.cpan.org/dist/DateTime-Format-MySQL/
|
|
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
2011-02-17 16:39:19 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-02-17 16:26:09 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-02-17 16:39:19 +00:00
|
|
|
BuildRequires: perl(DateTime)
|
|
|
|
BuildRequires: perl(DateTime::Format::Builder) >= 0.6
|
2015-04-20 05:21:36 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.42
|
|
|
|
# looks like requiring perl(Module::Build) alone is not enough, the resolver
|
|
|
|
# still uses the old, included version from Perl package instead in that case
|
|
|
|
BuildRequires: perl-Module-Build >= 0.42
|
2011-02-17 16:26:09 +00:00
|
|
|
Requires: perl(DateTime)
|
|
|
|
Requires: perl(DateTime::Format::Builder) >= 0.6
|
2010-12-03 14:01:39 +00:00
|
|
|
%{perl_requires}
|
2010-05-09 13:50:07 +00:00
|
|
|
|
|
|
|
%description
|
2011-02-17 16:26:09 +00:00
|
|
|
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.
|
2010-05-09 13:50:07 +00:00
|
|
|
|
|
|
|
%prep
|
2011-02-17 16:26:09 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-05-09 13:50:07 +00:00
|
|
|
|
|
|
|
%build
|
2011-02-17 16:26:09 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2010-05-09 13:50:07 +00:00
|
|
|
|
|
|
|
%check
|
2011-02-17 16:26:09 +00:00
|
|
|
./Build test
|
2010-05-09 13:50:07 +00:00
|
|
|
|
|
|
|
%install
|
2011-02-17 16:26:09 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2010-05-09 13:50:07 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
2011-02-17 16:26:09 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2010-05-09 13:50:07 +00:00
|
|
|
|
2011-02-17 16:26:09 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
%doc Changes LICENSE README
|
2010-05-09 13:50:07 +00:00
|
|
|
|
2011-02-17 16:26:09 +00:00
|
|
|
%changelog
|