[perl-Test-Unit-Lite: 3/3] Spec clean-up
Paul Howarth
pghmcfc at fedoraproject.org
Sat Mar 24 10:24:24 UTC 2012
commit 7c3502ea1c9b857f1041f3f9c8c5395094c26c65
Author: Paul Howarth <paul at city-fan.org>
Date: Sat Mar 24 10:23:40 2012 +0000
Spec clean-up
- Add buildreqs for Perl core modules that could be dual-lived
- Don't need to remove empty directories from buildroot
- Drop %defattr, redundant since rpm 4.4
perl-Test-Unit-Lite.spec | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/perl-Test-Unit-Lite.spec b/perl-Test-Unit-Lite.spec
index fbae9c0..ddd3dcd 100644
--- a/perl-Test-Unit-Lite.spec
+++ b/perl-Test-Unit-Lite.spec
@@ -1,7 +1,7 @@
Name: perl-Test-Unit-Lite
Epoch: 1
Version: 0.12
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: Unit testing without external dependencies
License: GPL+ or Artistic
Group: Development/Libraries
@@ -9,8 +9,12 @@ URL: http://search.cpan.org/dist/Test-Unit-Lite/
Source0: http://search.cpan.org/CPAN/authors/id/D/DE/DEXTER/Test-Unit-Lite-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
+BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(File::Path)
+BuildRequires: perl(File::Spec)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Taint::Runtime)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@@ -41,7 +45,6 @@ perl Build.PL installdirs=vendor
%install
rm -rf %{buildroot}
./Build install destdir=%{buildroot} create_packlist=0
-find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
%{_fixperms} %{buildroot}
%check
@@ -51,12 +54,16 @@ find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
rm -rf %{buildroot}
%files
-%defattr(-,root,root,-)
%doc Changes LICENSE README
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::Unit::Lite.3pm*
%changelog
+* Sat Mar 24 2012 Paul Howarth <paul at city-fan.org> - 1:0.12-11
+- Add buildreqs for Perl core modules that could be dual-lived
+- Don't need to remove empty directories from buildroot
+- Drop %%defattr, redundant since rpm 4.4
+
* Sat Sep 24 2011 Paul Howarth <paul at city-fan.org> - 1:0.12-10
- BR: perl(Carp) and perl(Cwd)
- Make %%files list more explicit
More information about the perl-devel
mailing list