diff --git a/perl-DateTime-Format-MySQL-vendor.patch b/perl-DateTime-Format-MySQL-vendor.patch deleted file mode 100644 index 08977c2..0000000 --- a/perl-DateTime-Format-MySQL-vendor.patch +++ /dev/null @@ -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 ') : ()), -+ EXE_FILES => [], -+); diff --git a/perl-DateTime-Format-MySQL.changes b/perl-DateTime-Format-MySQL.changes index 2ce65f4..b7c3e38 100644 --- a/perl-DateTime-Format-MySQL.changes +++ b/perl-DateTime-Format-MySQL.changes @@ -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 diff --git a/perl-DateTime-Format-MySQL.spec b/perl-DateTime-Format-MySQL.spec index b1e11e1..cde9d4d 100644 --- a/perl-DateTime-Format-MySQL.spec +++ b/perl-DateTime-Format-MySQL.spec @@ -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 - +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