[perl-Module-Signature] Minor spec clean-up

Paul Howarth pghmcfc at fedoraproject.org
Tue Jun 12 12:27:23 UTC 2012


commit 12061207c21d312a70a8b3bd6da51c7683326376
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue Jun 12 13:21:33 2012 +0100

    Minor spec clean-up
    
    - BR: perl(constant), perl(Data::Dumper) and perl(lib)
    - Don't need to remove empty directories from the buildroot
    - Drop %defattr, redundant since rpm 4.4

 perl-Module-Signature.spec |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/perl-Module-Signature.spec b/perl-Module-Signature.spec
index 2e24dd3..4997a3e 100644
--- a/perl-Module-Signature.spec
+++ b/perl-Module-Signature.spec
@@ -1,6 +1,6 @@
 Name:           perl-Module-Signature
 Version:        0.68
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        CPAN signature management utilities and modules
 Group:          Development/Libraries
 License:        CC0
@@ -9,12 +9,15 @@ Source0:        http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Module-Signatu
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:      noarch
 BuildRequires:  gnupg
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Data::Dumper)
 BuildRequires:  perl(Digest::SHA)
 BuildRequires:  perl(Digest::SHA1)
 BuildRequires:  perl(Exporter)
 BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(ExtUtils::Manifest)
 BuildRequires:  perl(IPC::Run)
+BuildRequires:  perl(lib)
 BuildRequires:  perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       gnupg
@@ -47,7 +50,6 @@ cd -
 rm -rf %{buildroot}
 make -C Module-Signature-%{version} pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
 %{_fixperms} %{buildroot}
 
 %check
@@ -58,7 +60,6 @@ make -C Module-Signature-%{version} test TEST_SIGNATURE=1
 rm -rf %{buildroot}
 
 %files
-%defattr(-,root,root,-)
 %doc AUTHORS Changes README *.pub
 %{_bindir}/cpansign
 %{perl_vendorlib}/Module/
@@ -66,6 +67,11 @@ rm -rf %{buildroot}
 %{_mandir}/man3/Module::Signature.3pm*
 
 %changelog
+* Tue Jun 12 2012 Paul Howarth <paul at city-fan.org> - 0.68-5
+- BR: perl(constant), perl(Data::Dumper) and perl(lib)
+- Don't need to remove empty directories from the buildroot
+- Drop %%defattr, redundant since rpm 4.4
+
 * Tue Jun 12 2012 Petr Pisar <ppisar at redhat.com> - 0.68-4
 - Perl 5.16 rebuild
 


More information about the scm-commits mailing list