[perl-Class-Factory-Util] Specify all dependencies and clean up spec

Jitka Plesnikova jplesnik at fedoraproject.org
Tue Aug 7 07:55:37 UTC 2012


commit 7dcb4daa2ed388cb0235624646256112cd92b0d1
Author: Jitka Plesnikova <jplesnik at redhat.com>
Date:   Tue Aug 7 09:54:55 2012 +0200

    Specify all dependencies and clean up spec

 perl-Class-Factory-Util.spec |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/perl-Class-Factory-Util.spec b/perl-Class-Factory-Util.spec
index d769f8e..9f0237e 100644
--- a/perl-Class-Factory-Util.spec
+++ b/perl-Class-Factory-Util.spec
@@ -1,16 +1,18 @@
 Name:           perl-Class-Factory-Util
 Version:        1.7
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Provide utility methods for factory classes 
 
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Class-Factory-Util            
 Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Factory-Util-%{version}.tar.gz        
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Test)
 BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Test::Pod) >= 1.14
 BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
@@ -30,8 +32,6 @@ This module exports utility functions that are useful for factory classes.
 
 
 %install
-rm -rf %{buildroot}
-
 ./Build install destdir=%{buildroot} create_packlist=0
 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
 
@@ -42,18 +42,16 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
 ./Build test
 
 
-%clean
-rm -rf %{buildroot}
-
-
 %files
-%defattr(-,root,root,-)
 %doc LICENSE Changes
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
 
 
 %changelog
+* Tue Aug  7 2012 Jitka Plesnikova <jplesnik at redhat.com> - 1.7-14
+- Update BR and clean up spec for modern rpmbuild.
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.7-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 



More information about the perl-devel mailing list