forked from pool/perl-DateTime-Format-MySQL
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:
committed by
Git OBS Bridge
parent
bffad47bf8
commit
55a4a9e8d9
@@ -1,50 +0,0 @@
|
|||||||
Index: DateTime-Format-MySQL-0.04/Makefile.PL
|
|
||||||
===================================================================
|
|
||||||
--- DateTime-Format-MySQL-0.04.orig/Makefile.PL
|
|
||||||
+++ DateTime-Format-MySQL-0.04/Makefile.PL
|
|
||||||
@@ -1,31 +1,14 @@
|
|
||||||
-# Note: this file was auto-generated by Module::Build::Compat version 0.03
|
|
||||||
-
|
|
||||||
- unless (eval "use Module::Build::Compat 0.02; 1" ) {
|
|
||||||
- print "This module requires Module::Build to install itself.\n";
|
|
||||||
-
|
|
||||||
- require ExtUtils::MakeMaker;
|
|
||||||
- my $yn = ExtUtils::MakeMaker::prompt
|
|
||||||
- (' Install Module::Build now from CPAN?', 'y');
|
|
||||||
-
|
|
||||||
- unless ($yn =~ /^y/i) {
|
|
||||||
- die " *** Cannot install without Module::Build. Exiting ...\n";
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
- require Cwd;
|
|
||||||
- require File::Spec;
|
|
||||||
- require CPAN;
|
|
||||||
-
|
|
||||||
- # Save this 'cause CPAN will chdir all over the place.
|
|
||||||
- my $cwd = Cwd::cwd();
|
|
||||||
- my $makefile = File::Spec->rel2abs($0);
|
|
||||||
-
|
|
||||||
- CPAN::Shell->install('Module::Build::Compat')
|
|
||||||
- or die " *** Cannot install without Module::Build. Exiting ...\n";
|
|
||||||
-
|
|
||||||
- chdir $cwd or die "Cannot chdir() back to $cwd: $!";
|
|
||||||
- }
|
|
||||||
- eval "use Module::Build::Compat 0.02; 1" or die $@;
|
|
||||||
- use lib '_build/lib';
|
|
||||||
- Module::Build::Compat->run_build_pl(args => \@ARGV);
|
|
||||||
- require Module::Build;
|
|
||||||
- Module::Build::Compat->write_makefile(build_class => 'Module::Build');
|
|
||||||
+use 5.006;
|
|
||||||
+use ExtUtils::MakeMaker;
|
|
||||||
+# See lib/ExtUtils/MakeMaker.pm for details of how to influence
|
|
||||||
+# the contents of the Makefile that is written.
|
|
||||||
+WriteMakefile(
|
|
||||||
+ NAME => 'DateTime::Format::MySQL',
|
|
||||||
+ VERSION_FROM => 'lib/DateTime/Format/MySQL.pm',
|
|
||||||
+ PREREQ_PM => { 'DateTime' => 0,
|
|
||||||
+ 'DateTime::Format::Builder' => 0.60, },
|
|
||||||
+ ($] >= 5.005 ? ## Add these new keywords supported since 5.005
|
|
||||||
+ + (ABSTRACT_FROM => 'lib/DateTime/Format/MySQL.pm', # retrieve abstract from module
|
|
||||||
+ + AUTHOR => 'Dave Rolsky <autarch@urth.org>') : ()),
|
|
||||||
+ EXE_FILES => [],
|
|
||||||
+);
|
|
@@ -1,10 +1,12 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 1 13:31:46 UTC 2010 - coolo@novell.com
|
Thu Feb 17 14:48:21 UTC 2011 - jw@novell.com
|
||||||
|
|
||||||
- switch to perl_requires macro
|
- initial pull from CPAN with cpanspec_obs
|
||||||
|
- needed by Rose::DB
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun May 9 13:12:48 UTC 2010 - lars@linux-schulserver.de
|
Thu Feb 17 14:48:06 UTC 2011 - jw@novell.com
|
||||||
|
|
||||||
- initial version 0.04
|
- initial package 0.04
|
||||||
|
* created by cpanspec 1.78.03
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
Version: 0.04
|
||||||
Name: perl-DateTime-Format-MySQL
|
Release: 1
|
||||||
%define cpan_name %( %{__sed} -e 's,perl-,,' <<< %{name} )
|
License: GPL+ or Artistic
|
||||||
Summary: Parse and format MySQL dates and times
|
%define cpan_name DateTime-Format-MySQL
|
||||||
Url: http://search.cpan.org/perldoc?DateTime::Format::MySQL
|
Summary: Parse and format MySQL dates and times
|
||||||
Group: Development/Libraries/Perl
|
Url: http://search.cpan.org/dist/DateTime-Format-MySQL/
|
||||||
License: Artistic License
|
Group: Development/Libraries/Perl
|
||||||
Version: 0.04
|
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Format-MySQL-0.04.tar.bz2
|
||||||
Release: 1
|
# Source: %{cpan_name}-%{version}.tar.bz2
|
||||||
Source: %{cpan_name}-%{version}.tar.bz2
|
BuildRequires: perl(DateTime)
|
||||||
Patch1: perl-DateTime-Format-MySQL-vendor.patch
|
BuildRequires: perl(DateTime::Format::Builder) >= 0.6
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl
|
||||||
BuildRequires: perl(DateTime)
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(DateTime::Format::Builder)
|
BuildRequires: perl(Module::Build)
|
||||||
Requires: perl(DateTime)
|
Requires: perl(DateTime)
|
||||||
Requires: perl(DateTime::Format::Builder)
|
Requires: perl(DateTime::Format::Builder) >= 0.6
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module understands the formats used by MySQL for its DATE, DATETIME, TIME,
|
This module understands the formats used by MySQL for its DATE, DATETIME,
|
||||||
and TIMESTAMP data types. It can be used to parse these formats in order to
|
TIME, and TIMESTAMP data types. It can be used to parse these formats in
|
||||||
create DateTime objects, and it can take a DateTime object and produce a string
|
order to create DateTime objects, and it can take a DateTime object and
|
||||||
representing it in the MySQL format.
|
produce a string representing it in the MySQL format.
|
||||||
|
|
||||||
Author:
|
|
||||||
-------
|
|
||||||
Dave Rolsky <autarch@urth.org>
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL
|
%{__perl} Build.PL installdirs=vendor
|
||||||
make %{?jobs:-j%jobs}
|
./Build build flags=%{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
./Build install destdir=%{buildroot} create_packlist=0
|
||||||
%perl_process_packlist
|
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-, root, root)
|
%defattr(644,root,root,755)
|
||||||
%doc Changes README MANIFEST
|
%doc Changes LICENSE README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user