8
0

Accepting request 61616 from home:jnweiger:perl

ok, Thank you

OBS-URL: https://build.opensuse.org/request/show/61616
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-Format-MySQL?expand=0&rev=4
This commit is contained in:
Christian Wittmer
2011-02-17 16:26:09 +00:00
committed by Git OBS Bridge
parent bffad47bf8
commit 55a4a9e8d9
3 changed files with 53 additions and 94 deletions

View File

@@ -1,59 +1,66 @@
#
# spec file for package perl-DateTime-Format-MySQL
# spec file for package perl-DateTime-Format-MySQL (Version 0.04)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
# 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
Name: perl-DateTime-Format-MySQL
Version: 0.04
Release: 1
License: GPL+ or Artistic
%define cpan_name DateTime-Format-MySQL
Summary: Parse and format MySQL dates and times
Url: http://search.cpan.org/dist/DateTime-Format-MySQL/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-MySQL-0.04.tar.bz2
# Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::Builder) >= 0.6
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
Requires: perl(DateTime)
Requires: perl(DateTime::Format::Builder) >= 0.6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{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>
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.
%prep
%setup -n %{cpan_name}-%{version}
%patch1 -p1
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
make test
./Build test
%install
%perl_make_install
%perl_process_packlist
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%doc Changes README MANIFEST
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes LICENSE README
%changelog
%changelog