[perl-Cache] split Cache::Tester into separate sub-package

Iain Arnell iarnell at fedoraproject.org
Sun Dec 12 10:22:10 UTC 2010


commit c54cd814de345a907f3a6913e8848929f23acee6
Author: Iain Arnell <iarnell at gmail.com>
Date:   Sun Dec 12 11:15:14 2010 +0100

    split Cache::Tester into separate sub-package

 perl-Cache.spec |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/perl-Cache.spec b/perl-Cache.spec
index ee2a789..5df0be4 100644
--- a/perl-Cache.spec
+++ b/perl-Cache.spec
@@ -26,6 +26,16 @@ expensive calls to remote machines or databases.
 The Cache interface is implemented by derived classes that store cached 
 data in different manners (such as as files on a filesystem, or in memory).
 
+
+%package -n perl-Cache-Tester
+Summary:        Test utility for perl Cache implementations
+Requires:       %{name} = %{version}-%{release}
+
+%description -n perl-Cache-Tester
+This module is used to run tests against an instance of a Cache implementation
+to ensure that it operates as required by the Cache specification.
+
+
 %prep
 %setup -q -n Cache-%{version}
 
@@ -48,12 +58,22 @@ make test
 %files
 %defattr(-,root,root,-)
 %doc Changes design.dia LICENSE README
+%exclude %{perl_vendorlib}/Cache/Tester.pm
+%exclude %{_mandir}/man3/Cache::Tester.3*
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
 
 
+%files -n perl-Cache-Tester
+%defattr(-,root,root)
+%{perl_vendorlib}/Cache/Tester.pm
+%{_mandir}/man3/Cache::Tester.3*
+
+
 %changelog
 * Sun Dec 12 2010 Iain Arnell <iarnell at gmail.com> 2.04-8
+- split Cache::Tester into separate sub-package to avoid runtime dependency on
+  Test::More
 - use perl_default_filter
 - clean up spec for modern rpmbuild
 



More information about the perl-devel mailing list