[perl-DateTime-Format-DB2] Spec cleanup

Petr Šabata psabata at fedoraproject.org
Fri Jan 27 14:32:17 UTC 2012


commit 76236f8b966affdabe9d30e7b05a11d87cc9a3dd
Author: Petr Šabata <contyk at redhat.com>
Date:   Fri Jan 27 15:29:04 2012 +0100

    Spec cleanup

 perl-DateTime-Format-DB2.spec |   17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/perl-DateTime-Format-DB2.spec b/perl-DateTime-Format-DB2.spec
index b81994e..6d49e16 100644
--- a/perl-DateTime-Format-DB2.spec
+++ b/perl-DateTime-Format-DB2.spec
@@ -6,16 +6,12 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/DateTime-Format-DB2/
 Source0:        http://www.cpan.org/authors/id/J/JR/JROBINSON/DateTime-Format-DB2-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
 BuildRequires:  perl(DateTime)
 BuildRequires:  perl(DateTime::Format::Builder)
 BuildRequires:  perl(ExtUtils::MakeMaker)
-# tests
 BuildRequires:  perl(Test::More)
-
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 # not picked up automatically 
 Requires:       perl(DateTime::Format::Builder)
 
@@ -27,31 +23,22 @@ string representing it in the DB2 format.
 
 %prep
 %setup -q -n DateTime-Format-DB2-%{version}
-
 chmod -c -x t/*
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
 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
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
 %doc Changes t/
 %{perl_vendorlib}/*
 %{_mandir}/man3/*


More information about the scm-commits mailing list