[perl-DateTime-Format-DBI] Spec cleanup

Petr Šabata psabata at fedoraproject.org
Fri Jan 27 14:20:50 UTC 2012


commit dbeb5125a164f1716181a58784d9ba2cb8e6adce
Author: Petr Šabata <contyk at redhat.com>
Date:   Fri Jan 27 15:17:37 2012 +0100

    Spec cleanup

 perl-DateTime-Format-DBI.spec |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/perl-DateTime-Format-DBI.spec b/perl-DateTime-Format-DBI.spec
index 5af72ff..6ce0aa8 100644
--- a/perl-DateTime-Format-DBI.spec
+++ b/perl-DateTime-Format-DBI.spec
@@ -8,16 +8,15 @@ URL:            http://search.cpan.org/dist/DateTime-Format-DBI/
 Source0:        http://www.cpan.org/authors/id/C/CF/CFAERBER/DateTime-Format-DBI-%{version}.tar.gz
 BuildArch:      noarch
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-BuildRequires:  perl(DateTime)            >= 0.1
-BuildRequires:  perl(DBI)                 >= 1.21
-BuildRequires:  perl(ExtUtils::MakeMaker)
-# test
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(DateTime) >= 0.1
 BuildRequires:  perl(DateTime::Format::SQLite)
 BuildRequires:  perl(DBD::SQLite)
+BuildRequires:  perl(DBI) >= 1.21
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Test::Database)
 BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::NoWarnings)
-
 # require the dbd-specific datetime formats, so this "just works" the way we
 # expect it to.
 Requires:       perl(DateTime::Format::MySQL)
@@ -34,9 +33,7 @@ perl-DateTime-MySQL, perl-DateTime-Oracle, perl-DateTime-DB2, etc.
 
 %prep
 %setup -q -n DateTime-Format-DBI-%{version}
-
 for i in LICENSE README lib/DateTime/Format/DBI.pm ; do
-    
     # correct UTF-8 wonkiness
     cat $i | iconv -f ISO-8859-1 -t UTF-8 > foo
     mv foo $i
@@ -48,17 +45,14 @@ make %{?_smp_mflags}
 
 %install
 make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
 %files
-%defattr(-,root,root,-)
 %doc Changes LICENSE README t/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*


More information about the scm-commits mailing list